STM32 Bootloader
Customizable Bootloader for STM32 microcontrollers
led.c
Go to the documentation of this file.
1 
25 /* Includes ------------------------------------------------------------------*/
26 #include "led.h"
27 
28 #include "board.h"
29 #include "mcu_hal.h"
30 
31 /* Functions -----------------------------------------------------------------*/
32 void LedGreen1On(void)
33 {
34  HAL_GPIO_WritePin(LED_GREEN1_GPIO_PORT, LED_GREEN1_GPIO_PIN,
36 }
37 
38 void LedGreen1Off(void)
39 {
40  HAL_GPIO_WritePin(LED_GREEN1_GPIO_PORT, LED_GREEN1_GPIO_PIN,
42 }
43 
44 void LedGreen1Toggle(void)
45 {
46  HAL_GPIO_TogglePin(LED_GREEN1_GPIO_PORT, LED_GREEN1_GPIO_PIN);
47 }
48 
49 void LedGreen2On(void)
50 {
51  HAL_GPIO_WritePin(LED_GREEN2_GPIO_PORT, LED_GREEN2_GPIO_PIN,
53 }
54 
55 void LedGreen2Off(void)
56 {
57  HAL_GPIO_WritePin(LED_GREEN2_GPIO_PORT, LED_GREEN2_GPIO_PIN,
59 }
60 
61 void LedGreen2Toggle(void)
62 {
63  HAL_GPIO_TogglePin(LED_GREEN2_GPIO_PORT, LED_GREEN2_GPIO_PIN);
64 }
65 
This file contains the board-specific GPIO pin definitions, peripheral configurations,...
#define LED_GREEN1_GPIO_PORT
Definition: board.h:51
#define LED_GREEN1_GPIO_ACTIVE_STATE
Definition: board.h:57
#define LED_GREEN2_GPIO_PIN
Definition: board.h:67
#define LED_GREEN1_GPIO_PIN
Definition: board.h:54
#define LED_GREEN2_GPIO_ACTIVE_STATE
Definition: board.h:70
#define LED_GREEN2_GPIO_INACTIVE_STATE
Definition: board.h:73
#define LED_GREEN1_GPIO_INACTIVE_STATE
Definition: board.h:60
#define LED_GREEN2_GPIO_PORT
Definition: board.h:64
void LedGreen1Off(void)
Turn off the 1st green LED (LD2).
Definition: led.c:38
void LedGreen2Toggle(void)
Toggle the 2nd green LED (LD3).
Definition: led.c:61
void LedGreen1Toggle(void)
Toggle the 1st green LED (LD2).
Definition: led.c:44
void LedGreen2On(void)
Turn on the 2nd green LED (LD3).
Definition: led.c:49
void LedGreen2Off(void)
Turn off the 2nd green LED (LD3).
Definition: led.c:55
void LedGreen1On(void)
Turn on the 1st green LED (LD2).
Definition: led.c:32
This file contains the LED driver function prototypes for controlling the green LEDs on the STM32L496...
This file includes the microcontroller-specific HAL header files.