STM32F3-Discovery BSP User Manual: Exported Functions

STM32F3-Discovery BSP Drivers

STM32F3-Discovery BSP User Manual

Functions

uint32_t BSP_GetVersion (void)
 This method returns the STM32F3-DISCOVERY 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 Push Button GPIO and EXTI Line.
uint32_t BSP_PB_GetState (Button_TypeDef Button)
 Returns the selected Push Button state.

Function Documentation

uint32_t BSP_GetVersion ( void  )

This method returns the STM32F3-DISCOVERY BSP Driver revision.

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

Definition at line 155 of file stm32f3_discovery.c.

References __STM32F3_DISCO_BSP_VERSION.

void BSP_LED_Init ( Led_TypeDef  Led)

Configures LED GPIO.

Parameters:
LedSpecifies the Led to be configured. This parameter can be one of following parameters:
  • LED_RED
  • LED_BLUE
  • LED_ORANGE
  • LED_GREEN
  • LED_GREEN2
  • LED_ORANGE2
  • LED_BLUE2
  • LED_RED2
Return values:
None

Definition at line 174 of file stm32f3_discovery.c.

References LED_PIN, LED_PORT, and LEDx_GPIO_CLK_ENABLE.

void BSP_LED_Off ( Led_TypeDef  Led)

Turns selected LED Off.

Parameters:
LedSpecifies the Led to be set off. This parameter can be one of following parameters:
  • LED_RED
  • LED_BLUE
  • LED_ORANGE
  • LED_GREEN
  • LED_GREEN2
  • LED_ORANGE2
  • LED_BLUE2
  • LED_RED2
Return values:
None

Definition at line 225 of file stm32f3_discovery.c.

References LED_PIN, and LED_PORT.

void BSP_LED_On ( Led_TypeDef  Led)

Turns selected LED On.

Parameters:
LedSpecifies the Led to be set on. This parameter can be one of following parameters:
  • LED_RED
  • LED4
  • LED5
  • LED6
  • LED7
  • LED8
  • LED9
  • LED10
Return values:
None

Definition at line 206 of file stm32f3_discovery.c.

References LED_PIN, and LED_PORT.

void BSP_LED_Toggle ( Led_TypeDef  Led)

Toggles the selected LED.

Parameters:
LedSpecifies the Led to be toggled. This parameter can be one of following parameters:
  • LED_RED
  • LED_BLUE
  • LED_ORANGE
  • LED_GREEN
  • LED_GREEN2
  • LED_ORANGE2
  • LED_BLUE2
  • LED_RED2
Return values:
None

Definition at line 244 of file stm32f3_discovery.c.

References LED_PIN, and LED_PORT.

uint32_t BSP_PB_GetState ( Button_TypeDef  Button)

Returns the selected Push Button state.

Parameters:
ButtonSpecifies the Button to be checked. This parameter should be: BUTTON_USER
Return values:
TheButton GPIO pin value.

Definition at line 300 of file stm32f3_discovery.c.

References BUTTON_PIN, and BUTTON_PORT.

void BSP_PB_Init ( Button_TypeDef  Button,
ButtonMode_TypeDef  ButtonMode 
)

Configures Push Button GPIO and EXTI Line.

Parameters:
ButtonSpecifies the Button to be configured. This parameter should be: BUTTON_USER
ButtonModeSpecifies 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
Return values:
None

Definition at line 261 of file stm32f3_discovery.c.

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

Generated on Wed May 31 2017 10:47:41 for STM32F3-Discovery BSP User Manual by   doxygen 1.7.6.1