changeset 62:98b25a73c57a

l1_cmplx.c: l1s_read_msagc() reconstructed
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sun, 27 Mar 2016 19:14:04 +0000
parents e4e3d406d4f3
children 82dc38292412
files chipsetsw/layer1/cfile/l1_cmplx.c
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/cfile/l1_cmplx.c	Sun Mar 27 18:20:37 2016 +0000
+++ b/chipsetsw/layer1/cfile/l1_cmplx.c	Sun Mar 27 19:14:04 2016 +0000
@@ -212,13 +212,13 @@
                               );
 #endif /* RF_FAM == 61*/
 
-void l1ddsp_meas_read        (UWORD8 nbmeas, UWORD16 *pm);
+void l1ddsp_meas_read        (UWORD8 nbmeas, UWORD8 *pm);
 
 #if L1_GPRS
 void l1pddsp_synchro         (UWORD8 switch_mode, UWORD8  camp_timeslot);
 void l1pddsp_load_bcchn_task (UWORD8 tsq,UWORD16 radio_freq);
 void l1pddsp_meas_ctrl       (UWORD8 nbmeas, UWORD8 pm_pos);
-void l1pddsp_meas_read       (UWORD8 nbmeas, UWORD16 *a_pm);
+void l1pddsp_meas_read       (UWORD8 nbmeas, UWORD8 *a_pm);
 #if FF_L1_IT_DSP_USF
 void l1pddsp_idle_rx_nb      (UWORD8 burst_nb, UWORD8 tsq, UWORD16 radio_freq,
                               UWORD8 timeslot_no, BOOL ptcch_dl, BOOL usf_interrupt);
@@ -6342,7 +6342,7 @@
 {
   BOOL      en_task;
   BOOL      task_param;
-  UWORD16   pm_level[2]={0}; //omaps00090550
+  UWORD8    pm_level[2];
 #if (L1_FF_MULTIBAND == 1)
   UWORD16  operative_radio_freq;
 #endif
@@ -6445,10 +6445,7 @@
     l1_check_pm_error(pm_level[0], MS_AGC_ID);
     l1_check_pm_error(pm_level[1], MS_AGC_ID);
 
-    pm_level[0] = pm_level[0] >> 5;
-    pm_level[1] = pm_level[1] >> 5;
-
-    l1ctl_pgc2(((UWORD8 )(pm_level[0])),((UWORD8 )(pm_level[1])),cell_info_ptr->radio_freq);
+    l1ctl_pgc2(pm_level[0], pm_level[1], cell_info_ptr->radio_freq);
 
     #if L2_L3_SIMUL
       #if (DEBUG_TRACE == BUFFER_TRACE_LNA)