summaryrefslogtreecommitdiff
path: root/Core/Inc/button.h
diff options
context:
space:
mode:
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_ */