FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/layer1/p_cfile/l1p_driv.c @ 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 | e26398735e36 |
comparison
equal
deleted
inserted
replaced
320:8710d35a990f | 321:89e6a6edf033 |
---|---|
1532 /*-------------------------------------------------------*/ | 1532 /*-------------------------------------------------------*/ |
1533 /* Parameters : */ | 1533 /* Parameters : */ |
1534 /* Return : */ | 1534 /* Return : */ |
1535 /* Functionality : */ | 1535 /* Functionality : */ |
1536 /*-------------------------------------------------------*/ | 1536 /*-------------------------------------------------------*/ |
1537 void l1pddsp_meas_read(UWORD8 nbmeas, UWORD16 *a_pm) | 1537 void l1pddsp_meas_read(UWORD8 nbmeas, UWORD8 *a_pm) |
1538 { | 1538 { |
1539 UWORD8 i = 0; | 1539 UWORD8 i = 0; |
1540 UWORD8 j; | 1540 UWORD8 j; |
1541 UWORD8 bit_mask = 0x80; | 1541 UWORD8 bit_mask = 0x80; |
1542 | 1542 |
1547 bit_mask >>= 1; | 1547 bit_mask >>= 1; |
1548 } | 1548 } |
1549 | 1549 |
1550 // Read 'nbmeas' contiguous PM levels from the first PM position | 1550 // Read 'nbmeas' contiguous PM levels from the first PM position |
1551 // Note: PM are always programmed on contiguous timeslots | 1551 // Note: PM are always programmed on contiguous timeslots |
1552 #if 0 /* original LoCosto code */ | |
1552 for (j = 0; ((j < nbmeas)&&(i < 8)); j++) | 1553 for (j = 0; ((j < nbmeas)&&(i < 8)); j++) |
1554 #else /* FreeCalypso TCS211 reconstruction */ | |
1555 for (j = 0; j < nbmeas; j++) | |
1556 #endif | |
1553 { | 1557 { |
1554 // Download PM from DSP/MCU memory interface | 1558 // Download PM from DSP/MCU memory interface |
1555 a_pm[j] = ((l1ps_dsp_com.pdsp_db_r_ptr->a_burst_pm_gprs[i] & 0xffff)); | 1559 a_pm[j] = (l1ps_dsp_com.pdsp_db_r_ptr->a_burst_pm_gprs[i] & 0xffff) >> 5; |
1556 | 1560 |
1557 // Read next PM on following TN | 1561 // Read next PM on following TN |
1558 i++; | 1562 i++; |
1559 } | 1563 } |
1560 } | 1564 } |