Исправлены синтаксические ошибки и добавлен новый микроконтроллер

This commit is contained in:
2026-06-21 21:46:38 +03:00
parent e47fbdd4f5
commit 206a710b0d
2 changed files with 22 additions and 18 deletions

View File

@@ -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