FreeCalypso > hg > fc-magnetite
view cdg-hybrid/cdginc/m_rr_short_pd.val @ 629:3231dd9b38c1
armio.c: make GPIOs 8 & 13 outputs driving 1 on all "classic" targets
Calypso GPIOs 8 & 13 are pinmuxed with MCUEN1 & MCUEN2, respectively,
and on powerup these pins are MCUEN, i.e., outputs driving 1. TI's code
for C-Sample and earlier turns them into GPIOs configured as outputs also
driving 1 - so far, so good - but TI's code for BOARD 41 (which covers
D-Sample, Leonardo and all real world Calypso devices derived from the
latter) switches them from MCUEN to GPIOs, but then leaves them as inputs.
Given that the hardware powerup state of these two pins is outputs driving 1,
every Calypso board design MUST be compatible with such driving; typically
these GPIO signals will be either unused and unconnected or connected as
outputs driving some peripheral. Turning these pins into GPIO inputs will
result in floating inputs on every reasonably-wired board, thus I am
convinced that this configuration is nothing but a bug on the part of
whoever wrote this code at TI.
This floating input bug had already been fixed earlier for GTA modem and
FCDEV3B targets; the present change makes the fix unconditional for all
"classic" targets. The newly affected targets are D-Sample, Leonardo,
Tango and GTM900.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 02 Jan 2020 05:38:26 +0000 |
parents | e7a67accfad9 |
children |
line wrap: on
line source
/* +--------------------------------------------------------------------------+ | PROJECT : PROTOCOL STACK | | FILE : m_rr_short_pd.val | | SOURCE : "msg\rr_short_pd.mdf" | | LastModified : "2003-11-06" | | IdAndVersion : "8010.602.03.001" | | SrcFileTime : "Wed Nov 28 10:21:00 2007" | | Generated by CCDGEN_2.5.5A on Fri Oct 14 21:41:52 2016 | | !!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 * CCDNAME: RR_SHORT */ #ifndef M_RR_SHORT_PD_VAL #define M_RR_SHORT_PD_VAL #define CDG_ENTER__M_RR_SHORT_PD_VAL #define CDG_ENTER__FILENAME _M_RR_SHORT_PD_VAL #define CDG_ENTER__M_RR_SHORT_PD_VAL__FILE_TYPE CDGINC #define CDG_ENTER__M_RR_SHORT_PD_VAL__LAST_MODIFIED _2003_11_06 #define CDG_ENTER__M_RR_SHORT_PD_VAL__ID_AND_VERSION _8010_602_03_001 #define CDG_ENTER__M_RR_SHORT_PD_VAL__SRC_FILE_TIME _Wed_Nov_28_10_21_00_2007 #include "CDG_ENTER.h" #undef CDG_ENTER__M_RR_SHORT_PD_VAL #undef CDG_ENTER__FILENAME #include "m_rr_com.val" /* Access values independent from the corresponding h-file. */ /* * Value constants for VAL_bsic_seen */ #define NO_INV_BSIC_SEEN (0x0) /* No cell with invalid BSIC and allowed NCC part of BSIC is seen. */ #define INV_BSIC_SEEN (0x1) /* One cell or more with invalid BSIC and allowed NCC part of BSIC is seen. */ /* * Value constants for VAL_cv_bep */ #define CV_BEP_0 (0x0) /* 2.00 > std(BEP)/mean(BEP) > 1.75 */ #define CV_BEP_1 (0x1) /* 1.75 > std(BEP)/mean(BEP) > 1.50 */ #define CV_BEP_2 (0x2) /* 1.50 > std(BEP)/mean(BEP) > 1.25 */ #define CV_BEP_3 (0x3) /* 1.25 > std(BEP)/mean(BEP) > 1.00 */ #define CV_BEP_4 (0x4) /* 1.00 > std(BEP)/mean(BEP) > 0.75 */ #define CV_BEP_5 (0x5) /* 0.75 > std(BEP)/mean(BEP) > 0.50 */ #define CV_BEP_6 (0x6) /* 0.50 > std(BEP)/mean(BEP) > 0.25 */ #define CV_BEP_7 (0x7) /* 0.25 > std(BEP)/mean(BEP) > 0.00 */ /* * Value constants for VAL_dtx_used */ #define DTX_USED_NO (0x0) /* DTX was not used */ #define DTX_USED_YES (0x1) /* DTX was used */ /* * Value constants for VAL_inv_bsic_rep */ #define NO_REPORT (0x0) /* Indicates that GSM cells with invalid BSIC and allowed NCC part should not be reported */ #define YES_REPORT (0x1) /* Indicates that GSM cells with invalid BSIC and allowed NCC part should be reported */ /* * Value constants for VAL_pow_ctrl */ #define POW_CTRL_NO (0x0) /* PWRC is not set */ #define POW_CTRL_YES (0x1) /* PWRC is set */ /* * Value constants for VAL_rep_rate */ #define NORMAL_RATE (0x0) /* SACCH rate reporting. */ #define REDUCED_RATE (0x1) /* Reduced reporting rate allowed. */ /* * Value constants for VAL_report_type */ #define RT_EMR (0x0) /* MS shall use the Enhanced Measurement Report message, if at least one BSIC is allocated to each BA frequency, otherwise the Measurement Report message. */ #define RT_MR (0x1) /* The MS shall use the Measurement Report message for reporting. */ /* * Value constants for VAL_scale */ #define SCALE_ZERO_DB (0x0) /* 0 dB offset is used for the reported RXLEV values */ #define SCALE_TEN_DB (0x1) /* +10 dB offset is used for the reported RXLEV values */ /* * Value constants for VAL_scale_ord */ #define SC_ORD_ZERO_DB (0x0) /* 0 dB offset, which shall be used for the reported RXLEV values */ #define SC_ORD_TEN_DB (0x1) /* +10 dB offset, which shall be used for the reported RXLEV values */ #define SC_ORD_AUTOMATIC (0x2) /* automatic offset, which shall be used for the reported RXLEV values */ /* * Value constants for VAL_sl2h */ #define VAL_SL2H___DEF (0x0) /* reserved */ #define SL2H_0 (0x0) /* Short Layer 2 header: UI command frame */ /* * user defined constants */ #define L3MAX_ACK (0xfb) #define L3MAX (0xfb) #define MAX_NNC (0x60) #define MAX_BSICI (0x8) #define MAX_2GEXT (0x84) #include "CDG_LEAVE.h" #endif