From 385c850d2f784ebfe8a1888de9b7bd2273cac495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Dorst?= Date: Sat, 28 Mar 2026 21:40:43 +0100 Subject: [PATCH] add comments --- machine.h | 1 + rtl837x_leds.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/machine.h b/machine.h index 20e8070..1a49363 100644 --- a/machine.h +++ b/machine.h @@ -29,6 +29,7 @@ typedef struct { #define LED_27 1 +// SYSTEM LED #define LED_28_SYS 2 #define LED_29 4 diff --git a/rtl837x_leds.c b/rtl837x_leds.c index f92360b..e344cd4 100644 --- a/rtl837x_leds.c +++ b/rtl837x_leds.c @@ -190,6 +190,7 @@ void leds_setup(void) __banked else reg_bit_clear(RTL837X_PIN_MUX_0, 27); + // SYSTEM LED if (machine.high_leds.mux & LED_28_SYS) reg_bit_set(RTL837X_PIN_MUX_0, 28); else @@ -205,6 +206,7 @@ void leds_setup(void) __banked else reg_bit_clear(RTL837X_REG_LED_GLB_IO_EN, 27); + // SYSTEM LED if (machine.high_leds.enable & LED_28_SYS) reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 28); else