FreeCalypso > hg > fc-tourmaline
view cdg-hybrid/fflags.h @ 261:841a848ba762
SPI SWE: clear any pending boot-time interrupts in spi_init()
Charger plug/unplug hw logic in the Iota ABB has no built-in debouncing,
thus electrical contact bounce on the charging power connection interface
produces a lot of charger plug/unplug interrupts. When we boot in
charging mode (charging power present at boot time and is presumably
the cause of Switch-ON), some bounce may occur between the initial
Iota Switch-ON action and Calypso firmware booting. By clearing any
accumulated ITSTATREG interrupts on boot, we prevent these pre-boot
interrupts from generating charger plug/unplug events to FCHG, which
would upset smooth from-boot charging.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 14 May 2021 02:49:05 +0000 |
parents | 35f7a1dc9f7d |
children |
line wrap: on
line source
/* * This version of fflags.h (ccdgen config file) is a FreeCalypso concoction. * Here I set all feature flags to OFF in order to create a configuration * that mimics the TCS211 program. */ #undef FF_PS_RSSI #undef SIM_PERS #undef FF_PHONE_LOCK #undef TI_PS_FF_AT_CMD_P_ECC #undef TI_PS_FF_REL99_AND_ABOVE #undef TI_DUAL_MODE #undef REL99 #undef FF_BHO #undef TI_PS_FF_EMR #undef TI_PS_FF_RTD #undef FF_EGPRS #undef REL4 #undef TI_PS_FF_TBF_EST_PACCH #undef TI_PS_FF_QUAD_BAND_SUPPORT