avr: enable sk6812 module.
This commit is contained in:
@@ -34,6 +34,7 @@ main:
|
|||||||
|
|
||||||
rcall systemSetSpeed
|
rcall systemSetSpeed
|
||||||
|
|
||||||
|
|
||||||
rcall initModules
|
rcall initModules
|
||||||
|
|
||||||
rcall Utils_SetupUid
|
rcall Utils_SetupUid
|
||||||
@@ -65,14 +66,15 @@ main:
|
|||||||
main_loop:
|
main_loop:
|
||||||
rcall runModules
|
rcall runModules
|
||||||
|
|
||||||
sei ; make sure interrupts really are enabled
|
|
||||||
; only modify SE, SM1 and SM0
|
; only modify SE, SM1 and SM0
|
||||||
|
cli
|
||||||
in r16, MCUCR
|
in r16, MCUCR
|
||||||
ldi r17, (1<<SE) | (1<<SM1) | (1<<SM0)
|
ldi r17, (1<<SE) | (1<<SM1) | (1<<SM0)
|
||||||
neg r17
|
neg r17
|
||||||
and r16, r17
|
and r16, r17
|
||||||
ori r16, (1<<SE) ; sleep mode "idle", enable
|
ori r16, (1<<SE) ; sleep mode "idle", enable
|
||||||
out MCUCR, r16
|
out MCUCR, r16
|
||||||
|
sei ; make sure interrupts really are enabled
|
||||||
sleep ; sleep, wait for interrupt
|
sleep ; sleep, wait for interrupt
|
||||||
rjmp main_loop
|
rjmp main_loop
|
||||||
|
|
||||||
@@ -148,6 +150,10 @@ initModules:
|
|||||||
rcall REED_Init
|
rcall REED_Init
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef MODULES_SK6812
|
||||||
|
rcall SK6812_Init
|
||||||
|
#endif
|
||||||
|
|
||||||
; done
|
; done
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user