changeset 149:bd1301884216

l1_small.c: BIG_SMALL_SLEEP support like in Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 06 Feb 2019 23:21:43 +0000
parents c47e2dc10134
children d43dadd91383
files src/cs/layer1/cfile/l1_small.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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    ");