# HG changeset patch # User Mychaela Falconia # Date 1506975425 0 # Node ID cd2507a8ec57281f17ea0e2dcd099c392b7ed419 # Parent 871cf425376813a50f780e1b944abc23a46489de l1p_ctl.c: passes compilation diff -r 871cf4253768 -r cd2507a8ec57 chipsetsw/layer1/p_cfile/l1p_ctl.c --- a/chipsetsw/layer1/p_cfile/l1p_ctl.c Mon Oct 02 20:08:51 2017 +0000 +++ b/chipsetsw/layer1/p_cfile/l1p_ctl.c Mon Oct 02 20:17:05 2017 +0000 @@ -233,7 +233,7 @@ // Process AGC to apply *agc = Cust_get_agc_from_IL(radio_freq, input_level >> 1, - curve_id, *lna_off); + curve_id); // Store lna_off and input_level field used for current CTRL in order to be able // to build IL from pm in READ phase. @@ -276,7 +276,7 @@ UWORD8 lna_off; UWORD16 dco_algo_ctl_pw_temp = 0; UWORD8 if_ctl = 0; - #if (CODE_VERSION != SIMULATION) +#if (RF_FAM == 61) && (CODE_VERSION != SIMULATION) UWORD8 if_threshold = C_IF_ZERO_LOW_THRESHOLD_GPRS; #endif @@ -293,7 +293,7 @@ delta2_freq = l1ctl_encode_delta2(radio_freq); // AGC used in the control phase (format F7.1) - used_agc = (Cust_get_agc_from_IL(radio_freq, l1a_l1s_com.Scell_used_IL_dd.input_level >> 1, MAX_ID, l1a_l1s_com.Scell_used_IL_dd.lna_off)) << 1; + used_agc = (Cust_get_agc_from_IL(radio_freq, l1a_l1s_com.Scell_used_IL_dd.input_level >> 1, MAX_ID)) << 1; // LNA attenuation lna_value = l1a_l1s_com.Scell_used_IL_dd.lna_off * l1ctl_get_lna_att(radio_freq); @@ -495,7 +495,7 @@ selected_IL = &l1a_l1s_com.Scell_info.transfer_meas; } *lna_off = selected_IL->lna_off; - *agc = Cust_get_agc_from_IL(radio_freq,selected_IL->input_level >> 1, MAX_ID, *lna_off); + *agc = Cust_get_agc_from_IL(radio_freq,selected_IL->input_level >> 1, MAX_ID); // Store lna_off and input_level field used for current CTRL in order to be able // to build IL from pm in READ phase. @@ -624,7 +624,7 @@ UWORD8 lna_off; UWORD16 dco_algo_ctl_pw_temp = 0; UWORD8 if_ctl = 0; - #if (CODE_VERSION != SIMULATION) +#if (RF_FAM == 61) && (CODE_VERSION != SIMULATION) UWORD8 if_threshold = C_IF_ZERO_LOW_THRESHOLD_GPRS; #endif @@ -647,7 +647,7 @@ delta2_freq = l1ctl_encode_delta2(radio_freq); // AGC used in the control phase (format F7.1) - used_agc = (Cust_get_agc_from_IL(radio_freq, l1a_l1s_com.Scell_used_IL_dd.input_level >> 1, MAX_ID, l1a_l1s_com.Scell_used_IL_dd.lna_off)) << 1; + used_agc = (Cust_get_agc_from_IL(radio_freq, l1a_l1s_com.Scell_used_IL_dd.input_level >> 1, MAX_ID)) << 1; // LNA attenuation lna_value = l1a_l1s_com.Scell_used_IL_dd.lna_off * l1ctl_get_lna_att(radio_freq); @@ -1004,7 +1004,7 @@ UWORD8 lna_off; UWORD16 dco_algo_ctl_pw_temp = 0; UWORD8 if_ctl = 0; - #if (CODE_VERSION != SIMULATION) +#if (RF_FAM == 61) && (CODE_VERSION != SIMULATION) UWORD8 if_threshold = C_IF_ZERO_LOW_THRESHOLD_GPRS; #endif @@ -1027,7 +1027,7 @@ delta2_freq = l1ctl_encode_delta2(radio_freq); // Last known AGC (format F7.1) - used_agc = (Cust_get_agc_from_IL(radio_freq, l1a_l1s_com.Scell_used_IL_dd.input_level >> 1, MAX_ID,l1a_l1s_com.Scell_used_IL_dd.lna_off)) << 1; + used_agc = (Cust_get_agc_from_IL(radio_freq, l1a_l1s_com.Scell_used_IL_dd.input_level >> 1, MAX_ID)) << 1; // LNA attenuation lna_value = l1a_l1s_com.Scell_used_IL_dd.lna_off * l1ctl_get_lna_att(radio_freq); @@ -1320,7 +1320,7 @@ UWORD8 lna_off; UWORD16 dco_algo_ctl_pw_temp = 0; UWORD8 if_ctl = 0; - #if (CODE_VERSION != SIMULATION) +#if (RF_FAM == 61) && (CODE_VERSION != SIMULATION) UWORD8 if_threshold = C_IF_ZERO_LOW_THRESHOLD_GPRS; #endif @@ -1342,7 +1342,7 @@ delta2_freq = l1ctl_encode_delta2(radio_freq); // Last known AGC (format F7.1) - used_agc = (Cust_get_agc_from_IL(radio_freq, l1a_l1s_com.Scell_used_IL_dd.input_level >> 1, MAX_ID,l1a_l1s_com.Scell_used_IL_dd.lna_off)) << 1; + used_agc = (Cust_get_agc_from_IL(radio_freq, l1a_l1s_com.Scell_used_IL_dd.input_level >> 1, MAX_ID)) << 1; // LNA attenuation lna_value = l1a_l1s_com.Scell_used_IL_dd.lna_off * l1ctl_get_lna_att(radio_freq); @@ -1581,7 +1581,7 @@ UWORD16 arfcn; UWORD16 dco_algo_ctl_pw_temp = 0; UWORD8 if_ctl = 0; - #if (CODE_VERSION != SIMULATION) +#if (RF_FAM == 61) && (CODE_VERSION != SIMULATION) UWORD8 if_threshold = C_IF_ZERO_LOW_THRESHOLD_GPRS; #endif @@ -1602,7 +1602,7 @@ lna_value = lna_off * l1ctl_get_lna_att(radio_freq); // Used AGC in the control phase (format F7.1) - used_agc = (Cust_get_agc_from_IL(radio_freq, last_known_il >> 1, PWR_ID, lna_off)) << 1; + used_agc = (Cust_get_agc_from_IL(radio_freq, last_known_il >> 1, PWR_ID)) << 1; // DRP correction