mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +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:
|
* 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.
|
* STM32F302R8T6.
|
||||||
*
|
*
|
||||||
* If CONFIG_ARCH_LEDS is not defined, then the user can control the LED in
|
* 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:
|
* 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.
|
* STM32F302R8T6.
|
||||||
*
|
*
|
||||||
* If CONFIG_ARCH_LEDS is not defined, then the user can control the LED in
|
* 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|\
|
#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"
|
#define LED_DRIVER_PATH "/dev/userleds"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user