General testings

Dependencies:   mbed

Fork of BEACON_CODE_NEW by Mohamed Azad

Revision:
4:d1a2b3ff6b5e
Parent:
1:e4b70669ae61
Child:
5:ee01f6c87022
--- a/BCN.cpp	Mon Nov 02 14:22:50 2015 +0000
+++ b/BCN.cpp	Wed Apr 13 13:21:56 2016 +0000
@@ -179,16 +179,16 @@
 }
 void LONG_BCN_TX()
 {
-    writereg(RF22_REG_6E_TX_DATA_RATE,0x04);
-    writereg(RF22_REG_6F_TX_DATA_RATE,0xEA);//600 bps
+    writereg(RF22_REG_6E_TX_DATA_RATE,0x08);
+    writereg(RF22_REG_6F_TX_DATA_RATE,0x31);//1000 bps
     writereg(RF22_REG_3E_PACKET_LENGTH,LONG_TX_DATA); //long packet length
     wait(0.02);                                                           
     uint32_t timeout_count=10e5;
    
     //get long_beacon array
     
-    uint8_t Long_beacon[75];
-    for(int i = 0;i<75;)
+    uint8_t Long_beacon[125];
+    for(int i = 0;i<125;)
     {
         Long_beacon[i++] = 0xAA;
     }
@@ -217,7 +217,7 @@
     
     cs = 0;
     spi.write(0xFF);   
-    for(int i=60; i<75;i++)
+    for(int i=60; i<125;i++)
     {
         spi.write(Long_beacon[i]);
     }