removed idle time calculation (doesn't work so far).

This commit is contained in:
Martin Preuss
2023-04-10 23:48:24 +02:00
parent e440746ab5
commit c16fba0cf0
6 changed files with 6 additions and 106 deletions

View File

@@ -71,8 +71,6 @@ main_loop:
; cbi PORTA, PORTA2 ; debug (on)
; sbi PORTA, PORTA2 ; debug (off)
rcall Timer_BeforeSleep
; only modify SE, SM1 and SM0
in r16, MCUCR
ldi r17, (1<<SE) | (1<<SM1) | (1<<SM0)
@@ -81,7 +79,6 @@ main_loop:
ori r16, (1<<SE) ; sleep mode "idle", enable
out MCUCR, r16
sleep ; sleep, wait for interrupt
rcall Timer_AfterSleep
rjmp main_loop