FreeCalypso > hg > fc-magnetite
view src/aci2/bmi/mmiChineseInput.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_CHINESE_H_ #define _DEF_MMI_CHINESE_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: MMChineseInput $File: MMChineseInput.h $Revision: 1.0 $Author: Condat(UK) $Date: 25/10/00 ******************************************************************************** Description: ******************************************************************************** $History: MMChineseInput.h 25/10/00 Original Condat(UK) BMI version. 03/10/02 Replaced most of the file with version on 3.3.3 line (MC, SPR 1242) $End *******************************************************************************/ #include "zi8api.h" /* SPR#1428 - SH - New Editor changes */ #ifdef NEW_EDITOR #include "ATBCommon.h" #include "ATBDisplay.h" #include "ATBEditor.h" #include "AUIEditor.h" #else #include "MmiEditor.h" #endif #ifndef LSCREEN #define CANDIDATES_PER_GROUP 7 #else #define CANDIDATES_PER_GROUP 14 #endif //#define TEXT_BUFFER_EDIT_SIZE 80 // size of 80 is defined for chinese SMS #define TEXT_BUFFER_EXTRA_SPACE 20 //This is the zise allowed for element buffer. //define for InputScreenType #define TEXT_DISPLAY_SCREEN 1 #define STROKE_INPUT_SCREEN 2 #define PINYIN_INPUT_SCREEN 3 #define WORD_ASSOCIATION_SCREEN 4 #define SYMBOL_INPUT_SCREEN 5 //define for EditorMode #define STROKE_INPUT_MODE 10 #define PINYIN_INPUT_MODE 11 #define LATIN_INPUT_MODE 12 typedef enum { CHINESE_INPUT_INIT, CHINESE_INPUT_DESTROY, /*just destroy chinese editor window*/ CHINESE_INPUT_DEINIT, /*SPR 1752, destroy chinese editor window and call callback function*/ ADD_SYMBOL, LATIN_INPUT } chinese_editor_events; typedef struct { char * TextString; #ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ T_AUI_EDIT_CB Callback; #else /* NEW_EDITOR */ T_EDIT_CB Callback; #endif /* NEW_EDITOR */ USHORT Identifier; int LeftSoftKey; UBYTE DestroyEditor; USHORT EditorSize; } T_CHINESE_DATA; //typedef void (*T_CHINESE_EDIT_CB) (T_MFW_HND, USHORT, USHORT); T_MFW_HND chinese_input (T_MFW_HND parent_win, T_CHINESE_DATA * chinese_data); void chinese_input_destroy (T_MFW_HND own_window); int chinese_input_menu(MfwMnu* m, MfwMnuItem* i); #endif