FreeCalypso > hg > fc-magnetite
view src/aci2/bmi/mmiMain.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 | 3c2acfa1a72f |
children |
line wrap: on
line source
#ifndef _DEF_MMI_MAIN_H_ #define _DEF_MMI_MAIN_H_ /******************************************************************************* 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: MMI $File: MmiMain.h $Revision: 1.0 $Author: Condat(UK) $Date: 25/10/00 ******************************************************************************** Description: This provides the root mofule for the basic MMI ******************************************************************************** $History: MmiMmi.h 25/10/00 Original Condat(UK) BMI version. $End *******************************************************************************/ /******************************************************************************* Type definitions *******************************************************************************/ #include "mfw_cphs.h" #include "MmiResources.h" #define PROMPT(x, y, a, id) dspl_TextOut(x, y, a|DSPL_TXTATTR_CURRENT_MODE, (char*)MmiRsrcGetText(id)) #define ALIGNED_PROMPT(x_a, y, a, id) displayAlignedPrompt(x_a, y, a, id) #define GET_TEXT(id) MmiRsrcGetText( id ) #define ETRACE(str) \ { char buf[64];##str##;\ TRACE_EVENT(buf);} #define FTRACE(str) \ { char buf[64];##str##;\ TRACE_EVENT(buf);} /* typedefs */ typedef enum { NM_UNDEFINED, NM_FULL_SERVICE, NM_LIMITED_SERVICE, NM_NO_SERVICE, NM_SEARCHING, NM_NO_NETWORK } MMI_NM_SERVICE; typedef enum { LEFT, RIGHT, CENTER } T_MMI_ALIGN; typedef enum { SIM_UNDEFINED, SIM_AVAIL, SIM_REJECTED, SIM_NOT_AVAIL } MMI_SIM_STATUS; typedef enum { TWELVE_HOUR, TWENTYFOUR_HOUR } ClockFormats; /*MC SPR 1725 removed date and clock definition*/ #define MAX_LINE 14 #define POS_BEGIN 0 #define POS_END 1 #define MAX_LINE 14 #define EDITOR_SIZE 41 /* GLOBAL DATA */ extern UBYTE editControls [KCD_MAX]; extern LngInfo mainLngInfo; /* language control block */ extern MfwHnd mainMmiLng; /* global language handler */ /* PROTOTYPES */ void mainInit (UBYTE InitCause); void mainExit (UBYTE InitCause); void setClockFormat(UBYTE format); // Issue Number : MMI-SPR-12159 on 07/04/04 by Rashmi C N and Deepa M D // change by Sasken ( Rashmi C N and Deepa M D) on April 07th 2004 // Bug : The AM PM for 12 hour fomrat was not being shown // Solution : Added the following function to get the current time format from flash UBYTE getClockFormat(void); // RAVI /*SPR 1725, removed getClockString(), Clockset() and DateSet() function headers*/ void showCLOCK(void); void showDATE(void); /*SPR 1442 obsolete function*/ //void truncateString(char* strDest,char* strOrig,unsigned int truncLength,int pos,char* trunChar); void displayAlignedText( T_MMI_ALIGN x_alignment, USHORT y_lineNum, UBYTE attrib, char* string ); void displayAlignedPrompt( T_MMI_ALIGN x_alignment, USHORT y_lineNum, UBYTE attrib, int string_id); void mainShutdown(void); extern char stringTrace[50]; /* Battery and Signal Status */ #define GlobalNothingIconFlag 0x00 #define GlobalBatteryIconFlag 0x01 #define GlobalSignalIconFlag 0x02 #define GlobalSMSIconFlag 0x04 #define GlobalVoiceMailIconFlag 0x08 #define GlobalCallForwardingIconFlag 0x10 #define GlobalSilentRingerIconFlag 0x20 #define GlobalKeyplockIconFlag 0x40 #define GlobalRingerIconFlag 0x80 #define GlobalVibratorIconFlag 0x100 #define GlobalRingVibrIconFlag 0x200 #define GlobalAlarmIconFlag 0x400 #define GlobalCipheringActivIconFlag 0x800 #define GlobalCipheringDeactivIconFlag 0x1000 /* SH 18/01/02. Indication for GPRS */ #ifdef MMI_GPRS_ENABLED #define GlobalGPRSOnIconFlag 0x2000 #endif /* SPR877 - SH - Indication for Homezone */ #ifdef MMI_HOMEZONE_ENABLED #define GlobalHomezoneIconFlag 0x4000 #endif #ifdef MMI_TTY_ENABLED #ifndef GlobalHomezoneIconFlag #define GlobalHomezoneIconFlag 0x4000 #endif #endif /* SPR#1352 - SH - TTY indication */ #define GlobalTTYIconFlag 0x8000 /* end SH */ extern U16 GlobalIconStatus; extern T_MFW_CFLAG_STATUS DivertStatus; /* It could be helpful to check the */ /* global status where the user is : */ /* It is also possible to be in several */ /* status ! */ #define ModuleIdle 0x001 /*in Idle Screen */ #define ModuleCall 0x002 /*in during a call */ #define ModuleInCall 0x004 /*in Incoming call */ #define ModuleMenu 0x008 /*in Menu */ #define ModulePhon 0x010 /*in Phonebook */ #define ModuleSms 0x020 /*in SMS */ #define ModuleBattLow 0x040 /*in Battery Status < 5% */ #define ModuleSAT 0x080 /*in Sim Toolkit, like Idle*/ #define ModuleAlarm 0x100 /*in Organiser Alarm */ #define ModuleFax 0x200 /*in Fax/Data */ #define ModuleDialling 0x400 /*in Dialling state */ extern int MmiModule; /* PROTOTYPES */ void MmiModuleSet (int modul); /* Set the status where the user is */ void MmiModuleDel (int modul); /* Delete the status where the user was */ /* Settings status*/ #define SettingsAnyKeyAnswerOn 0x01 #define SettingsAutoAnswerOn 0x02 #define SettingsKeyPadLockOn 0x04 #define SettingsKeypadClick 0x08 #define SettingsKeypadDTMF 0x10 #define SettingsSilentMode 0x20 #define SettingsCBDisable 0x80 /* SPR 2470 0x80- disable CB display 0-display CB */ //extern USHORT settingsStatus; #define GlobalBatteryLesser5 1 #define GlobalBatteryGreater5 2 #define GlobalBatteryFull 3 extern UBYTE globalBatteryMode; /* */ extern UBYTE globalBatteryPicNumber; extern UBYTE globalSignalPicNumber; #define GlobalTimeout1sec 0x03e8 /* 1 second for flash the battery icon */ #define GlobalTimeout2min 0x01d4c0 /* 2 min for battery beep */ #define GlobalTimeout15min 0x0dbba0 /* 15 min for battery beep */ void editActivate (MfwHnd e,int AlphaMode); void editHiddenActivate (char *buffer); void editDeactivate (void); int editEventKey (MfwEvt e, MfwKbd *k); MfwHnd activeEditor(void); // sbh - functions for format mode (WAP) void setFormatPointers (char *format, int *index, int *index2); void editCharFindNext(char character); int editFindPrev(void); // RAVI /*NM p032 this flag indicate when the TEST SIM is inserted*/ extern UBYTE test_sim; #endif