avr: more code sharing.

This commit is contained in:
Martin Preuss
2026-04-14 23:45:32 +02:00
parent d6e731b34e
commit ab7e28a9d5
6 changed files with 306 additions and 459 deletions

View File

@@ -34,7 +34,7 @@ main:
bigcall systemSetSpeed
bigcall systemInitHardware
bigcall Utils_Init
bigcall RAND_SetupSeed
bigcall Utils_SetupUid
bigcall modulesInit
bigcall appsInit
@@ -43,16 +43,6 @@ main:
bigcall onSystemStart
#ifdef MODULES_LED
ldi xl, LOW(blinkPattern) ; debug: set blink pattern
ldi xh, HIGH(blinkPattern)
ldi zl, LOW(ledA3Flash)
ldi zh, HIGH(ledA3Flash)
ldi yl, LOW(ledA3Sram)
ldi yh, HIGH(ledA3Sram)
rcall Led_SetPattern
#endif
main_loop:
bigcall systemSleep ; system-dependant