# HG changeset patch # User Mychaela Falconia # Date 1549495303 0 # Node ID bd13018842164124ce815de44b07a9266fd8ea5a # Parent c47e2dc1013457fac65a604b35fbfa4294308de9 l1_small.c: BIG_SMALL_SLEEP support like in Magnetite diff -r c47e2dc10134 -r bd1301884216 src/cs/layer1/cfile/l1_small.c --- a/src/cs/layer1/cfile/l1_small.c Wed Feb 06 23:15:04 2019 +0000 +++ b/src/cs/layer1/cfile/l1_small.c Wed Feb 06 23:21:43 2019 +0000 @@ -234,9 +234,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 @@ -270,6 +271,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 ");