FreeCalypso > hg > fc-tourmaline
view src/cs/drivers/drv_app/fchg/fchg_func_i.h @ 281:a75eefbf8be4
Phone boot with PWON: weed out short button presses
Every standard end user phone has a design provision, most naturally
implemented in firmware, whereby the PWON button effects a boot only
if it is held down long enough - short presses of this PWON button
are detected, assumed to be spurious and cause the fw to power back off
instead of proceeding with boot. The present change introduces this
standard function in FreeCalypso.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 24 Sep 2021 02:03:08 +0000 |
parents | 7420959e02ec |
children |
line wrap: on
line source
/* * Declarations of internal functions live here. */ #ifndef __FCHG_FUNC_I #define __FCHG_FUNC_I #include "fchg/fchg_messages.h" void pwr_init_discharge(void); void pwr_load_ffs_batt_table(void); void pwr_load_ffs_charging_config(void); void pwr_check_ffs_bsim(void); void pwr_set_default_batt_table(void); void pwr_process_message(T_RV_HDR *msg_ptr); void pwr_process_adc(struct pwr_adc_ind_s *msg); void pwr_handle_timer(void); void pwr_charger_plug_unplug_ind(void); void pwr_charge_start_req(void); void pwr_charge_stop_req(void); #endif /* include guard */