changeset 332:70e3acc5d4c8

L1: prep for charging being a possible cause of big sleep
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 14 Dec 2017 18:16:09 +0000
parents 8166b0afcf8c
children 8a90038c0173
files src/cs/layer1/cfile/l1_trace.c src/cs/layer1/include/l1_trace.h
diffstat 2 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/layer1/cfile/l1_trace.c	Thu Dec 14 16:22:30 2017 +0000
+++ b/src/cs/layer1/cfile/l1_trace.c	Thu Dec 14 18:16:09 2017 +0000
@@ -1604,7 +1604,7 @@
             else
             // big sleep
             {
-              char *array_string[]={"undefined","ligth on","uart","sim","gauging","sleep mode","DSP","BT","??"};
+              char *array_string[]={"undefined","light on","uart","sim","gauging","sleep mode","DSP","BT","charging"};
               sprintf (str,"      big sleep: %ld %ld %d %d (cause:%s) %s\n\r",
                        ((T_TRACE_INFO *)(msg->SigP))->tab[0],
                        ((T_TRACE_INFO *)(msg->SigP))->tab[1],
@@ -8039,7 +8039,7 @@
          else
          // big sleep
          {
-           char *array_string[]={"undefined","ligth on","uart","sim","gauging","sleep mode","DSP","BT","??"};
+           char *array_string[]={"undefined","light on","uart","sim","gauging","sleep mode","DSP","BT","charging"};
            sprintf (str,"      big sleep: %ld %ld %d %d (cause:%s) %s\n\r",
                     start_fn,
                     end_fn,
--- a/src/cs/layer1/include/l1_trace.h	Thu Dec 14 16:22:30 2017 +0000
+++ b/src/cs/layer1/include/l1_trace.h	Thu Dec 14 18:16:09 2017 +0000
@@ -92,13 +92,14 @@
   // Big Sleep source for Power management
   //-------------------------------------
   #define BIG_SLEEP_DUE_TO_UNDEFINED  0  // deep sleep is forbiden : cause undefined
-  #define BIG_SLEEP_DUE_TO_LIGHT_ON   1  // deep sleep is forbiden by ligth on activitie
+  #define BIG_SLEEP_DUE_TO_LIGHT_ON   1  // deep sleep is forbiden by light on activitie
   #define BIG_SLEEP_DUE_TO_UART       2  // deep sleep is forbiden by UART activitie
   #define BIG_SLEEP_DUE_TO_SIM        3  // deep sleep is forbiden by SIM activitie
   #define BIG_SLEEP_DUE_TO_GAUGING    4  // deep sleep is forbiden by not enought gauging
   #define BIG_SLEEP_DUE_TO_SLEEP_MODE 5  // deep sleep is forbiden by the sleep mode enabled
   #define BIG_SLEEP_DUE_TO_DSP_TRACES 6  // deep sleep is forbiden by the DSP
   #define BIG_SLEEP_DUE_TO_BLUETOOTH  7  // deep sleep is forbiden by the Bluetooth module
+  #define BIG_SLEEP_DUE_TO_CHARGING   8  // deep sleep is forbiden by battery charging
 
   void  Trace_Packet_Transfer      (UWORD8  prev_crc_error); // Previous RX blocks CRC_ERROR summary
   void  l1_display_buffer_trace_fct(void);
@@ -5662,13 +5663,14 @@
 // Big Sleep source for Power management
 //-------------------------------------
 #define BIG_SLEEP_DUE_TO_UNDEFINED  0  // deep sleep is forbiden : cause undefined
-#define BIG_SLEEP_DUE_TO_LIGHT_ON   1  // deep sleep is forbiden by ligth on activitie
+#define BIG_SLEEP_DUE_TO_LIGHT_ON   1  // deep sleep is forbiden by light on activitie
 #define BIG_SLEEP_DUE_TO_UART       2  // deep sleep is forbiden by UART activitie
 #define BIG_SLEEP_DUE_TO_SIM        3  // deep sleep is forbiden by SIM activitie
 #define BIG_SLEEP_DUE_TO_GAUGING    4  // deep sleep is forbiden by not enought gauging
 #define BIG_SLEEP_DUE_TO_SLEEP_MODE 5  // deep sleep is forbiden by the sleep mode enabled
 #define BIG_SLEEP_DUE_TO_DSP_TRACES 6  // deep sleep is forbiden by the DSP
 #define BIG_SLEEP_DUE_TO_BLUETOOTH  7  // deep sleep is forbiden by the Bluetooth module
+#define BIG_SLEEP_DUE_TO_CHARGING   8  // deep sleep is forbiden by battery charging
 
 /***********************************************************************************************************/
 /* Begin header