FreeCalypso > hg > fc-magnetite
view src/aci2/bmi/mmiDummy.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_DUMMY_H_ #define _DEF_MMI_DUMMY_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: $File: MmiDummy.h $Revision: 1.0 $Author: Condat(UK) $Date: 25/10/00 ******************************************************************************* $History: MmiServices.c xreddymn Jun-29-2005 MMI-ENH-32467: Handling of animated GIF images. Added E_WIN_SUSPEND to provide MfwWinSuspend event to WAP window May 02, 2005 REF : LOCOSTO-ENH-30818 - xpradipg Description: IMEI retreival by posting a call to ACI sAT_xx API Solution: The direct call to cl_get_imeisv() is replaced with the call to the callNUmber() which inturn calls sAT_Dn() and retrieves the IMEI info *******************************************************************************/ /**************************************************************************************** * * Common Definitions for template and MFW compatibility * **************************************************************************************** */ /* * compatibility definitions * MFW - GUI uses definitions which are not compatible with the * interface !!! */ #define mfw_parent mfwParent #define mfw_header mfwHeader #define win_create winCreate #define win_delete winDelete #define win_show winShow #define win_hide winHide #define win_unhide winUnhide #define E_WIN_VISIBLE MfwWinVisible // xreddymn Jun-28-2005 MMI-SPR-32467 #define E_WIN_SUSPEND MfwWinSuspend #define kbd_create kbdCreate #define kbd_delete kbdDelete /* SPR#1428 - SH - New Editor: no longer required */ #ifndef NEW_EDITOR #define edt_create edtCreate #define edt_delete edtDelete #define edt_reset edtReset #endif #define tim_delete timDelete #define tim_create timCreate #define tim_start timStart #define tim_stop timStop #define tim_set_time timSetTime #define sat_create satCreate #define sat_init satInit #define sat_delete satDelete #define sat_exit satExit #define sat_done( a, b ) satDone( a, (U8 *) b, (int) sizeof( b ) ) typedef MfwSat T_MFW_SAT; typedef MfwTim T_MFW_TIM; typedef MfwWin T_MFW_WIN; typedef SatCmd T_SAT_CMD; typedef SatTxt T_SAT_TXT; typedef SatInput T_SAT_INPUT; typedef MfwMnuItem T_MFW_MNU_ITEM; typedef MfwMnuAttr T_MFW_MNU_ATTR; typedef MfwMnu T_MFW_MNU; typedef MfwKbd T_MFW_KBD; #ifndef NEW_EDITOR /* SPR#1428 - SH - New Editor: no longer required */ typedef MfwEdtAttr T_MFW_EDT_ATTR; #endif #define MFW_SAT_REFRESH MfwSatRefresh #define MFW_SAT_TEXT_OUT MfwSatTextOut #define MFW_SAT_GET_KEY MfwSatGetKey #define MFW_SAT_GET_STRING MfwSatGetString #define MFW_SAT_PLAY_TONE MfwSatPlayTone #define MFW_SAT_SETUP_MENU MfwSatSetupMenu #define MFW_SAT_SELECT_ITEM MfwSatSelectItem #define MFW_SAT_SEND_SMS MfwSatSendSMS #define MFW_SAT_SEND_SS MfwSatSendSS #define MFW_SAT_CALL MfwSatCall #define MFW_SAT_SESSION_END MfwSatSessionEnd #define SAT_RES_SUCCESS SatResSuccess #define SAT_RES_PARTIAL SatResPartial #define SAT_RES_MISSING SatResMissing #define SAT_RES_ADDITIONAL SatResAdditional #define SAT_RES_MODIFIED SatResModified #define SAT_RES_USER_ABORT SatResUserAbort #define SAT_RES_USER_BACK SatResUserBack #define SAT_RES_USER_NO_RESP SatResUserNoResp #define SAT_RES_USER_HELP SatResUserHelp #define SAT_RES_BUSY_ME SatResBusyME #define SAT_RES_BUSY_NET SatResBusyNet #define SAT_RES_REJECT SatResReject #define SAT_RES_CLEARED SatResCleared #define SAT_RES_CC_TEMP SatResCCTemp #define SAT_RES_IMPOSSIBLE SatResImpossible #define SAT_RES_UNKNOWN_TYPE SatResUnknownType #define SAT_RES_UNKNOWN_DATA SatResUnknownData #define SAT_RES_UNKNOWN_NUMBER SatResUnknownNumber #define SAT_RES_SS_ERROR SatResSSerror #define SAT_RES_SMS_ERROR SatResSMSerror #define SAT_RES_NO_VALUES SatResNoValues #define SAT_RES_USSD_ERROR SatResUSSDerror #define SAT_RES_CC_PERMANENT SatResCCPermanent /* * end of compatibility definitions */ // May 02, 2005 REF : LOCOSTO-ENH-30818 - xpradipg #ifdef FF_MMI_ATC_MIGRATION EXTERN char imei[]; #endif char* get_build_user(void); // RAVI char* get_build_date(void); // RAVI char* get_build_time(void); // RAVI // May 02, 2005 REF : LOCOSTO-ENH-30818 - xpradipg #ifdef FF_MMI_ATC_MIGRATION void mmi_imei_retrieve(); #else int get_imei(char *imei); #endif extern T_MFW_HND idle_get_window (void); #endif