STM32L152C-Discovery BSP User Manual: LED Functions

STM32L152C-Discovery BSP Driver

STM32L152C-Discovery BSP User Manual

Functions

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.

Function Documentation

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:
  • LED3
  • LED4
Return values:
None

Definition at line 117 of file stm32l152c_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:
  • LED3
  • LED4
Return values:
None

Definition at line 156 of file stm32l152c_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:
  • LED3
  • LED4
Return values:
None

Definition at line 143 of file stm32l152c_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:
  • LED3
  • LED4
Return values:
None

Definition at line 169 of file stm32l152c_discovery.c.

References GPIO_PIN, and GPIO_PORT.

Generated on Thu Aug 24 2017 17:55:24 for STM32L152C-Discovery BSP User Manual by   doxygen 1.7.6.1