_BSP_User_Manual
|
Functions | |
uint8_t | BSP_IO_Init (void) |
Initializes and configures the IO functionalities and configures all necessary hardware resources (GPIOs, clocks..). | |
uint32_t | BSP_IO_ITGetStatus (uint32_t IO_Pin) |
Gets the selected pins IT status. | |
void | BSP_IO_ITClear (uint32_t IO_Pin) |
Clears the selected IO IT pending bit. | |
uint8_t | BSP_IO_ConfigPin (uint32_t IO_Pin, IO_ModeTypedef IO_Mode) |
Configures the IO pin(s) according to IO mode structure value. | |
void | BSP_IO_WritePin (uint32_t IO_Pin, uint8_t PinState) |
Sets the selected pins state. | |
uint32_t | BSP_IO_ReadPin (uint32_t IO_Pin) |
Gets the selected pins current state. | |
void | BSP_IO_TogglePin (uint32_t IO_Pin) |
Toggles the selected pins state. |
Function Documentation
uint8_t BSP_IO_ConfigPin | ( | uint32_t | IO_Pin, |
IO_ModeTypedef | IO_Mode | ||
) |
Configures the IO pin(s) according to IO mode structure value.
Definition at line 259 of file stm3210c_eval_io.c.
References io1_driver, IO1_I2C_ADDRESS, IO1_PIN_ALL, IO1_PIN_OFFSET, io2_driver, IO2_I2C_ADDRESS, IO2_PIN_ALL, IO2_PIN_OFFSET, and IO_OK.
Referenced by ACCELERO_IO_ITConfig(), AUDIO_IO_Init(), and BSP_JOY_Init().
uint8_t BSP_IO_Init | ( | void | ) |
Initializes and configures the IO functionalities and configures all necessary hardware resources (GPIOs, clocks..).
- Note:
- BSP_IO_Init() is using HAL_Delay() function to ensure that stmpe811 IO Expander is correctly reset. HAL_Delay() function provides accurate delay (in milliseconds) based on variable incremented in SysTick ISR. This implies that if BSP_IO_Init() is called from a peripheral ISR process, then the SysTick interrupt must have higher priority (numerically lower) than the peripheral interrupt. Otherwise the caller ISR process will be blocked.
Definition at line 157 of file stm3210c_eval_io.c.
References io1_driver, IO1_I2C_ADDRESS, IO1_PIN_ALL, IO1_PIN_OFFSET, io2_driver, IO2_I2C_ADDRESS, IO2_PIN_ALL, IO2_PIN_OFFSET, IO_ERROR, and IO_OK.
Referenced by ACCELERO_IO_Init(), AUDIO_IO_Init(), and BSP_JOY_Init().
void BSP_IO_ITClear | ( | uint32_t | IO_Pin | ) |
Clears the selected IO IT pending bit.
Definition at line 224 of file stm3210c_eval_io.c.
References io1_driver, IO1_I2C_ADDRESS, IO1_PIN_ALL, IO1_PIN_OFFSET, io2_driver, IO2_I2C_ADDRESS, IO2_PIN_ALL, and IO2_PIN_OFFSET.
uint32_t BSP_IO_ITGetStatus | ( | uint32_t | IO_Pin | ) |
Gets the selected pins IT status.
Definition at line 194 of file stm3210c_eval_io.c.
References io1_driver, IO1_I2C_ADDRESS, IO1_PIN_ALL, IO1_PIN_OFFSET, io2_driver, IO2_I2C_ADDRESS, IO2_PIN_ALL, and IO2_PIN_OFFSET.
uint32_t BSP_IO_ReadPin | ( | uint32_t | IO_Pin | ) |
Gets the selected pins current state.
Definition at line 316 of file stm3210c_eval_io.c.
References io1_driver, IO1_I2C_ADDRESS, IO1_PIN_ALL, IO1_PIN_OFFSET, io2_driver, IO2_I2C_ADDRESS, IO2_PIN_ALL, and IO2_PIN_OFFSET.
Referenced by BSP_JOY_GetState().
void BSP_IO_TogglePin | ( | uint32_t | IO_Pin | ) |
Toggles the selected pins state.
Definition at line 346 of file stm3210c_eval_io.c.
References BSP_IO_WritePin(), io1_driver, IO1_I2C_ADDRESS, IO1_PIN_ALL, IO1_PIN_OFFSET, io2_driver, IO2_I2C_ADDRESS, IO2_PIN_ALL, and IO2_PIN_OFFSET.
void BSP_IO_WritePin | ( | uint32_t | IO_Pin, |
uint8_t | PinState | ||
) |
Sets the selected pins state.
Definition at line 289 of file stm3210c_eval_io.c.
References io1_driver, IO1_I2C_ADDRESS, IO1_PIN_ALL, IO1_PIN_OFFSET, io2_driver, IO2_I2C_ADDRESS, IO2_PIN_ALL, and IO2_PIN_OFFSET.
Referenced by AUDIO_IO_Init(), BSP_AUDIO_OUT_Stop(), and BSP_IO_TogglePin().
Generated on Thu Dec 11 2014 15:38:29 for _BSP_User_Manual by
