Исправлены синтаксические ошибки и добавлен новый микроконтроллер
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
#include "stm32g0xx_hal.h"
|
||||
#endif
|
||||
|
||||
#ifdef STM32G0B1xx
|
||||
#include "stm32g0xx_hal.h"
|
||||
#endif
|
||||
|
||||
#ifdef STM32F030xx
|
||||
#include "stm32f0xx_hal.h"
|
||||
#endif
|
||||
@@ -16,7 +20,7 @@ typedef struct DS_Button
|
||||
{
|
||||
GPIO_TypeDef* Port;
|
||||
uint16_t Pin;
|
||||
bool Presed, Released, PresedLong, PresedLongLong;
|
||||
bool Pressed, Released, PressedLong, PressedLongLong;
|
||||
uint32_t PrevTick, PressStartTick, PressStartTickLong;
|
||||
uint8_t Storage;
|
||||
|
||||
@@ -38,6 +42,6 @@ bool DS_ButtonPressedLongLong(DS_Button* Button);
|
||||
|
||||
bool DS_ButtonRisingEdge(DS_Button* Button);
|
||||
|
||||
bool DS_ButtonFalingEdge(DS_Button* Button);
|
||||
bool DS_ButtonFallingEdge(DS_Button* Button);
|
||||
|
||||
#endif //DS_BUTTON_H
|
||||
Reference in New Issue
Block a user