pcb test start

Dependencies:   mbed-rtos mbed

Fork of BAE_hw_test1_5 by sakthi priya amirtharaj

Revision:
3:20647ff68b3c
Parent:
0:ebdf4f859dca
--- a/beacon.cpp	Fri Dec 26 06:12:09 2014 +0000
+++ b/beacon.cpp	Sat Jan 31 14:11:53 2015 +0000
@@ -52,7 +52,7 @@
 void FUNC_BEA() {
     
     //button.rise(&interrupt_func);         //interrupt enabled ( rising edge of pin 9)
-    printf("\nBeacon function entered\n");
+    printf("\n\rBeacon function entered\n\r");
     wait(0.02);                             //takes 10 ms for POR event + 10ms for safety                 
     
     uint8_t byte_counter = 0;
@@ -74,7 +74,7 @@
         
     for(int i = 0; i < 15 ; i++)
     {
-        chavan.printf("0x%X\n",(short_beacon[i]));    
+        chavan.printf("0x%X\n\r",(short_beacon[i]));    
     }
     
     spi.format(8,0);                    
@@ -134,9 +134,9 @@
     cs_bar = 1; //cs_bar
                 
     //Check for fifoThresh
-    printf("\nfor loop executed\n");
+    printf("\n\rfor loop executed\n\r");
     while((readreg(0x28) & 0x20) != 0x20);                         
-    printf("\nwhile loop executed\n");
+    printf("\n\rwhile loop executed\n\r");
     //Highpower settings
     writereg(0x11,0x7F);    //RegPalevel (20db)                //~
     writereg(0x13,0x0F);    //RegOCP
@@ -146,10 +146,10 @@
     //Set to Tx mode
     writereg(0x01,0x0C);
     
-        printf("\npre 2nd while loop\n");
+        printf("\n\rpre 2nd while loop\n\r");
         //Check for fifoThresh
         while((readreg(0x28) & 0x20) != 0x00);  
-        printf("\n2nd while loop executed\n");        
+        printf("\n\r2nd while loop executed\n\r");        
         while(byte_counter!=15){
             
         //writing again
@@ -175,11 +175,11 @@
         //Check for fifoThresh
         while((readreg(0x28) & 0x20) != 0x00);
     }
-    printf("\n3rd big while loop executed\n");
+    printf("\n\r3rd big while loop executed\n\r");
     //wait for packet sent bit to fire
     while((readreg(0x28) & 0x08) != 0x08);
-    printf("\n4th while loop executed\n");
-    //chavan.printf("packet sent!!! \n");    
+    printf("\n\r4th while loop executed\n\r");
+    //chavan.printf("packet sent!!! \n\r");    
     
     //Switch back to Standby Mode
     writereg(0x01,0x04);
@@ -196,5 +196,5 @@
     //t.stop();
     //chavan.printf(" time taken to init + transmit = %f \n", t.read()) ;
     //}
-printf("\nBeacon function exiting\n");
+printf("\n\rBeacon function exiting\n\r");
 }