FreeCalypso > hg > fc-magnetite
view src/aci2/bmi/Icons/IcnDefs.h @ 600:8f50b202e81f
board preprocessor conditionals: prep for more FC hw in the future
This change eliminates the CONFIG_TARGET_FCDEV3B preprocessor symbol and
all preprocessor conditionals throughout the code base that tested for it,
replacing them with CONFIG_TARGET_FCFAM or CONFIG_TARGET_FCMODEM. These
new symbols are specified as follows:
CONFIG_TARGET_FCFAM is intended to cover all hardware designs created by
Mother Mychaela under the FreeCalypso trademark. This family will include
modem products (repackagings of the FCDEV3B, possibly with RFFE or even
RF transceiver changes), and also my desired FreeCalypso handset product.
CONFIG_TARGET_FCMODEM is intended to cover all FreeCalypso modem products
(which will be firmware-compatible with the FCDEV3B if they use TI Rita
transceiver, or will require a different fw build if we switch to one of
Silabs Aero transceivers), but not the handset product. Right now this
CONFIG_TARGET_FCMODEM preprocessor symbol is used to conditionalize
everything dealing with MCSI.
At the present moment the future of FC hardware evolution is still unknown:
it is not known whether we will ever have any beyond-FCDEV3B hardware at all
(contingent on uncertain funding), and if we do produce further FC hardware
designs, it is not known whether they will retain the same FIC modem core
(triband), if we are going to have a quadband design that still retains the
classic Rita transceiver, or if we are going to switch to Silabs Aero II
or some other transceiver. If we produce a quadband modem that still uses
Rita, it will run exactly the same fw as the FCDEV3B thanks to the way we
define TSPACT signals for the RF_FAM=12 && CONFIG_TARGET_FCFAM combination,
and the current fcdev3b build target will be renamed to fcmodem. OTOH, if
that putative quadband modem will be Aero-based, then it will require a
different fw build target, the fcdev3b target will stay as it is, and the
two targets will both define CONFIG_TARGET_FCFAM and CONFIG_TARGET_FCMODEM,
but will have different RF_FAM numbers. But no matter which way we are
going to evolve, it is not right to have conditionals on CONFIG_TARGET_FCDEV3B
in places like ACI, and the present change clears the way for future
evolution.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 01 Apr 2019 01:05:24 +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