FreeCalypso > hg > tcs211-l1-reconst
diff chipsetsw/layer1/cfile/l1_ctl.c @ 81:6124f48fc1fa
l1_ctl.c: fixes from the freecalypso-sw/gsm-fw version
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Tue, 29 Mar 2016 16:06:07 +0000 |
parents | 6c740cf30da3 |
children | ef6cf21cf9d6 |
line wrap: on
line diff
--- a/chipsetsw/layer1/cfile/l1_ctl.c Tue Mar 29 16:04:33 2016 +0000 +++ b/chipsetsw/layer1/cfile/l1_ctl.c Tue Mar 29 16:06:07 2016 +0000 @@ -117,17 +117,15 @@ #include "l1tm_msgty.h" #include "l1tm_varex.h" #endif -#if (OP_L1_STANDALONE == 1) #ifdef _INLINE #define INLINE static inline // Inline functions when -v option is set #else // when the compiler is ivoked. #define INLINE #endif - #endif //omaps00090550 #endif #if(RF_FAM == 61) - #include "l1_rf61.h" + #include "l1_rf61.h" #endif #if (TRACE_TYPE == 1) || (TRACE_TYPE == 4) @@ -135,8 +133,9 @@ #endif extern SYS_UWORD16 Convert_l1_radio_freq(SYS_UWORD16 radio_freq); +#if(RF_FAM == 61) extern WORD16 drp_gain_correction(UWORD16 arfcn, UWORD8 lna_off, UWORD16 agc); - +#endif #define LNA_OFF 1 #define LNA_ON 0 @@ -1935,9 +1934,9 @@ UWORD16 arfcn; UWORD16 dco_algo_ctl_pw_temp = 0; UWORD8 if_ctl = 0; - #if (CODE_VERSION != SIMULATION) + #if (RF_RAM == 61) && (CODE_VERSION != SIMULATION) UWORD8 if_threshold = C_IF_ZERO_LOW_THRESHOLD_GSM; -#endif + #endif #if (L1_FF_MULTIBAND == 0) @@ -2119,9 +2118,9 @@ UWORD16 arfcn; UWORD16 dco_algo_ctl_pw_temp = 0; UWORD8 if_ctl = 0; - #if (CODE_VERSION != SIMULATION) + #if (RF_RAM == 61) && (CODE_VERSION != SIMULATION) UWORD8 if_threshold = C_IF_ZERO_LOW_THRESHOLD_GSM; -#endif + #endif #if (L1_FF_MULTIBAND == 0) @@ -2220,9 +2219,9 @@ UWORD16 arfcn; UWORD16 dco_algo_ctl_pw_temp = 0; UWORD8 if_ctl = 0; - #if (CODE_VERSION != SIMULATION) + #if (RF_RAM == 61) && (CODE_VERSION != SIMULATION) UWORD8 if_threshold = C_IF_ZERO_LOW_THRESHOLD_GSM; -#endif + #endif #if (L1_FF_MULTIBAND == 0) @@ -2399,9 +2398,9 @@ UWORD8 lna_off; UWORD16 dco_algo_ctl_pw_temp = 0; UWORD8 if_ctl = 0; - #if (CODE_VERSION != SIMULATION) + #if (RF_RAM == 61) && (CODE_VERSION != SIMULATION) UWORD8 if_threshold = C_IF_ZERO_LOW_THRESHOLD_GSM; -#endif + #endif delta1_freq = l1ctl_encode_delta1(radio_freq); delta2_freq = l1ctl_encode_delta2(radio_freq); @@ -2509,9 +2508,9 @@ UWORD8 lna_off; UWORD16 dco_algo_ctl_pw_temp = 0; UWORD8 if_ctl = 0; - #if (CODE_VERSION != SIMULATION) + #if (RF_RAM == 61) && (CODE_VERSION != SIMULATION) UWORD8 if_threshold = C_IF_ZERO_LOW_THRESHOLD_GSM; -#endif + #endif delta1_freq = l1ctl_encode_delta1(radio_freq); delta2_freq = l1ctl_encode_delta2(radio_freq); @@ -2691,18 +2690,18 @@ UWORD8 max_G_all, max_G_DTX, max_il; WORD32 last_known_agc, new_IL, current_calibrated_IL; WORD8 delta1_freq, delta2_freq; - WORD16 delta_drp_gain=0; + WORD16 delta_drp_gain=0; UWORD8 i; UWORD8 *tab_ptr, *tab_amr_ptr; T_DEDIC_SET *aset; WORD32 lna_value; UWORD16 arfcn; - UWORD8 lna_off; + UWORD8 lna_off; UWORD16 dco_algo_ctl_pw_temp = 0; UWORD8 if_ctl = 0; - #if (CODE_VERSION != SIMULATION) + #if (RF_RAM == 61) && (CODE_VERSION != SIMULATION) UWORD8 if_threshold = C_IF_ZERO_LOW_THRESHOLD_GSM; -#endif + #endif delta1_freq = l1ctl_encode_delta1(radio_freq); delta2_freq = l1ctl_encode_delta2(radio_freq); @@ -3173,6 +3172,3 @@ } } #endif /* #if (FF_L1_FAST_DECODING == 1) */ - - -