FreeCalypso > hg > fc-tourmaline
view src/cs/drivers/drv_app/kpd/kpd_handle_timer.c @ 263:b5e8dfd114a7
Switch_ON(): go into charging boot mode on either CHGSTS or CHGPRES
If someone were to plug and then unplug a charger into a switched-off
phone in an extremely brief "glitch" manner, we should do an automatic
power-off on boot in this condition. When we were checking only
CHGPRES in Switch_ON(), we would go into Misc boot state instead,
which is undesirable. Now if we have a CHGSTS but not CHGPRES
condition, we will go into charging boot mode, and FCBM will then
do the automatic power-off upon detecting absence of the charger
in its periodic polling.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 14 May 2021 05:50:36 +0000 |
parents | 4e78acac3d88 |
children |
line wrap: on
line source
/** * @file kpd_handle_timer.c * * Coding of the kpd_handle_timer function, which is called when a timer * of the SWE expires. * * @author Laurent Sollier (l-sollier@ti.com) * @version 0.1 */ /* * History: * * Date Author Modification * ---------------------------------------- * 10/12/2001 L Sollier Create * * * (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved */ #include "rv/rv_general.h" /** * @name Functions implementation * */ /*@{*/ /** * function: kpd_handle_timer */ T_RV_RET kpd_handle_timer(UINT8 timer_num) { return RV_OK; } /*@}*/