Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: 2a 2b 2c 2d1 ... more
STM32F429I DISCOVERY IO Private Functions
[STM32F429I DISCOVERY IO]
  | 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 160 of file stm32f429i_discovery_io.c.
| 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 106 of file stm32f429i_discovery_io.c.
| void BSP_IO_ITClear | ( | void | ) | 
Clears all the IO IT pending bits.
Definition at line 141 of file stm32f429i_discovery_io.c.
| 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 132 of file stm32f429i_discovery_io.c.
| 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 184 of file stm32f429i_discovery_io.c.
| 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 194 of file stm32f429i_discovery_io.c.
| 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 172 of file stm32f429i_discovery_io.c.
Generated on Tue Jul 12 2022 16:29:24 by
 1.7.2
 1.7.2