mirror of
https://github.com/apache/nuttx.git
synced 2025-12-12 05:34:38 +08:00
boards/nucleo-f302r8: fix LED1 pin
nucleo-f302r8 uses PB13 for LED1 not PA5
This commit is contained in:
@@ -130,7 +130,7 @@
|
||||
*
|
||||
* And one can be controlled by software:
|
||||
*
|
||||
* User LD2: green LED is a user LED connected to the I/O PA5 of the
|
||||
* User LD2: green LED is a user LED connected to the I/O PB13 of the
|
||||
* STM32F302R8T6.
|
||||
*
|
||||
* If CONFIG_ARCH_LEDS is not defined, then the user can control the LED in
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
*
|
||||
* And one can be controlled by software:
|
||||
*
|
||||
* User LD2: green LED is a user LED connected to the I/O PA5 of the
|
||||
* User LD2: green LED is a user LED connected to the I/O PB13 of the
|
||||
* STM32F302R8T6.
|
||||
*
|
||||
* If CONFIG_ARCH_LEDS is not defined, then the user can control the LED in
|
||||
@@ -51,7 +51,7 @@
|
||||
*/
|
||||
|
||||
#define GPIO_LED1 (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|\
|
||||
GPIO_OUTPUT_CLEAR|GPIO_PORTA|GPIO_PIN5)
|
||||
GPIO_OUTPUT_CLEAR|GPIO_PORTB|GPIO_PIN13)
|
||||
|
||||
#define LED_DRIVER_PATH "/dev/userleds"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user