summaryrefslogtreecommitdiff
path: root/Core/Inc/button.h
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-01-24 23:56:07 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2021-01-24 23:56:07 +0100
commit343e88525d1d13a6da5629d7137b2d8a15f9d2d8 (patch)
treef8a3ec49c01d57469bf2caf95d64eccd850efeb7 /Core/Inc/button.h
parent24b20766d6dfa716888d1e0852dd0374004f6420 (diff)
Adding the whole Core
Diffstat (limited to 'Core/Inc/button.h')
-rw-r--r--Core/Inc/button.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/Core/Inc/button.h b/Core/Inc/button.h
new file mode 100644
index 0000000..fff10b7
--- /dev/null
+++ b/Core/Inc/button.h
@@ -0,0 +1,21 @@
+/*
+ * button.h
+ *
+ * Created on: 2 déc. 2020
+ * Author: root
+ */
+
+#ifndef INC_BUTTON_H_
+#define INC_BUTTON_H_
+
+#include "stm32l053xx.h"
+
+typedef struct
+{
+GPIO_TypeDef * gpioPort;
+uint8_t pin;
+uint8_t pull;
+
+}BUTTON_TypeDef;
+
+#endif /* INC_BUTTON_H_ */