avr: enable sk6812 module.

This commit is contained in:
Martin Preuss
2024-09-18 20:23:16 +02:00
parent 741dd4fe12
commit 9e80636acb

View File

@@ -33,7 +33,8 @@ main:
; rcall watchdogOff ; turn off watchdog timer (sometimes it stays on after reboot)
rcall systemSetSpeed
rcall initModules
rcall Utils_SetupUid
@@ -65,14 +66,15 @@ main:
main_loop:
rcall runModules
sei ; make sure interrupts really are enabled
; only modify SE, SM1 and SM0
cli
in r16, MCUCR
ldi r17, (1<<SE) | (1<<SM1) | (1<<SM0)
neg r17
and r16, r17
ori r16, (1<<SE) ; sleep mode "idle", enable
out MCUCR, r16
sei ; make sure interrupts really are enabled
sleep ; sleep, wait for interrupt
rjmp main_loop
@@ -148,6 +150,10 @@ initModules:
rcall REED_Init
#endif
#ifdef MODULES_SK6812
rcall SK6812_Init
#endif
; done
ret