CDMS code for testing sbc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE by shubham c

P_COM_INIT.h

Committer:
aniruddhv
Date:
2016-04-11
Revision:
155:ca7365c03fd7
Parent:
144:4c20fcc105ce
Child:
169:451b54864992

File content as of revision 155:ca7365c03fd7:

#define P_COM_INIT {\
    gFLAGS = gFLAGS | COM_INIT_STATUS_FLAG;\
    RF_SW_CNTRL_BCN = 1;\
    Thread::wait(25);\
    RF_SW_CNTRL_BCN = 0;\
    gFLAGS = gFLAGS | RF_SW_STATUS_FLAG;\
    COM_RX_CNTRL = 0;\
    Thread::wait(200);\
    COM_RX_CNTRL = 1;\
    gFLAGS = gFLAGS & (~COM_INIT_STATUS_FLAG);\
}