FreeCalypso > hg > fc-magnetite
view src/aci2/bmi/mmiIdle.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
/******************************************************************************* 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: Call $File: MmiIdle.h $Revision: 1.0 $Author: Condat(UK) $Date: 25/10/00 ******************************************************************************** Description: ******************************************************************************** $History: MmiIdle.h Mar 14, 2006 DR: OMAPS00061468 - x0035544. Description: SAT 27.22.4.22.2 SET UP IDLE MODE TEXT (Icon support) fails Solution : Added additional parameter to the prototype of addSatMessage() to hold the display type for SAT idle text with icon support. Sept 15, 2005 REF: CRR 32410 x0021334 Description: The keypad unlocks even though the unlocking sequence is not executed in quick succession. Fix: A new timer expiry event is added and handled. xrashmic 26 Aug, 2004 MMI-SPR-23931 25/10/00 Original Condat(UK) BMI version. $End *******************************************************************************/ /* SPR#1428 - SH - New Editor changes */ #ifdef NEW_EDITOR #include "ATBCommon.h" #include "ATBDisplay.h" #include "ATBEditor.h" #else #include "mfw_edt.h" #endif #include "Mmiicons.h" //for T_BITMAP #ifndef _DEF_MMI_IDLE_H_ #define _DEF_MMI_IDLE_H_ #define EDITOR_SIZE 41 /* SPR761 - SH - Moved from MmiIdle.c, changed to 41 */ typedef enum { /* REASONS */ IdleNone = IdleDummy, /* no reason */ IdleNormal, /* normal idle mode */ IdleUpdate, IdleSearchNetwork, IdleNewSmsMessage, IdleActiveKeyPadLocked, IdleNewCBImmediateMessage, IdleNewCBNormalMessage }; // Sept 15, 2005 REF: CRR 32410 x0021334 // Description: The keypad unlocks even though the unlocking sequence is not executed in quick succession. // Added a new enum member IDLE_KEYPAD_UNLOCK_TIMER_EXPIRED typedef enum { /* REASONS */ IDLE_NO_NETWORK, IDLE_UPDATE, IDLE_NEW_SMS, IDLE_ACTIVE_KEY_PAD_LOCKED, IDLE_DETAILS_NUMBER, IDLE_DIALLING_INIT, IDLE_INFO_ENDED, IDLE_KEYPAD_LOCKED_UPDATE, IDLE_START_DIALLING_NUMBER, IDLE_KEYPAD_UNLOCK_TIMER_EXPIRED }; typedef enum { SHOWVERSION_INIT } Version_events; #define SHOW_CPRS_DEACTIV 0 #define SHOW_CPRS_ACITV 1 #define DONT_SHOW_CPRS 2 //not allowed to show any indication /* * The information related to every window must be encapsulated in such an structure */ typedef struct { T_MMI_CONTROL mmi_control; // this a common parameter in every structure T_MFW_HND win; // windows handler, another common parameter T_MFW_HND kbd; // To control all of the events, 2 handler are needed kbd that handles the key press T_MFW_HND kbd_long; // event and kbd_long that handles the release and long key event. #ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ T_ED_DATA *editor; T_ED_DATA *editor_sat; #else /* NEW_EDITOR */ T_MFW_HND edt; T_MFW_HND edt_sat; /* SPR759 - SH*/ #endif /* NEW_EDITOR */ T_MFW_HND info_win; T_MFW_HND klck_win; // Keypad Locked Window Handler int missedCalls; int ems; //xrashmic 26 Aug, 2004 MMI-SPR-23931 UBYTE search; UBYTE flagIdle; USHORT nm_status; char edt_buf[EDITOR_SIZE]; /* SPR761 - SH - Changed from a number to a constant */ #ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ T_ED_ATTR editor_attr; /* Dialling editor */ T_ED_ATTR editor_attr2; /* CB editor */ T_ED_ATTR editor_attr3; /* CLASS 0 SMS editor */ T_ED_ATTR editor_attr_sat; /* SAT & Homezone editor */ #else /* NEW_EDITOR */ MfwEdtAttr edt_attr; //this one for the dialling editor MfwEdtAttr edt_attr2; //this is for the CB editor MfwEdtAttr edt_attr3; //this is for the (only CLASS 0) SMS editor MfwEdtAttr edt_attr_sat; /* SPR759 - SH*/ #endif /* NEW_EDITOR */ char imei[16]; UBYTE new_sms; UBYTE new_cbch; CHAR incoming_cb_msg[MAX_CBMSG_LEN]; /*NM, p019*/ CHAR incoming_sms_msg[MAX_MSG_LEN_SGL]; UBYTE right_key_pressed; UBYTE silent_mode; UBYTE clean_screen; UBYTE ciphering; UBYTE starting_up; /*SPR#1662 - NH - New field for checking the start up status */ CHAR incoming_sat_msg[MAX_CBMSG_LEN]; /* SPR759 - SH*/ T_BITMAP* idleNetLogo; //Background for idle screen - NULL if no background. T_BITMAP * idleBgd; //Background image on the idle Screen int defTextOffset; //start point for text (may vary with bitmap ?) } T_idle; extern UBYTE KeyPadLock; /* PROTOTYPES */ extern void wake_up_rr(void); void idleInit (MfwHnd parent); void idleExit (void); void idleExec (int reason, MmiState next); void idleEvent(int reason); void idleDialBuffer(char* dialBuffer); MfwHnd idle_get_window(void); int idleIsFocussed(void); void idle_set_starting_up(UBYTE set); void windowsUpdate(void); void addMissedCall(void); void addNewEMS(void);//xrashmic 26 Aug, 2004 MMI-SPR-23931 void addCBCH(char* cbch_string, UBYTE type); void statusCBCH(UBYTE status); // 09-Dec-2005, Shashi Shekar B.S., a0876501, START //x0035544 Mar 14, 2006 DR:OMAPS00061468 /* **Sending additional parameter display_type to hold the display type for SAT Idle text with icon display */ #ifdef FF_MMI_SAT_ICON void addSatMessage(char *satMessage, UBYTE width, UBYTE height, char *dst, UBYTE selfExplanatory, T_DISPLAY_TYPE display_type); #else void addSatMessage(char *satMessage); /* SPR759 - SH*/ #endif extern void showIMEI (T_MFW_HND win, char* IMEI); void idle_setBgdBitmap(int bmp); #endif