STM32F411E-Discovery BSP User Manual: STM32F411E DISCOVERY HLOW LEVEL Exported Functions

STM32F411E-Discovery BSP Drivers

STM32F411E-Discovery BSP User Manual
STM32F411E DISCOVERY HLOW LEVEL Exported Functions

Functions

uint32_t BSP_GetVersion (void)
 This method returns the STM32F411 DISCO BSP Driver revision.
void BSP_LED_Init (Led_TypeDef Led)
 Configures LED GPIO.
void BSP_LED_On (Led_TypeDef Led)
 Turns selected LED On.
void BSP_LED_Off (Led_TypeDef Led)
 Turns selected LED Off.
void BSP_LED_Toggle (Led_TypeDef Led)
 Toggles the selected LED.
void BSP_PB_Init (Button_TypeDef Button, ButtonMode_TypeDef ButtonMode)
 Configures Button GPIO and EXTI Line.
uint32_t BSP_PB_GetState (Button_TypeDef Button)
 Returns the selected Button state.

Function Documentation

uint32_t BSP_GetVersion ( void  )

This method returns the STM32F411 DISCO BSP Driver revision.

Return values:
version,:0xXYZR (8bits for each decimal, R for RC)

Definition at line 159 of file stm32f411e_discovery.c.

References __STM32F411E_DISCO_BSP_VERSION.

void BSP_LED_Init ( Led_TypeDef  Led)

Configures LED GPIO.

Parameters:
Led,:Specifies the Led to be configured. This parameter can be one of following parameters:
  • LED4
  • LED3
  • LED5
  • LED6

Definition at line 173 of file stm32f411e_discovery.c.

References GPIO_PIN, GPIO_PORT, and LEDx_GPIO_CLK_ENABLE.

void BSP_LED_Off ( Led_TypeDef  Led)

Turns selected LED Off.

Parameters:
Led,:Specifies the Led to be set off. This parameter can be one of following parameters:
  • LED4
  • LED3
  • LED5
  • LED6

Definition at line 214 of file stm32f411e_discovery.c.

References GPIO_PIN, and GPIO_PORT.

void BSP_LED_On ( Led_TypeDef  Led)

Turns selected LED On.

Parameters:
Led,:Specifies the Led to be set on. This parameter can be one of following parameters:
  • LED4
  • LED3
  • LED5
  • LED6

Definition at line 200 of file stm32f411e_discovery.c.

References GPIO_PIN, and GPIO_PORT.

void BSP_LED_Toggle ( Led_TypeDef  Led)

Toggles the selected LED.

Parameters:
Led,:Specifies the Led to be toggled. This parameter can be one of following parameters:
  • LED4
  • LED3
  • LED5
  • LED6

Definition at line 228 of file stm32f411e_discovery.c.

References GPIO_PIN, and GPIO_PORT.

uint32_t BSP_PB_GetState ( Button_TypeDef  Button)

Returns the selected Button state.

Parameters:
Button,:Specifies the Button to be checked. This parameter should be: BUTTON_KEY
Return values:
TheButton GPIO pin value.

Definition at line 280 of file stm32f411e_discovery.c.

References BUTTON_PIN, and BUTTON_PORT.

void BSP_PB_Init ( Button_TypeDef  Button,
ButtonMode_TypeDef  ButtonMode 
)

Configures Button GPIO and EXTI Line.

Parameters:
Button,:Specifies the Button to be configured. This parameter should be: BUTTON_KEY
ButtonMode,:Specifies Button mode. This parameter can be one of following parameters:
  • BUTTON_MODE_GPIO: Button will be used as simple IO
  • BUTTON_MODE_EXTI: Button will be connected to EXTI line with interrupt generation capability

Definition at line 243 of file stm32f411e_discovery.c.

References BUTTON_IRQn, BUTTON_MODE_EXTI, BUTTON_MODE_GPIO, BUTTON_PIN, BUTTON_PORT, and BUTTONx_GPIO_CLK_ENABLE.

Generated on Fri Jan 20 2017 11:38:17 for STM32F411E-Discovery BSP User Manual by   doxygen 1.7.6.1