STM32L4R9I-Discovery BSP User Manual: Exported Functions

STM32L4R9I-Discovery BSP

STM32L4R9I-Discovery BSP User Manual

Functions

uint8_t BSP_IO_Init (void)
 Initialize and configure the IO functionalities and configures all necessary hardware resources (GPIOs, clocks..).
uint8_t BSP_IO_DeInit (void)
 DeInitialize the IO to allow Mfx Initialization to be executed again.
uint32_t BSP_IO_ITGetStatus (uint32_t IO_Pin)
 Get the selected pins IT status.
void BSP_IO_ITClear (uint32_t IO_Pin)
 Clear the selected IO IT pending bit.
uint8_t BSP_IO_ConfigPin (uint32_t IO_Pin, IO_ModeTypedef IO_Mode)
 Configure the IO pin(s) according to IO mode structure value.
void BSP_IO_WritePin (uint32_t IO_Pin, uint8_t PinState)
 Set the selected IO pin(s) state.
uint32_t BSP_IO_ReadPin (uint32_t IO_Pin)
 Get the selected IO pin(s) current state.
void BSP_IO_TogglePin (uint32_t IO_Pin)
 Toggle the selected IO pin(s) state.

Function Documentation

uint8_t BSP_IO_ConfigPin ( uint32_t  IO_Pin,
IO_ModeTypedef  IO_Mode 
)

Configure the IO pin(s) according to IO mode structure value.

Parameters:
IO_Pin,:Output IO pin(s) to be set or reset. This parameter can be any combination of the IO pin(s).
IO_Mode,:IO pin mode to configure This parameter can 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
Return values:
IO_OK,:if all initializations are OK. Other value if error.

Definition at line 206 of file stm32l4r9i_discovery_io.c.

References io_driver, IO_I2C_ADDRESS, and IO_OK.

Referenced by AUDIO_IO_Init(), BSP_IDD_GetValue(), BSP_IDD_StartMeasure(), BSP_JOY_DeInit(), BSP_JOY_Init(), BSP_LED_Init(), BSP_SD_Init(), BSP_SD_IsDetected(), BSP_SD_ITConfig(), BSP_TS_ITConfig(), BSP_TS_ITDisable(), LCD_PowerOff(), LCD_PowerOn(), PSRAM_PowerOff(), and PSRAM_PowerOn().

uint8_t BSP_IO_DeInit ( void  )

DeInitialize the IO to allow Mfx Initialization to be executed again.

Note:
BSP_IO_Init() has no effect if the io_driver is already initialized BSP_IO_DeInit() allows to erase the pointer such to allow init to be effective
Return values:
IO_OK

Definition at line 162 of file stm32l4r9i_discovery_io.c.

References io_driver, and IO_OK.

uint8_t BSP_IO_Init ( void  )

Initialize and configure 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 are OK. Other value if error.

Definition at line 113 of file stm32l4r9i_discovery_io.c.

References io_driver, IO_ERROR, IO_I2C_ADDRESS, IO_OK, and IO_PIN_ALL.

Referenced by AUDIO_IO_Init(), BSP_CAMERA_Init(), BSP_IDD_Init(), BSP_JOY_Init(), BSP_LED_Init(), BSP_SD_Init(), LCD_PowerOn(), and PSRAM_PowerOn().

void BSP_IO_ITClear ( uint32_t  IO_Pin)

Clear the selected IO IT pending bit.

Parameters:
IO_Pin,:Selected pin(s) to clear the status. This parameter can be any combination of the IO pins.
Return values:
None

Definition at line 186 of file stm32l4r9i_discovery_io.c.

References io_driver, and IO_I2C_ADDRESS.

uint32_t BSP_IO_ITGetStatus ( uint32_t  IO_Pin)

Get the selected pins IT status.

Parameters:
IO_Pin,:Selected pin(s) to check the status. This parameter can be any combination of the IO pins.
Return values:
Statusof the checked IO pin(s).

Definition at line 174 of file stm32l4r9i_discovery_io.c.

References io_driver, and IO_I2C_ADDRESS.

uint32_t BSP_IO_ReadPin ( uint32_t  IO_Pin)

Get the selected IO pin(s) current state.

Parameters:
IO_Pin,:Selected pin(s) to read. This parameter can be any combination of the IO pin(s).
Return values:
Thecurrent pins state

Definition at line 233 of file stm32l4r9i_discovery_io.c.

References io_driver, and IO_I2C_ADDRESS.

Referenced by BSP_JOY_GetState(), BSP_SD_IsDetected(), and BSP_SD_ITConfig().

void BSP_IO_TogglePin ( uint32_t  IO_Pin)

Toggle the selected IO pin(s) state.

Parameters:
IO_Pin,:Selected IO pin(s) to toggle. This parameter can be any combination of the IO pin(s).
Return values:
None

Definition at line 244 of file stm32l4r9i_discovery_io.c.

References io_driver, and IO_I2C_ADDRESS.

Referenced by BSP_LED_Toggle().

void BSP_IO_WritePin ( uint32_t  IO_Pin,
uint8_t  PinState 
)

Set the selected IO pin(s) state.

Parameters:
IO_Pin,:Selected IO pin(s) to write. This parameter can be any combination of the IO pin(s).
PinState,:New pin state to write
Return values:
None

Definition at line 221 of file stm32l4r9i_discovery_io.c.

References io_driver, and IO_I2C_ADDRESS.

Referenced by BSP_CAMERA_PwrDown(), BSP_CAMERA_PwrUp(), BSP_IDD_GetValue(), BSP_IDD_StartMeasure(), BSP_LED_Init(), BSP_LED_Off(), BSP_LED_On(), LCD_PowerOff(), LCD_PowerOn(), and PSRAM_PowerOn().

Generated on Fri Oct 13 2017 02:37:42 for STM32L4R9I-Discovery BSP User Manual by   doxygen 1.7.6.1