comparison src/cs/drivers/drv_app/power/board/power.c @ 240:184a031e38e6

Switch_ON(): start FCBM for charging boot mode
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 02 May 2021 06:00:09 +0000
parents 305d3bb691a5
children 96784b8974eb
comparison
equal deleted inserted replaced
239:305d3bb691a5 240:184a031e38e6
34 /* Declare the variable containing pressed and released callback. */ 34 /* Declare the variable containing pressed and released callback. */
35 extern T_KPD_KEYPAD Kp; 35 extern T_KPD_KEYPAD Kp;
36 36
37 extern effs_t ffs_exit(void); 37 extern effs_t ffs_exit(void);
38 #endif // _WINDOWS 38 #endif // _WINDOWS
39
40 #if (MMI != 0)
41 #include "fcbm/fcbm_send_msg.h"
42 #endif
39 43
40 /// The ABB status used to know the cause of the Switch ON event. 44 /// The ABB status used to know the cause of the Switch ON event.
41 static SYS_UWORD16 Power_abb_status = 0; 45 static SYS_UWORD16 Power_abb_status = 0;
42 46
43 47
133 else if (Power_abb_status & CHGSTS) 137 else if (Power_abb_status & CHGSTS)
134 { 138 {
135 /* Switch on Condition on CHARGER IC PLUG */ 139 /* Switch on Condition on CHARGER IC PLUG */
136 rvf_send_trace("Boot: Charger Plug",18, NULL_PARAM, 140 rvf_send_trace("Boot: Charger Plug",18, NULL_PARAM,
137 RV_TRACE_LEVEL_DEBUG_LOW, LCC_USE_ID); 141 RV_TRACE_LEVEL_DEBUG_LOW, LCC_USE_ID);
142 #if (MMI != 0)
143 fcbm_message_to_task(FCBM_START_CHG_MODE);
144 #endif
138 } 145 }
139 146
140 else 147 else
141 { 148 {
142 /* In FreeCalypso start from reset is NOT the same as PWON! */ 149 /* In FreeCalypso start from reset is NOT the same as PWON! */