FreeCalypso > hg > fc-magnetite
view src/aci2/bmi/Icons/IcnDefs.h @ 635:baa0a02bc676
niq32.c DTR handling restored for targets that have it
TI's original TCS211 fw treated GPIO 3 as the DTR input (wired so on C-Sample
and D-Sample boards, also compatible with Leonardo and FCDEV3B which have a
fixed pull-down resistor on this GPIO line), and the code in niq32.c called
UAF_DTRInterruptHandler() (implemented in uartfax.c) from the
IQ_KeypadGPIOHandler() function. But on Openmoko's GTA02 with their official
fw this GPIO is a floating input, all of the DTR handling code in uartfax.c
including the interrupt logic is still there, but the hobbled TCS211-20070608
semi-src delivery which OM got from TI contained a change in niq32.c (which
had been kept in FC until now) that removed the call to
UAF_DTRInterruptHandler() as part of those not-quite-understood "CC test"
hacks.
The present change fixes this bug at a long last: if we are building fw for a
target that has TI's "classic" DTR & DCD GPIO arrangement (dsample, fcmodem and
gtm900), we bring back all of TI's original code in both uartfax.c and niq32.c,
whereas if we are building fw for a target that does not use this classic GPIO
arrangement, the code in niq32.c goes back to what we got from OM and all
DTR & DCD code in uartfax.c is conditioned out. This change also removes the
very last remaining bit of "CC test" bogosity from our FreeCalypso code base.
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sun, 19 Jan 2020 01:41:35 +0000 |
| parents | 93999a60b835 |
| children |
line wrap: on
line source
#ifndef _MMIICNDEFS_H_ #define _MMIICNDEFS_H_ 1 /******************************************************************************* CONDAT (UK) ******************************************************************************** This software product is the property of Condat (UK) Ltd and may not be disclosed to any third party without the express permission of the owner. ******************************************************************************** $Project name: Basic MMI $Project code: BMI (6349) $Module: Icons $File: IcnDefs.h $Revision: 1.0 $Author: Condat(UK) $Date: 01/11/02 ******************************************************************************** Description: This provides the references to the colour icon data arrays ******************************************************************************** $History: 01/11/02 Original Condat(UK) BMI version. $End *******************************************************************************/ enum { //Idle screen ICON_IDLE_Background, ICON_IDLE_Battery4, ICON_IDLE_Battery14, ICON_IDLE_Battery24, ICON_IDLE_Battery49, ICON_IDLE_Battery100, ICON_IDLE_forwarding, ICON_IDLE_keylock, ICON_IDLE_message, ICON_IDLE_signalStr49, ICON_IDLE_signalStr99, ICON_IDLE_signalStr149, ICON_IDLE_signalStr199, ICON_IDLE_signalStr255, ICON_IDLE_homeZone, ICON_IDLE_gprs, ICON_IDLE_voicemail, //'main' icons ICON_MAIN_Application, ICON_MAIN_Divert, ICON_MAIN_Messages, ICON_MAIN_Phonebook, ICON_MAIN_RecentCalls, ICON_MAIN_Security, ICON_MAIN_Settings, ICON_MAIN_SIM_Toolkit, ICON_MAIN_WAP, //popup ICON_POPUP_CLOUDS, //network ICON_Bouygues, ICON_Vodafone, ICON_SFR, ICON_VodafoneD2, ICON_Chinamobile, ICON_Fareast, ICON_orange, ICON_sonofon, ICON_Tmobile, //Background ICON_BgdSquares, ICON_END }; enum { ICON_TYPE_bw, ICON_TYPE_256Colour, //R=0xE0, G=0x1C, B=0x03 ICON_TYPE_24BitColour, //R=0xFF0000, G=0x00FF00, B=0x0000FF ICON_TYPE_32BitColour, //riviera format with alpha=0xFF000000, ICON_TYPE_256PaletteColour, //separate palette needed ICON_TYPE_LCD16bit //data matches D-sample LCD format 32 bits with 16bits used. }; int icnGPRS_dataformat( char* *bmp, int *sx, int *sy, int *format, char **palette); int icnBgdSquares_dataformat( char* *bmp, int *sx, int *sy, int *format, char **palette); int icnSignalStr_dataformat( int iconId, char* *bmp, int *sx, int *sy, int *format, char **palette); //#define USE_110X110 //Logo for powerup screen extern const unsigned char TIlogColour[]; //Main icons #ifndef USE_110X110 extern const unsigned char applications97x97_bmp[]; extern const unsigned char netWorkServices96x96_bmp[]; extern const unsigned char messages96x96_bmp[]; extern const unsigned char phonebook96x96_bmp[]; extern const unsigned char recentcalls96x96_bmp[]; extern const unsigned char security96x96_bmp[]; extern const unsigned char phoneSettings96x96_bmp[]; extern const unsigned char stkColour[]; extern const unsigned char wap96x96_bmp[]; #else extern const unsigned char applications110x110_bmp[]; extern const unsigned char recentcalls110x110_bmp[] ; extern const unsigned char messages110x110_bmp[] ; extern const unsigned char phonebook110x110_bmp[] ; extern const unsigned char security110x110_bmp[] ; extern const unsigned char wap110x110_bmp[] ; extern const unsigned char networkservices110x110_bmp[]; extern const unsigned char phonesettings110x110_bmp[] ; extern const unsigned char stkColour[]; #endif //Popup + background extern const unsigned char bmpDataBubbles[]; extern const unsigned char bmpDataCloud[]; extern const unsigned char bmpDataSquares[]; extern const unsigned char Edinburgh1_bgd_bmp[]; extern const unsigned char Edinburgh2_bgd_bmp[]; extern const unsigned char Edinburgh3_bgd_bmp[]; extern const unsigned char Edinburgh4_bgd_bmp[]; //Network bitmaps extern const unsigned char Bouygues_bmp[]; extern const unsigned char Vodafone_bmp[]; extern const unsigned char SFR_bmp[]; extern const unsigned char VodafoneD2_bmp[]; extern const unsigned char Chinamobile_bmp[]; extern const unsigned char Fareast_bmp[]; extern const unsigned char orange_bmp[]; extern const unsigned char SFR_bmp[]; extern const unsigned char sonofon_bmp[]; extern const unsigned char Tmobile_bmp[]; //Idle Icons extern const unsigned char I_forColour[] ; extern const unsigned char I_klkColour[] ; //Idle Bitmaps extern const unsigned char Ti_bgd_bmp[] ; extern const unsigned char I_batColour[] ; extern const unsigned char iconInCallBackDrop[]; //Animation Bitmaps extern const unsigned char callAnimation1[] ; extern const unsigned char callAnimation2[] ; extern const unsigned char callAnimation3[] ; #ifdef WIDEICONS #define I_batColour4 I_batColour #define I_batColour14 I_batColour #define I_batColour24 I_batColour #define I_batColour49 I_batColour #define I_batColour100 I_batColour #else extern const unsigned char I_batColour4[] ; extern const unsigned char I_batColour14[] ; extern const unsigned char I_batColour24[] ; extern const unsigned char I_batColour49[] ; extern const unsigned char I_batColour100[] ; #endif extern const unsigned char I_msgColour[] ; extern const unsigned char I_sigColour[] ; #ifdef WIDEICONS #define I_sigColour49 I_sigColour #define I_sigColour99 I_sigColour #define I_sigColour149 I_sigColour #define I_sigColour199 I_sigColour #define I_sigColour255 I_sigColour #else extern const unsigned char I_sigColour49[] ; extern const unsigned char I_sigColour99[] ; extern const unsigned char I_sigColour149[] ; extern const unsigned char I_sigColour199[] ; extern const unsigned char I_sigColour255[] ; #endif extern const unsigned char I_homeZoneColour[] ; extern const unsigned char I_gprsColour[] ; extern const unsigned char I_voicemailColour[]; extern const unsigned char I_cipheringDeactivColour[]; extern const unsigned char I_cipheringActivColour[]; #endif
