This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 2c43595dfda0e42e6dfe3d6919b03227c9954bdf
Author: Kerogit <kr....@kerogit.eu>
AuthorDate: Mon May 26 10:56:31 2025 +0200

    boards/avr/avrdx/breadxavr: fix board LED constants
    
    During initial development of AVR DA/DB support, the board LED code
    and constants it uses were based on different AVR boards. The resulting
    code therefore did not work for most indicated states.
    
    This patch fixes LED status codes to match what the board LED code
    expects. Tested by manually triggering reset_board function which
    caused the board LED to blink (whereas it was not blinking before
    the fix.)
    
    Signed-off-by: Kerogit <kr....@kerogit.eu>
---
 boards/avr/avrdx/breadxavr/include/board.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/boards/avr/avrdx/breadxavr/include/board.h 
b/boards/avr/avrdx/breadxavr/include/board.h
index 5bac0222fc..b8fffa16c0 100644
--- a/boards/avr/avrdx/breadxavr/include/board.h
+++ b/boards/avr/avrdx/breadxavr/include/board.h
@@ -49,13 +49,13 @@
  */
 
 #define LED_STARTED            0
-#define LED_HEAPALLOCATE       1
-#define LED_IRQSENABLED        2
-#define LED_STACKCREATED       3
-#define LED_INIRQ              4
-#define LED_SIGNAL             5
-#define LED_ASSERTION          6
-#define LED_PANIC              7
+#define LED_HEAPALLOCATE       0
+#define LED_IRQSENABLED        0
+#define LED_STACKCREATED       1
+#define LED_INIRQ              2
+#define LED_SIGNAL             2
+#define LED_ASSERTION          2
+#define LED_PANIC              0
 
 /* Button definitions
  *

Reply via email to