FreeCalypso > hg > fc-tourmaline
comparison src/cs/drivers/drv_app/power/board/power.c @ 239:305d3bb691a5
FCHG startup: replace fchg_is_running with fchg_first_vbat
and also report the first Vbat reading in a trace
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 02 May 2021 05:30:59 +0000 |
parents | 740a8e8fc9d7 |
children | 184a031e38e6 |
comparison
equal
deleted
inserted
replaced
238:8f16e0663737 | 239:305d3bb691a5 |
---|---|
51 *******************************************************************************/ | 51 *******************************************************************************/ |
52 void Power_ON_Button(void) | 52 void Power_ON_Button(void) |
53 { | 53 { |
54 #if (MMI != 0) | 54 #if (MMI != 0) |
55 extern void fchs_pwon_button_boot(void); | 55 extern void fchs_pwon_button_boot(void); |
56 extern int fchg_is_running, r2d_is_running, mmi_task_init_done; | 56 extern int r2d_is_running, mmi_task_init_done; |
57 extern UINT16 fchg_first_vbat; | |
57 | 58 |
58 while (!fchg_is_running || !r2d_is_running || !mmi_task_init_done) | 59 while (!fchg_first_vbat || !r2d_is_running || !mmi_task_init_done) |
59 rvf_delay(8); | 60 rvf_delay(8); |
60 | 61 |
61 fchs_pwon_button_boot(); | 62 fchs_pwon_button_boot(); |
62 #endif | 63 #endif |
63 } | 64 } |