STM32769I_EVAL BSP User Manual
|
Functions | |
uint8_t | BSP_IO_Init (void) |
Initializes and configures the IO functionalities and configures all necessary hardware resources (MFX, ...). | |
uint8_t | BSP_IO_DeInit (void) |
DeInit allows Mfx Initialization to be executed again. | |
uint32_t | BSP_IO_ITGetStatus (uint32_t IoPin) |
Gets the selected pins IT status. | |
void | BSP_IO_ITClear (void) |
Clears all the IO IT pending bits. | |
void | BSP_IO_ITClearPin (uint32_t IO_Pins_To_Clear) |
Clear only one or a selection of IO IT pending bits. | |
uint8_t | BSP_IO_ConfigPin (uint32_t IoPin, IO_ModeTypedef IoMode) |
Configures the IO pin(s) according to IO mode structure value. | |
uint8_t | BSP_IO_ConfigIrqOutPin (uint8_t IoIrqOutPinPolarity, uint8_t IoIrqOutPinType) |
Sets the IRQ_OUT pin polarity and type. | |
void | BSP_IO_WritePin (uint32_t IoPin, BSP_IO_PinStateTypeDef PinState) |
Sets the selected pins state. | |
uint32_t | BSP_IO_ReadPin (uint32_t IoPin) |
Gets the selected pins current state. | |
void | BSP_IO_TogglePin (uint32_t IoPin) |
Toggles the selected pins state. |
Function Documentation
uint8_t BSP_IO_ConfigIrqOutPin | ( | uint8_t | IoIrqOutPinPolarity, |
uint8_t | IoIrqOutPinType | ||
) |
Sets the IRQ_OUT pin polarity and type.
- Parameters:
-
IoIrqOutPinPolarity,: High/Low IoIrqOutPinType,: OpenDrain/PushPull
- Return values:
-
OK
Definition at line 265 of file stm32f769i_eval_io.c.
References IO_I2C_ADDRESS, IO_OK, and mfxstm32l152Identifier.
uint8_t BSP_IO_ConfigPin | ( | uint32_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 can be one of the following values: - MFXSTM32L152_GPIO_PIN_x: where x can be from 0 to 23.
IoMode,: 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
- IO_MODE_ANALOG
- IO_MODE_OFF
- IO_MODE_INPUT_PU,
- IO_MODE_INPUT_PD,
- IO_MODE_OUTPUT_OD,
- IO_MODE_OUTPUT_OD_PU,
- IO_MODE_OUTPUT_OD_PD,
- IO_MODE_OUTPUT_PP,
- IO_MODE_OUTPUT_PP_PU,
- IO_MODE_OUTPUT_PP_PD,
- IO_MODE_IT_RISING_EDGE_PU
- IO_MODE_IT_FALLING_EDGE_PU
- IO_MODE_IT_LOW_LEVEL_PU
- IO_MODE_IT_HIGH_LEVEL_PU
- IO_MODE_IT_RISING_EDGE_PD
- IO_MODE_IT_FALLING_EDGE_PD
- IO_MODE_IT_LOW_LEVEL_PD
- IO_MODE_IT_HIGH_LEVEL_PD
- Return values:
-
IO_OK if all initializations are OK. Other value if error.
Definition at line 251 of file stm32f769i_eval_io.c.
References IO_I2C_ADDRESS, IO_OK, and IoDrv.
Referenced by BSP_CAMERA_HwReset(), BSP_CAMERA_PwrDown(), BSP_SD_DeInitEx(), BSP_SD_InitEx(), BSP_SD_IsDetectedEx(), BSP_SD_MspInit(), and BSP_TS_ITConfig().
uint8_t BSP_IO_DeInit | ( | void | ) |
DeInit allows Mfx Initialization to be executed again.
- Note:
- BSP_IO_Init() has no effect if the IoDrv 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 180 of file stm32f769i_eval_io.c.
uint8_t BSP_IO_Init | ( | void | ) |
Initializes and configures the IO functionalities and configures all necessary hardware resources (MFX, ...).
- Note:
- BSP_IO_Init() is using HAL_Delay() function to ensure that MFXSTM32L152 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 144 of file stm32f769i_eval_io.c.
References IO_ERROR, IO_I2C_ADDRESS, IO_OK, IO_PIN_ALL, IoDrv, and mfxstm32l152Identifier.
Referenced by BSP_CAMERA_Init(), BSP_SD_InitEx(), and BSP_TS_ITConfig().
void BSP_IO_ITClear | ( | void | ) |
Clears all the IO IT pending bits.
- Return values:
-
None
Definition at line 202 of file stm32f769i_eval_io.c.
References IO_I2C_ADDRESS, and IoDrv.
void BSP_IO_ITClearPin | ( | uint32_t | IO_Pins_To_Clear | ) |
Clear only one or a selection of IO IT pending bits.
- Parameters:
-
IO_Pins_To_Clear : MFX IRQ status IO pin to clear (or combination of several IOs)
Definition at line 212 of file stm32f769i_eval_io.c.
References IO_I2C_ADDRESS, and IoDrv.
Referenced by BSP_TS_ITClear().
uint32_t BSP_IO_ITGetStatus | ( | uint32_t | IoPin | ) |
Gets the selected pins IT status.
- Parameters:
-
IoPin,: Selected pins to check the status. This parameter can be any combination of the IO pins.
- Return values:
-
IO_OK if read status OK. Other value if error.
Definition at line 192 of file stm32f769i_eval_io.c.
References IO_I2C_ADDRESS, and IoDrv.
Referenced by BSP_TS_ITGetStatus().
uint32_t BSP_IO_ReadPin | ( | uint32_t | IoPin | ) |
Gets the selected pins current state.
- Parameters:
-
IoPin,: Selected pins to read. This parameter can be any combination of the IO pins.
- Return values:
-
The current pins state
Definition at line 296 of file stm32f769i_eval_io.c.
References IO_I2C_ADDRESS, and IoDrv.
Referenced by BSP_CAMERA_Init(), and BSP_SD_IsDetectedEx().
void BSP_IO_TogglePin | ( | uint32_t | IoPin | ) |
Toggles the selected pins state.
- Parameters:
-
IoPin,: Selected pins to toggle. This parameter can be any combination of the IO pins.
- Note:
- This function is only used to toggle one pin in the same time
- Return values:
-
None
Definition at line 308 of file stm32f769i_eval_io.c.
References IO_I2C_ADDRESS, and IoDrv.
void BSP_IO_WritePin | ( | uint32_t | IoPin, |
BSP_IO_PinStateTypeDef | PinState | ||
) |
Sets the selected pins state.
- Parameters:
-
IoPin,: Selected pins to write. This parameter can be any combination of the IO pins. PinState,: New pins state to write
- Return values:
-
None
Definition at line 284 of file stm32f769i_eval_io.c.
References IO_I2C_ADDRESS, and IoDrv.
Referenced by BSP_CAMERA_HwReset(), BSP_CAMERA_PwrDown(), and BSP_SD_MspInit().
Generated on Thu May 25 2017 11:03:12 for STM32769I_EVAL BSP User Manual by 1.7.6.1