STM324x9I_EVAL BSP User Manual: STM324x9I EVAL IO Exported Functions

STM32429I/STM32439I/STM32469I/STM32479I EVAL BSP Drivers

STM324x9I_EVAL BSP User Manual
STM324x9I EVAL IO Exported Functions

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 IO_Pin)
 Gets the selected pins IT status.
void BSP_IO_ITClear (void)
 Clears all the IO IT pending bits.
uint8_t BSP_IO_ConfigPin (uint16_t IO_Pin, IO_ModeTypedef IO_Mode)
 Configures the IO pin(s) according to IO mode structure value.
void BSP_IO_WritePin (uint16_t IO_Pin, uint8_t PinState)
 Sets the selected pins state.
uint16_t BSP_IO_ReadPin (uint16_t IO_Pin)
 Gets the selected pins current state.
void BSP_IO_TogglePin (uint16_t IO_Pin)
 Toggles the selected pins state.

Function Documentation

uint8_t BSP_IO_ConfigPin ( uint16_t  IO_Pin,
IO_ModeTypedef  IO_Mode 
)

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

Parameters:
IO_Pin,:IO pin(s) to be configured. This parameter can be one of the following values:
  • STMPE1600_PIN_x: where x can be from 0 to 15.
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
Return values:
IO_OKif all initializations are OK. Other value if error.

Definition at line 192 of file stm324x9i_eval_io.c.

References io_driver, IO_I2C_ADDRESS, and IO_OK.

Referenced by BSP_CAMERA_Init(), BSP_CAMERA_Stop(), BSP_JOY_Init(), BSP_SD_ITConfig(), and BSP_TS_ITConfig().

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 stmpe1600 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_OKif all initializations are OK. Other value if error.

Definition at line 138 of file stm324x9i_eval_io.c.

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

Referenced by BSP_CAMERA_Init(), BSP_CAMERA_Stop(), BSP_JOY_Init(), BSP_SD_Init(), and BSP_TS_ITConfig().

void BSP_IO_ITClear ( void  )

Clears all the IO IT pending bits.

Definition at line 173 of file stm324x9i_eval_io.c.

References io_driver, and IO_I2C_ADDRESS.

Referenced by BSP_SD_DetectIT(), and BSP_TS_ITClear().

uint8_t BSP_IO_ITGetStatus ( uint16_t  IO_Pin)

Gets the selected pins IT status.

Parameters:
IO_Pin,:Selected pins to check the status. This parameter can be any combination of the IO pins.
Return values:
IO_OKif read status OK. Other value if error.

Definition at line 164 of file stm324x9i_eval_io.c.

References io_driver, and IO_I2C_ADDRESS.

uint16_t BSP_IO_ReadPin ( uint16_t  IO_Pin)

Gets the selected pins current state.

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

Definition at line 218 of file stm324x9i_eval_io.c.

References io_driver, and IO_I2C_ADDRESS.

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

void BSP_IO_TogglePin ( uint16_t  IO_Pin)

Toggles the selected pins state.

Parameters:
IO_Pin,:Selected pins to toggle. This parameter can be any combination of the IO pins.

Definition at line 228 of file stm324x9i_eval_io.c.

References io_driver, and IO_I2C_ADDRESS.

void BSP_IO_WritePin ( uint16_t  IO_Pin,
uint8_t  PinState 
)

Sets the selected pins state.

Parameters:
IO_Pin,:Selected pins to write. This parameter can be any combination of the IO pins.
PinState,:New pins state to write

Definition at line 206 of file stm324x9i_eval_io.c.

References io_driver, and IO_I2C_ADDRESS.

Referenced by BSP_CAMERA_Init(), and BSP_CAMERA_Stop().

Generated on Wed Jan 13 2016 15:52:54 for STM324x9I_EVAL BSP User Manual by   doxygen 1.7.6.1