diff options
Diffstat (limited to 'simonnnnn/Core/Inc/button.h')
-rw-r--r-- | simonnnnn/Core/Inc/button.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/simonnnnn/Core/Inc/button.h b/simonnnnn/Core/Inc/button.h new file mode 100644 index 0000000..fff10b7 --- /dev/null +++ b/simonnnnn/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_ */ |