Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of BAE_CODE_MARCH_2017 by
Diff: BCN.cpp
- Revision:
- 91:e9444ebb3fe3
- Parent:
- 84:afbedc6ed804
- Child:
- 92:0d6e6ff9b7c9
--- 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()