FreeCalypso > hg > fc-magnetite
diff src/cs/layer1/cfile/l1_small.c @ 571:b24d42baa30d
BIG_SMALL_SLEEP mode implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 12 Jan 2019 23:03:06 +0000 |
parents | 50a15a54801e |
children |
line wrap: on
line diff
--- a/src/cs/layer1/cfile/l1_small.c Sat Jan 12 22:53:46 2019 +0000 +++ b/src/cs/layer1/cfile/l1_small.c Sat Jan 12 23:03:06 2019 +0000 @@ -231,9 +231,10 @@ */ asm(" .def _switch_PWR_MNGT "); asm(" .def _mode_authorized "); -asm("SMALL_SLEEP .equ 01h "); -asm("ALL_SLEEP .equ 04h "); -asm("PWR_MNGT .equ 01h "); +asm("SMALL_SLEEP .equ 01h "); +asm("ALL_SLEEP .equ 04h "); +asm("BIG_SMALL_SLEEP .equ 05h "); +asm("PWR_MNGT .equ 01h "); #if (OP_L1_STANDALONE == 0) // This code log the number of time the Small sleep // function has been invoked @@ -267,6 +268,8 @@ asm(" cmp r1,#SMALL_SLEEP "); // take the current value of the register asm(" beq Small_sleep_ok "); asm(" cmp r1,#ALL_SLEEP "); // take the current value of the register +asm(" beq Small_sleep_ok "); +asm(" cmp r1,#BIG_SMALL_SLEEP "); asm(" bne End_small_sleep "); asm("Small_sleep_ok ");