mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
add comments
This commit is contained in:
@@ -29,6 +29,7 @@ typedef struct {
|
|||||||
|
|
||||||
|
|
||||||
#define LED_27 1
|
#define LED_27 1
|
||||||
|
// SYSTEM LED
|
||||||
#define LED_28_SYS 2
|
#define LED_28_SYS 2
|
||||||
#define LED_29 4
|
#define LED_29 4
|
||||||
|
|
||||||
|
|||||||
@@ -190,6 +190,7 @@ void leds_setup(void) __banked
|
|||||||
else
|
else
|
||||||
reg_bit_clear(RTL837X_PIN_MUX_0, 27);
|
reg_bit_clear(RTL837X_PIN_MUX_0, 27);
|
||||||
|
|
||||||
|
// SYSTEM LED
|
||||||
if (machine.high_leds.mux & LED_28_SYS)
|
if (machine.high_leds.mux & LED_28_SYS)
|
||||||
reg_bit_set(RTL837X_PIN_MUX_0, 28);
|
reg_bit_set(RTL837X_PIN_MUX_0, 28);
|
||||||
else
|
else
|
||||||
@@ -205,6 +206,7 @@ void leds_setup(void) __banked
|
|||||||
else
|
else
|
||||||
reg_bit_clear(RTL837X_REG_LED_GLB_IO_EN, 27);
|
reg_bit_clear(RTL837X_REG_LED_GLB_IO_EN, 27);
|
||||||
|
|
||||||
|
// SYSTEM LED
|
||||||
if (machine.high_leds.enable & LED_28_SYS)
|
if (machine.high_leds.enable & LED_28_SYS)
|
||||||
reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 28);
|
reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 28);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user