# HG changeset patch # User Mychaela Falconia # Date 1513275369 0 # Node ID 70e3acc5d4c8677d640514b897ad62e08cb357da # Parent 8166b0afcf8c99ba80dab9b4d60ebed40904b6db L1: prep for charging being a possible cause of big sleep diff -r 8166b0afcf8c -r 70e3acc5d4c8 src/cs/layer1/cfile/l1_trace.c --- 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, diff -r 8166b0afcf8c -r 70e3acc5d4c8 src/cs/layer1/include/l1_trace.h --- 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