STM32L4R9I_EVAL BSP User Manual: Exported Functions

STM32L4R9I_EVAL BSP

STM32L4R9I_EVAL BSP User Manual
Exported Functions

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 218 of file stm32l4r9i_eval_io.c.

References io_driver, IO_I2C_ADDRESS, and IO_OK.

Referenced by BSP_IDD_GetValue(), BSP_IDD_StartMeasure(), BSP_JOY_DeInit(), BSP_JOY_Init(), BSP_SD_Init(), BSP_SD_IsDetected(), BSP_SD_ITConfig(), and LCD_Reset().

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 166 of file stm32l4r9i_eval_io.c.

References io_driver, IO_I2C_ADDRESS, 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 116 of file stm32l4r9i_eval_io.c.

References io_driver, IO_ERROR, IO_I2C_ADDRESS, IO_OK, IO_PIN_ALL, and MFX_IO_Init().

Referenced by BSP_IDD_Init(), BSP_JOY_Init(), BSP_SD_Init(), and LCD_Reset().

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 198 of file stm32l4r9i_eval_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 186 of file stm32l4r9i_eval_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 245 of file stm32l4r9i_eval_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 256 of file stm32l4r9i_eval_io.c.

References io_driver, and IO_I2C_ADDRESS.

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 233 of file stm32l4r9i_eval_io.c.

References io_driver, and IO_I2C_ADDRESS.

Referenced by BSP_IDD_StartMeasure(), and LCD_Reset().

Generated on Thu Oct 12 2017 10:54:00 for STM32L4R9I_EVAL BSP User Manual by   doxygen 1.7.6.1