To fix the hang problem
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: COM_POWER_ON_TX.h
- Revision:
- 319:c11a52b91d25
- Parent:
- 295:699801854b71
- Child:
- 333:cddef120cae3
--- a/COM_POWER_ON_TX.h Thu Dec 08 13:12:34 2016 +0000 +++ b/COM_POWER_ON_TX.h Thu Dec 08 15:17:24 2016 +0000 @@ -136,7 +136,7 @@ RF_SW_CNTRL_TX = 1; Thread::wait(25); RF_SW_CNTRL_TX = 0; - gFLAGS = gFLAGS & (~RF_SW_STATUS_FLAG);/*RF_SW_STATUS_FLAG set to RF_COM_TX*/ + gFLAGS = gFLAGS | RF_SW_STATUS_FLAG;/*RF_SW_STATUS_FLAG set to RF_COM_TX*/ } else{ gPC.puts("waiting for bcn off\r\n"); @@ -159,7 +159,7 @@ RF_SW_CNTRL_TX = 1; Thread::wait(25); RF_SW_CNTRL_TX = 0; - gFLAGS = gFLAGS & (~RF_SW_STATUS_FLAG); + gFLAGS = gFLAGS | RF_SW_STATUS_FLAG;/*RF_SW_STATUS_FLAG set to RF_COM_TX*/ } else{ gPC.puts("ack = C0\r\n"); @@ -175,7 +175,7 @@ RF_SW_CNTRL_TX = 1; Thread::wait(25); RF_SW_CNTRL_TX = 0; - gFLAGS = gFLAGS & (~RF_SW_STATUS_FLAG);/*RF_SW_STATUS_FLAG set to RF_COM_TX*/ + gFLAGS = gFLAGS | RF_SW_STATUS_FLAG;/*RF_SW_STATUS_FLAG set to RF_COM_TX*/ } /*DELETE THE TM AFTER USE*/ Base_tm *del_tm = tm_ptr2; @@ -215,7 +215,7 @@ RF_SW_CNTRL_TX = 1; Thread::wait(25); RF_SW_CNTRL_TX = 0; - gFLAGS = gFLAGS & (~RF_SW_STATUS_FLAG);/*RF_SW_STATUS_FLAG set to RF_COM_TX*/ + gFLAGS = gFLAGS | RF_SW_STATUS_FLAG;/*RF_SW_STATUS_FLAG set to RF_COM_TX*/ } } gPC.puts("swd off BAE\r\n");