FreeCalypso > hg > fc-magnetite
view cdg3/cdginc-locosto/p_fad.val @ 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 | c15047b3d00d |
children |
line wrap: on
line source
/* +--------------------------------------------------------------------------+ | PROJECT : PROTOCOL STACK | | FILE : p_fad.val | | SOURCE : "sap\fad.pdf" | | LastModified : "2002-04-22" | | IdAndVersion : "8411.103.00.305" | | SrcFileTime : "Thu Nov 29 09:41:22 2007" | | Generated by CCDGEN_2.5.5A on Thu Sep 25 09:18:53 2014 | | !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!! | +--------------------------------------------------------------------------+ */ /* PRAGMAS * PREFIX : NONE * COMPATIBILITY_DEFINES : NO (require PREFIX) * ALWAYS_ENUM_IN_VAL_FILE: NO * ENABLE_GROUP: NO * CAPITALIZE_TYPENAME: NO */ #ifndef P_FAD_VAL #define P_FAD_VAL #define CDG_ENTER__P_FAD_VAL #define CDG_ENTER__FILENAME _P_FAD_VAL #define CDG_ENTER__P_FAD_VAL__FILE_TYPE CDGINC #define CDG_ENTER__P_FAD_VAL__LAST_MODIFIED _2002_04_22 #define CDG_ENTER__P_FAD_VAL__ID_AND_VERSION _8411_103_00_305 #define CDG_ENTER__P_FAD_VAL__SRC_FILE_TIME _Thu_Nov_29_09_41_22_2007 #include "CDG_ENTER.h" #undef CDG_ENTER__P_FAD_VAL #undef CDG_ENTER__FILENAME /* * Value constants for VAL_trans_rate */ #define R_BCS (0x12c) /* rate 300 bit/s */ #define R_2400 (0x960) /* rate 2400 bit/s */ #define R_4800 (0x12c0) /* rate 4800 bit/s */ #define R_7200 (0x1c20) /* rate 7200 bit/s */ #define R_9600 (0x2580) /* rate 9600 bit/s */ #define R_12000 (0x2ee0) /* rate 12000 bit/s */ #define R_14400 (0x3840) /* rate 14400 bit/s */ /* * Value constants for VAL_mode */ #define MUX_OFF (0x0) /* ignore */ #define MUX_BCS (0x1) /* BCS data */ #define MUX_MSG (0x2) /* MSG data */ /* * Value constants for VAL_cause */ #define ERR_REM_FAD (0xcc00) /* reserved */ #define ERR_REM_PREAMBLE (0xcc11) /* DATA received instead of PREAMBLE - Preamble too short */ #define ERR_REM_DATA_BCS (0xcc12) /* DATA received from remote modem during BCS phase */ #define ERR_REM_TRAIN_START (0xcc13) /* DATA received from remote modem at start of training */ #define ERR_REM_NO_TRAINING (0xcc14) /* DATA received from remote modem prior to training */ #define ERR_REM_TRAINING (0xcc15) /* DATA received from remote modem during training */ #define ERR_REM_MSG (0xcc16) /* DATA received from remote modem while sending MSG data */ #define ERR_REM_PREAMBLE_SHORT (0xcc17) /* PREAMBLE received from remote station too short */ #define ERR_REM_PREAMBLE_LONG (0xcc18) /* PREAMBLE received from remote station too long */ #define ERR_REM_IDENT (0xcc19) /* Incorrect identification from remote modem */ #define ERR_LOCAL_FAD (0xcc20) /* reserved */ #define ERR_LOCAL_BCS_RATE (0xcc21) /* BCS rate requested by local modem (MSG phase) */ #define ERR_LOCAL_MSG_RATE (0xcc22) /* MSG rate requested by local modem (BCS phase) */ #define ERR_LOCAL_DATA_NULL (0xcc23) /* DATA request received from T30 in NULL state */ #define ERR_LOCAL_DATA_BCS (0xcc24) /* DATA request received from T30 while receiving BCS data */ #define ERR_LOCAL_DATA_TCF_SND (0xcc25) /* DATA request received from T30 while sending TCF data */ #define ERR_LOCAL_DATA_TCF_RCV (0xcc26) /* DATA request received from T30 while receiving TCF data */ #define ERR_LOCAL_DATA_MSG (0xcc27) /* DATA request received from T30 while receiving MSG data */ #define ERR_LOCAL_DATA_UNDEF (0xcc28) /* DATA request received from T30 - state unknown */ #define ERR_LOCAL_DATA_MSG_UFL (0xcc29) /* DATA request not received from T30 - MSG-REC underflow */ #define ERR_LOCAL_IDENT (0xcc30) /* Incorrect identification from local modem */ #define ERR_OWN_FAD (0xcc40) /* reserved */ #define ERR_FAD_SUB_TRAIN (0xcc41) /* FAD in unknown substate during training */ #define ERR_FAD_SUB_TCF (0xcc42) /* FAD in unknown substate (TCF) */ #define ERR_FAD_SUB_MSG (0xcc43) /* FAD in unknown substate (MSG) */ #define ERR_GENERAL_FAD (0xcc50) /* reserved */ #define ERR_INVALID_DATA_RCV (0xcc51) /* invalid data received */ #define ERR_EMPTY_BUFFER (0xcc52) /* send/receive buffer is empty */ #define ERR_OVERFLOW_BCS_RCV (0xcc52) /* buffer overflow while receiving BCS data */ #define ERR_NOT_SET (0xccff) /* error not set */ /* * user defined constants */ #define DUMMY_FAD (0x0) #include "CDG_LEAVE.h" #endif