Team Fox / Mbed 2 deprecated TR_EXCITATION_TEST

Dependencies:   FreescaleIAP mbed-rtos mbed

Fork of BAE_CODE_MARCH_2017 by Team Fox

Revision:
91:e9444ebb3fe3
Parent:
84:afbedc6ed804
Child:
92:0d6e6ff9b7c9
diff -r 2d0cdc87329a -r e9444ebb3fe3 BCN.cpp
--- a/BCN.cpp	Fri Dec 30 10:29:44 2016 +0000
+++ b/BCN.cpp	Tue Jan 03 09:57:58 2017 +0000
@@ -2,6 +2,8 @@
 #include "EPS.h"
 #include <stdio.h>
 #include "pin_config.h"
+
+#define short_bcn_print 1 //For printing short bcn data (in binary) in SHORT_HK_data_AQ()
 //Check the pin names
 //Takes max 4 sec in void FCTN_BCN_TX_MAIN() (temp.calc. + long_beacon + short_beacon) 
 
@@ -93,7 +95,13 @@
     SHORT_HK_data[12] = (SHORT_HK_data[12]<<3) | (days>>2);    
     SHORT_HK_data[13] = (days<<6) | (mins&0x3F);
 
-    SHORT_HK_data[14] = crc8_short();    
+    SHORT_HK_data[14] = crc8_short();   
+    
+    #if short_bcn_print
+    pc_bcn.printf("\n\rShort BCN data:\n");
+    for(int ib = 0;ib<15;ib++) pc_bcn.printf("\n\r%d",SHORT_HK_data[ib]);
+    pc_bcn.printf("\n");
+    #endif
 }
 
 void FCTN_BCN_INIT()