FreeCalypso > hg > tcs211-l1-reconst
changeset 321:89e6a6edf033
l1p_driv.c: l1pddsp_meas_read() reconstructed
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 04 Oct 2017 06:09:00 +0000 |
parents | 8710d35a990f |
children | b21e34ef9a80 |
files | chipsetsw/layer1/p_cfile/l1p_driv.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/chipsetsw/layer1/p_cfile/l1p_driv.c Wed Oct 04 05:50:02 2017 +0000 +++ b/chipsetsw/layer1/p_cfile/l1p_driv.c Wed Oct 04 06:09:00 2017 +0000 @@ -1534,7 +1534,7 @@ /* Return : */ /* Functionality : */ /*-------------------------------------------------------*/ -void l1pddsp_meas_read(UWORD8 nbmeas, UWORD16 *a_pm) +void l1pddsp_meas_read(UWORD8 nbmeas, UWORD8 *a_pm) { UWORD8 i = 0; UWORD8 j; @@ -1549,10 +1549,14 @@ // Read 'nbmeas' contiguous PM levels from the first PM position // Note: PM are always programmed on contiguous timeslots +#if 0 /* original LoCosto code */ for (j = 0; ((j < nbmeas)&&(i < 8)); j++) +#else /* FreeCalypso TCS211 reconstruction */ + for (j = 0; j < nbmeas; j++) +#endif { // Download PM from DSP/MCU memory interface - a_pm[j] = ((l1ps_dsp_com.pdsp_db_r_ptr->a_burst_pm_gprs[i] & 0xffff)); + a_pm[j] = (l1ps_dsp_com.pdsp_db_r_ptr->a_burst_pm_gprs[i] & 0xffff) >> 5; // Read next PM on following TN i++;