
CDMS code for testing sbc
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
P_COM_INIT.h@262:752c8689944a, 2016-07-14 (annotated)
- Committer:
- aniruddhv
- Date:
- Thu Jul 14 17:57:05 2016 +0000
- Revision:
- 262:752c8689944a
- Parent:
- 209:63e9c8f8b5d2
- Child:
- 216:570251b23c7b
Merged Aniruddh's code, changed power_on and power_off BAE, added PAHOT and PAOC measurements, added sys_reset_cdms timer
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ee12b079 | 209:63e9c8f8b5d2 | 1 | #define P_COM_INIT {\ |
ee12b079 | 209:63e9c8f8b5d2 | 2 | gFLAGS = gFLAGS | COM_INIT_STATUS_FLAG;\ |
ee12b079 | 209:63e9c8f8b5d2 | 3 | RF_SW_CNTRL_BCN = 1;\ |
ee12b079 | 209:63e9c8f8b5d2 | 4 | Thread::wait(25);\ |
ee12b079 | 209:63e9c8f8b5d2 | 5 | RF_SW_CNTRL_BCN = 0;\ |
ee12b079 | 209:63e9c8f8b5d2 | 6 | gFLAGS = gFLAGS | RF_SW_STATUS_FLAG;\ |
aniruddhv | 262:752c8689944a | 7 | COM_RX_CNTRL = 0;\ |
ee12b079 | 209:63e9c8f8b5d2 | 8 | Thread::wait(200);\ |
ee12b079 | 209:63e9c8f8b5d2 | 9 | COM_RX_CNTRL = 1;\ |
ee12b079 | 209:63e9c8f8b5d2 | 10 | gFLAGS = gFLAGS & (~COM_INIT_STATUS_FLAG);\ |
ee12b079 | 209:63e9c8f8b5d2 | 11 | } |