configs/nucleo-l432kc: Fix stm32_userleds and some comments. After change LD2 to LD3 in board.h stm32_userleds.c was broken.
This commit is contained in:
parent
2fd4925965
commit
9574b0f29b
@ -145,7 +145,7 @@
|
||||
|
||||
/* LEDs
|
||||
*
|
||||
* The Nucleo l432kc board provides a single user LED, LD2. LD3
|
||||
* The Nucleo l432kc board provides a single user LED, LD3. LD3
|
||||
* is the green LED connected to Arduino signal D13 corresponding to
|
||||
* MCU I/O PB3 (pin 26).
|
||||
*
|
||||
|
@ -64,7 +64,7 @@
|
||||
|
||||
void board_autoled_initialize(void)
|
||||
{
|
||||
/* Configure LD2 GPIO for output */
|
||||
/* Configure LD3 GPIO for output */
|
||||
|
||||
stm32l4_configgpio(GPIO_LD3);
|
||||
}
|
||||
|
@ -170,9 +170,9 @@ static int led_pm_prepare(struct pm_callback_s *cb, int domain,
|
||||
|
||||
void board_userled_initialize(void)
|
||||
{
|
||||
/* Configure LD2 GPIO for output */
|
||||
/* Configure LD3 GPIO for output */
|
||||
|
||||
stm32l4_configgpio(GPIO_LD2);
|
||||
stm32l4_configgpio(GPIO_LD3);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@ -181,9 +181,9 @@ void board_userled_initialize(void)
|
||||
|
||||
void board_userled(int led, bool ledon)
|
||||
{
|
||||
if (led == BOARD_LD2)
|
||||
if (led == BOARD_LD3)
|
||||
{
|
||||
stm32l4_gpiowrite(GPIO_LD2, ledon);
|
||||
stm32l4_gpiowrite(GPIO_LD3, ledon);
|
||||
}
|
||||
}
|
||||
|
||||
@ -193,7 +193,7 @@ void board_userled(int led, bool ledon)
|
||||
|
||||
void board_userled_all(uint8_t ledset)
|
||||
{
|
||||
stm32l4_gpiowrite(GPIO_LD2, (ledset & BOARD_LD2_BIT) != 0);
|
||||
stm32l4_gpiowrite(GPIO_LD3, (ledset & BOARD_LD3_BIT) != 0);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user