From 2c43595dfda0e42e6dfe3d6919b03227c9954bdf Mon Sep 17 00:00:00 2001 From: Kerogit Date: Mon, 26 May 2025 10:56:31 +0200 Subject: [PATCH] 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 --- 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 5bac0222fc5..b8fffa16c0d 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 *