avr: removed LED, renamed LED_SIMPLE to LED, introduces LED1, LED2, LED3
This commit is contained in:
@@ -30,16 +30,16 @@ modulesOnEvery100ms:
|
||||
bigcall Clock_Every100ms ; generates calls to onEverySecond/Minute/Hour/Day
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_LED_SIMPLE
|
||||
bigcall LedSimple_Every100ms
|
||||
#ifdef MODULES_LED1
|
||||
bigcall Led1_Every100ms
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_LED_SIGNAL
|
||||
bigcall LedSignal_Every100ms
|
||||
#ifdef MODULES_LED2
|
||||
bigcall Led2_Every100ms
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_LED_ACTIVITY
|
||||
bigcall LedActivity_Every100ms
|
||||
#ifdef MODULES_LED3
|
||||
bigcall Led3_Every100ms
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_BEEPER_SIMPLE
|
||||
|
||||
@@ -144,18 +144,22 @@ MODULE_END_COM2W:
|
||||
.include "modules/clock/main.asm"
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_LED_SIMPLE
|
||||
.include "modules/led_simple/main.asm"
|
||||
; unconditionally include led defs (doesn't occupy ram or flash)
|
||||
.include "modules/led/defs.asm"
|
||||
|
||||
#ifdef MODULES_LED1
|
||||
.include "modules/led/led1.asm"
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_LED_SIGNAL
|
||||
.include "modules/led_signal/main.asm"
|
||||
#ifdef MODULES_LED2
|
||||
.include "modules/led/led2.asm"
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_LED_ACTIVITY
|
||||
.include "modules/led_activity/main.asm"
|
||||
#ifdef MODULES_LED3
|
||||
.include "modules/led/led3.asm"
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef MODULES_BEEPER_SIMPLE
|
||||
.include "modules/beeper_simple/main.asm"
|
||||
#endif
|
||||
|
||||
@@ -43,25 +43,18 @@ modulesInit:
|
||||
bigcall XRAM_Init
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_LED
|
||||
ldi zl, LOW(ledA3Flash)
|
||||
ldi zh, HIGH(ledA3Flash)
|
||||
ldi yl, LOW(ledA3Sram)
|
||||
ldi yh, HIGH(ledA3Sram)
|
||||
bigcall Led_Init
|
||||
#ifdef MODULES_LED1
|
||||
bigcall Led1_Init
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_LED_SIMPLE
|
||||
bigcall LedSimple_Init
|
||||
#ifdef MODULES_LED2
|
||||
bigcall Led2_Init
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_LED_SIGNAL
|
||||
bigcall LedSignal_Init
|
||||
#ifdef MODULES_LED3
|
||||
bigcall Led3_Init
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_LED_ACTIVITY
|
||||
bigcall LedActivity_Init
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_BEEPER_SIMPLE
|
||||
bigcall BeeperSimple_Init
|
||||
|
||||
Reference in New Issue
Block a user