FreeCalypso > hg > fc-magnetite
comparison src/condat3/com/include/pwr.h @ 201:f3f58412df01
src/condat3/com/include: pwr.h and rtc.h replaced with TCS211 versions
as part of the TCS2/TCS3 hybrid effort
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Fri, 14 Oct 2016 05:49:28 +0000 |
| parents | c8bd5a927942 |
| children |
comparison
equal
deleted
inserted
replaced
| 200:876b6c569e36 | 201:f3f58412df01 |
|---|---|
| 15 | Texas Instruments Berlin, AG. | 15 | Texas Instruments Berlin, AG. |
| 16 +----------------------------------------------------------------------------- | 16 +----------------------------------------------------------------------------- |
| 17 | Purpose : Types definitions for the power driver | 17 | Purpose : Types definitions for the power driver |
| 18 | . | 18 | . |
| 19 +----------------------------------------------------------------------------- | 19 +----------------------------------------------------------------------------- |
| 20 $History: Pwr.h | |
| 21 Dec 05, 2006 REF:OMAPS00106691 a0393213(R.Prabakar) | |
| 22 Description:compiler error is arising in simulation build since timer.h is not included in simulation build | |
| 23 Solution :flag off timer.h and its dependencies in gdi | |
| 24 | |
| 25 Oct 30,2006 ER:OMAPS00091029 x0039928(sumanth) | |
| 26 Bootup time measurement | |
| 27 | |
| 28 Apr 17, 2006 REF: ER OMAPS00075178 x0pleela | |
| 29 Description: When the charger connect to phone(i-sample), the charger driver works, but the MMI and App don't work | |
| 30 Solution: Defined macros for charging events | |
| 31 | |
| 32 */ | 20 */ |
| 33 | 21 |
| 34 #ifndef PWR_H | 22 #ifndef PWR_H |
| 35 #define PWR_H | 23 #define PWR_H |
| 36 | 24 |
| 37 #ifndef _SIMULATION_ | |
| 38 #include "timer.h" /*OMAPS00091029 x0039928(sumanth)*/ | |
| 39 #endif | |
| 40 | 25 |
| 41 /* | 26 /* |
| 42 * Power signals | 27 * Power signals |
| 43 */ | 28 */ |
| 44 #define PWR_SIGTYPE_EXTPOWER 1 | 29 #define PWR_SIGTYPE_EXTPOWER 1 |
| 46 #define PWR_SIGTYPE_BATLEVEL 3 | 31 #define PWR_SIGTYPE_BATLEVEL 3 |
| 47 | 32 |
| 48 /* | 33 /* |
| 49 * Power Status | 34 * Power Status |
| 50 */ | 35 */ |
| 51 #define PWR_BATTERY_ON 0 // use battery power //x0pleela 10 Apr, 2006 ER: OMAPS00075178 | |
| 52 #define PWR_EXTPOWER_ON 1 | 36 #define PWR_EXTPOWER_ON 1 |
| 53 #define PWR_CHARGER_ON 6 //x0pleela 11 Apr, 2006 changed the value from 2 to 6 | 37 #define PWR_CHARGER_ON 2 |
| 54 | |
| 55 //x0pleela 10 Apr, 2006 ER: OMAPS00075178 | |
| 56 #define PWR_CHARGER_BEGIN 2 // charger begin | |
| 57 #define PWR_CHARGER_STOP 3 // charger end | |
| 58 #define PWR_CHARGER_PLUG 4 // charger plug | |
| 59 #define PWR_CHARGER_UNPLUG 5 // charger unplug | |
| 60 | 38 |
| 61 /* | 39 /* |
| 62 * Status Type | 40 * Status Type |
| 63 */ | 41 */ |
| 64 typedef struct pwr_Status_Type | 42 typedef struct pwr_Status_Type |
| 76 UBYTE RangeMin; | 54 UBYTE RangeMin; |
| 77 UBYTE RangeMax; | 55 UBYTE RangeMax; |
| 78 UBYTE Steps; | 56 UBYTE Steps; |
| 79 } pwr_DCB_Type; | 57 } pwr_DCB_Type; |
| 80 | 58 |
| 81 /*OMAPS00091029 x0039928(sumanth)*/ | |
| 82 #ifndef _SIMULATION_ | |
| 83 typedef enum BootTimeEvent | |
| 84 { | |
| 85 EPreBoot=0, | |
| 86 EAppInit, | |
| 87 EModemBoot, | |
| 88 ENetworkSync | |
| 89 } BootTimeEvent; | |
| 90 #endif | |
| 91 | |
| 92 #if defined (NEW_FRAME) | 59 #if defined (NEW_FRAME) |
| 93 /* | 60 /* |
| 94 * to achieve backward compatibility with older definitions | 61 * to achieve backward compatibility with older definitions |
| 95 */ | 62 */ |
| 96 #define drv_SignalCB_Type T_DRV_CB_FUNC | 63 #define drv_SignalCB_Type T_DRV_CB_FUNC |
| 107 EXTERN UBYTE pwr_SetConfig (pwr_DCB_Type * in_DCBPtr); | 74 EXTERN UBYTE pwr_SetConfig (pwr_DCB_Type * in_DCBPtr); |
| 108 EXTERN UBYTE pwr_GetConfig (pwr_DCB_Type * out_DCBPtr); | 75 EXTERN UBYTE pwr_GetConfig (pwr_DCB_Type * out_DCBPtr); |
| 109 EXTERN UBYTE pwr_GetStatus (pwr_Status_Type * out_StatusPtr); | 76 EXTERN UBYTE pwr_GetStatus (pwr_Status_Type * out_StatusPtr); |
| 110 | 77 |
| 111 EXTERN UBYTE pwr_PowerOffMobile (void); | 78 EXTERN UBYTE pwr_PowerOffMobile (void); |
| 112 #ifndef _SIMULATION_ | 79 |
| 113 EXTERN void Bsp_get_boot_time(unsigned int * boot_time); /*OMAPS00091029 x0039928(sumanth)*/ | |
| 114 void boot_time_snapshot(BootTimeEvent event); | |
| 115 #endif | 80 #endif |
| 116 #endif |
