BSP_IO_ConfigPin() function
Configures the IO pin(s) according to IO mode structure value.
Arguments
IO_Pin
IO pin(s) to be configured. This parameter can be one of the following values: @arg MFXSTM32L152_GPIO_PIN_x: where x can be from 0 to 23.
IO_Mode
IO pin mode to configure This parameter can be one of the following values: @arg IO_MODE_INPUT @arg IO_MODE_OUTPUT @arg IO_MODE_IT_RISING_EDGE @arg IO_MODE_IT_FALLING_EDGE @arg IO_MODE_IT_LOW_LEVEL @arg IO_MODE_IT_HIGH_LEVEL @arg IO_MODE_ANALOG @arg IO_MODE_OFF @arg IO_MODE_INPUT_PU, @arg IO_MODE_INPUT_PD, @arg IO_MODE_OUTPUT_OD, @arg IO_MODE_OUTPUT_OD_PU, @arg IO_MODE_OUTPUT_OD_PD, @arg IO_MODE_OUTPUT_PP, @arg IO_MODE_OUTPUT_PP_PU, @arg IO_MODE_OUTPUT_PP_PD, @arg IO_MODE_IT_RISING_EDGE_PU @arg IO_MODE_IT_FALLING_EDGE_PU @arg IO_MODE_IT_LOW_LEVEL_PU @arg IO_MODE_IT_HIGH_LEVEL_PU @arg IO_MODE_IT_RISING_EDGE_PD @arg IO_MODE_IT_FALLING_EDGE_PD @arg IO_MODE_IT_LOW_LEVEL_PD @arg IO_MODE_IT_HIGH_LEVEL_PD
Return value
IO_OK if all initializations are OK. Other value if error.
Examples
BSP_IO_ConfigPin() is referenced by 12 libraries and example projects: