LED-GPIO named after the reference designator of actual board led

This commit is contained in:
Titus von Boxberg 2017-07-19 20:05:19 +02:00
parent f1850b4b21
commit e15fb346ea
3 changed files with 7 additions and 7 deletions

View File

@ -61,7 +61,7 @@ void board_autoled_initialize(void)
{
/* Configure the LD1 GPIO for output. Initial state is OFF */
stm32_configgpio(GPIO_LD1);
stm32_configgpio(GPIO_LD3);
}
/****************************************************************************
@ -91,7 +91,7 @@ void board_autoled_on(int led)
break;
}
stm32_gpiowrite(GPIO_LD1, ledstate);
stm32_gpiowrite(GPIO_LD3, ledstate);
}
/****************************************************************************
@ -120,7 +120,7 @@ void board_autoled_off(int led)
/* Turn STATUS LED off set driving the output high */
case 3: /* LED_PANIC: The system has crashed STATUS LED=FLASH */
stm32_gpiowrite(GPIO_LD1, false);
stm32_gpiowrite(GPIO_LD3, false);
break;
}
}

View File

@ -64,7 +64,7 @@
void board_userled_initialize(void)
{
stm32_configgpio(GPIO_LD1);
stm32_configgpio(GPIO_LD3);
}
/****************************************************************************
@ -81,7 +81,7 @@ void board_userled(int led, bool ledon)
{
if (led == BOARD_STATUS_LED)
{
stm32_gpiowrite(GPIO_LD1, !ledon);
stm32_gpiowrite(GPIO_LD3, !ledon);
}
}
@ -98,7 +98,7 @@ void board_userled(int led, bool ledon)
void board_userled_all(uint8_t ledset)
{
stm32_gpiowrite(GPIO_LD1, (ledset & BOARD_STATUS_LED_BIT) != 0);
stm32_gpiowrite(GPIO_LD3, (ledset & BOARD_STATUS_LED_BIT) != 0);
}
#endif /* !CONFIG_ARCH_LEDS */

2
configs/stm32f769i-disco/src/stm32f769i-disco.h Executable file → Normal file
View File

@ -64,7 +64,7 @@
* LD3 is on when PA12 is high.
*/
#define GPIO_LD1 (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_50MHz | GPIO_OUTPUT_CLEAR | \
#define GPIO_LD3 (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_50MHz | GPIO_OUTPUT_CLEAR | \
GPIO_PORTA | GPIO_PIN12)
/* Pushbutton B1, labelled "User", is connected to GPIO PA0. A high value will be sensed when the