FreeCalypso > hg > fc-tourmaline
view src/cs/services/atp/atp_gsm_bt_api_misc.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 Name : atp_gsm_bt_api_misc.c * * This file defines all the dummy functions that may be called by CONDAT * * * Version number : 0.1 Date : 10-Jully-2000 * * History : 0.1 - Created by E. Baissus * * Author : Eric Baissus : e-baissus@ti.com * * (C) Copyright 2000 by Texas Instruments Incorporated *****************************************************************************/ #include "rv/rv_general.h" #include "rvf/rvf_api.h" #include "atp/atp_api.h" #include "atp/atp_config.h" #include "atp/atp_messages.h" #include "atp/atp_gsm_bt_api.h" #include "atp/atp_gsm_gsm_api.h" #include "atp/atp_config.h" #include "atp/bti.h" #ifndef _WINDOWS #include "config/rv.cfg" #endif #if (_GSM==1) void bti_init_profile_req ( T_BTI_DEVICE_TYPE device,T_BTI_CONFIG config) { } void bti_deinit_profile_req(T_BTI_DEVICE_TYPE device ) { } void bti_device_search_req(T_BTI_DEVICE_TYPE device ) { } void bti_connect_device_req(T_BTI_DEVICE_TYPE device,T_BTI_BD_ADDR bd_addr[]) { } void bti_connect_device_res(T_BTI_DEVICE_TYPE device, T_BTI_BD_ADDR bd_addr[], T_BTI_RESULT connect_accepted) { } void bti_disconnect_device_req( T_BTI_DEVICE_TYPE device, T_BTI_BD_ADDR bd_addr[]) { } void bti_transfer_audio_in_req(T_BTI_DEVICE_TYPE device) { } void bti_transfer_audio_out_req(T_BTI_DEVICE_TYPE device, T_BTI_BD_ADDR bd_addr[]) { } void bti_pin_res(T_BTI_DEVICE_TYPE device, T_BTI_BD_ADDR bd_addr[], T_BTI_PIN pin_code[]) { } void bti_reconfig_profile_req( T_BTI_DEVICE_TYPE device, T_BTI_CONFIG config) { } void bti_device_control_req(T_BTI_DEVICE_TYPE device, T_BTI_REQ_ID req_id, unsigned char *control_data,unsigned short data_length) { } void bti_device_control_res(T_BTI_DEVICE_TYPE device, T_BTI_RES_ID res_id, unsigned char *control_data,unsigned short data_length) { } #endif