FreeCalypso > hg > fc-tourmaline
view src/cs/services/etm/etm_version.h @ 244:96784b8974eb
Switch_ON(): detect charging mode by CHGPRES bit
Consider the following scenario: the phone is on, the user plugs in
the charger, and then executes the power-off operation. In the Iota
VRPC this sequence translates to a switch-off immediately followed
by another switch-on - but the CHGSTS bit doesn't get set on the second
switch-on cycle! Disassembly of Pirelli's fw shows that they check
the CHGPRES bit, and furthermore, if both CHGPRES and ONBSTS are set,
the code they pass to their modified Power_ON_Button() function is
the one for charging - so let's adopt the same CHGPRES check and
the same priority order for switch-on causes.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 03 May 2021 06:51:29 +0000 |
parents | 4e78acac3d88 |
children |
line wrap: on
line source
/******************************************************************************** * Enhanced TestMode (ETM) - Revision Controle System Header * @file etm_version.h * * @author Kim T. Peteren (ktp@ti.com) * @version 0.1 * * * History: * * Date Modification * ------------------------------------ * 21/10/2003 Creation * * * (C) Copyright 2003 by Texas Instruments Incorporated, All Rights Reserved *********************************************************************************/ #ifndef _ETM_VERSION_H_ #define _ETM_VERSION_H_ /****************************************************************************** * Enhanced TestMode version numbers *****************************************************************************/ //#define ETM_VERSION 0x0100L // First Version //#define ETM_VERSION 0x0102L // Updated ETM task state machine, removed recption of ATP events. #define ETM_VERSION 0x0103L // Fixed issue regarding interaction with the ETM registration database #define ETM_API_VERSION 0x0100L // First Version /****************************************************************************** * Version of ETM CORE *****************************************************************************/ //#define ETM_CORE_VERSION 0x0101L // First Version //#define ETM_CORE_VERSION 0x0102L // #define ETM_CORE_VERSION 0x0103L // Updated core FIDs with new values and added // support for Die-ID read. /****************************************************************************** * Version of ETM AUDIO *****************************************************************************/ //#define ETM_AUDIO_VERSION 0x0100L // First Version //#define ETM_AUDIO_VERSION 0x0101L // Version updated with support of new AUDIO parameters - not yet fully tested #define ETM_AUDIO_VERSION 0x0102L // Implemented callback function instead of msg handling. #endif // End of ETM_VERSION /****************************************************************************** * Version of ETM PWR *****************************************************************************/ #define ETM_PWR_VERSION 0x0100L // First Version