31 #ifndef INCLUDE_DRIVERS_NUCLEODRIVER_H_ 32 #define INCLUDE_DRIVERS_NUCLEODRIVER_H_ 45 #define LD4_Pin GPIO_PIN_5 46 #define LD4_GPIO_Port GPIOA 47 #define B1_Pin GPIO_PIN_13 48 #define B1_GPIO_Port GPIOC 142 HAL_GPIO_WritePin(LD4_GPIO_Port, LD4_Pin, (GPIO_PinState)bON);
153 HAL_GPIO_TogglePin(LD4_GPIO_Port, LD4_Pin);
162 return this->m_bPB1Pressed;
Private API for the Driver Interface.
Public API for the Driver Interface.
#define assert_param(expr)
Include module's header file.
Definition: stm32l4xx_hal_conf.h:359
boolean_t NucleoDriverIsButtonPressed(NucleoDriver *this)
Definition: NucleoDriver.h:159
IDriver super
Definition: NucleoDriver.h:63
Definition: NucleoDriver.h:59
SemaphoreHandle_t m_xSyncObj
Definition: NucleoDriver.h:75
volatile boolean_t m_bPB1Pressed
Definition: NucleoDriver.h:70
struct _NucleoDriverParams NucleoDriverParams
sys_error_code_t NucleoDriverToggleLed(NucleoDriver *this)
Definition: NucleoDriver.h:148
sys_error_code_t NucleoDriverWaitForButtonEvent(NucleoDriver *this, boolean_t *pbButtonPressed)
IDriver * NucleoDriverAlloc()
Definition: IDriverVtbl.h:59
Definition: NucleoDriver.h:81
unsigned short sys_error_code_t
Definition: syserror.h:45
sys_error_code_t NucleoDriverSetLed(NucleoDriver *this, boolean_t bON)
Definition: NucleoDriver.h:137