for frequency correction testing

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE by shubham c

Files at this revision

API Documentation at this revision

Comitter:
ee12b079
Date:
Mon Aug 01 22:02:48 2016 +0000
Parent:
284:5bfd48ce169d
Child:
286:0f3a2a7ac295
Commit message:
RF_SW

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Aug 01 20:57:54 2016 +0000
+++ b/main.cpp	Mon Aug 01 22:02:48 2016 +0000
@@ -38,7 +38,12 @@
 int main()
 {    
     
+    //RELAY SWITCHING 
     
+    
+    RF_SW_CNTRL_BCN = 1;
+    Thread::wait(25);
+    RF_SW_CNTRL_BCN = 0;
     PYLD_DFF = 1;
     
     for(int i= 0; i< 10 ; i++)
@@ -57,6 +62,10 @@
     
     gPC.baud(1200);//changed for bypassing COM
     
+    Base_tm *tm_ptr = NULL;
+    SET_BCN_STANDBY(tm_ptr);
+    gPC.puts("set Bcn off\r\n");
+    
     // COMMON SPI
     spi.format(8,0);
     spi.frequency(500000);