STM32F429I-Discovery BSP User Manual
|
Functions | |
uint8_t | BSP_IO_Init (void) |
Initializes and configures the IO functionalities and configures all necessary hardware resources (GPIOs, clocks..). | |
uint8_t | BSP_IO_ITGetStatus (uint16_t IoPin) |
Gets the selected pins IT status. | |
void | BSP_IO_ITClear (void) |
Clears all the IO IT pending bits. | |
void | BSP_IO_ConfigPin (uint16_t IoPin, IO_ModeTypedef IoMode) |
Configures the IO pin(s) according to IO mode structure value. | |
void | BSP_IO_WritePin (uint16_t IoPin, uint8_t PinState) |
Sets the selected pins state. | |
uint16_t | BSP_IO_ReadPin (uint16_t IoPin) |
Gets the selected pins current state. | |
void | BSP_IO_TogglePin (uint16_t IoPin) |
Toggles the selected pins state. |
Function Documentation
void BSP_IO_ConfigPin | ( | uint16_t | IoPin, |
IO_ModeTypedef | IoMode | ||
) |
Configures the IO pin(s) according to IO mode structure value.
- Parameters:
-
IoPin,: IO pin(s) to be configured. This parameter could be any combination of the following values: - STMPE811_PIN_x: where x can be from 0 to 7.
IoMode,: The IO pin mode to configure, could be one of the following values: - IO_MODE_INPUT
- IO_MODE_OUTPUT
- IO_MODE_IT_RISING_EDGE
- IO_MODE_IT_FALLING_EDGE
- IO_MODE_IT_LOW_LEVEL
- IO_MODE_IT_HIGH_LEVEL
Definition at line 162 of file stm32f429i_discovery_io.c.
References IO_I2C_ADDRESS, and IoDrv.
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.
- Return values:
-
IO_OK if all initializations done correctly. Other value if error.
Definition at line 108 of file stm32f429i_discovery_io.c.
References IO_ERROR, IO_I2C_ADDRESS, IO_OK, IO_PIN_ALL, and IoDrv.
void BSP_IO_ITClear | ( | void | ) |
Clears all the IO IT pending bits.
Definition at line 143 of file stm32f429i_discovery_io.c.
References IO_I2C_ADDRESS, IO_PIN_ALL, and IoDrv.
uint8_t BSP_IO_ITGetStatus | ( | uint16_t | IoPin | ) |
Gets the selected pins IT status.
- Parameters:
-
IoPin,: The selected pins to check the status. This parameter could be any combination of the IO pins.
- Return values:
-
Status of IO Pin checked.
Definition at line 134 of file stm32f429i_discovery_io.c.
References IO_I2C_ADDRESS, and IoDrv.
uint16_t BSP_IO_ReadPin | ( | uint16_t | IoPin | ) |
Gets the selected pins current state.
- Parameters:
-
IoPin,: The selected pins to read. This parameter could be any combination of the IO pins.
- Return values:
-
The current pins state
Definition at line 186 of file stm32f429i_discovery_io.c.
References IO_I2C_ADDRESS, and IoDrv.
void BSP_IO_TogglePin | ( | uint16_t | IoPin | ) |
Toggles the selected pins state.
- Parameters:
-
IoPin,: The selected pins to toggle. This parameter could be any combination of the IO pins.
Definition at line 196 of file stm32f429i_discovery_io.c.
References IO_I2C_ADDRESS, and IoDrv.
void BSP_IO_WritePin | ( | uint16_t | IoPin, |
uint8_t | PinState | ||
) |
Sets the selected pins state.
- Parameters:
-
IoPin,: The selected pins to write. This parameter could be any combination of the IO pins. PinState,: the new pins state to write
Definition at line 174 of file stm32f429i_discovery_io.c.
References IO_I2C_ADDRESS, and IoDrv.
Generated on Wed Jan 13 2016 13:22:14 for STM32F429I-Discovery BSP User Manual by 1.7.6.1