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 workinQM_10thDec by
Revision 92:0d6e6ff9b7c9, committed 2017-01-04
- Comitter:
- azaddevarm
- Date:
- Wed Jan 04 09:47:03 2017 +0000
- Parent:
- 91:e9444ebb3fe3
- Child:
- 93:e3fd5439e919
- Commit message:
- Moved short_bcn_aq to f_bcn, printing long msg type
Changed in this revision
--- a/BCN.cpp Tue Jan 03 09:57:58 2017 +0000
+++ b/BCN.cpp Wed Jan 04 09:47:03 2017 +0000
@@ -3,7 +3,7 @@
#include <stdio.h>
#include "pin_config.h"
-#define short_bcn_print 1 //For printing short bcn data (in binary) in SHORT_HK_data_AQ()
+#define short_bcn_print 1 //For printing short bcn data 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)
@@ -99,7 +99,7 @@
#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]);
+ for(int ib = 0;ib<15;ib++) pc_bcn.printf("\n\r%02x",SHORT_HK_data[ib]);
pc_bcn.printf("\n");
#endif
}
--- a/TCTM.cpp Tue Jan 03 09:57:58 2017 +0000
+++ b/TCTM.cpp Wed Jan 04 09:47:03 2017 +0000
@@ -680,6 +680,7 @@
//FLASH_DATA[0] = (((uint32_t)tc[5] << 24) | ((uint32_t)tc[6] << 16) | ((uint32_t)tc[7] << 8) | (uint32_t)tc[8]);
//FCTN_BAE_WR_FLASH(0,FLASH_DATA[0]);
BCN_LONG_MSG_TYPE = tc[8];
+ gpc.printf("\n\rReceived BCN_LMB_TYPE tc, new BCN_LONG_MSG_TYPE = %d",tc[8]);
FLASH_DATA = FCTN_BAE_RD_FLASH_ENTITY(0);
FLASH_DATA = (FLASH_DATA & 0xFFFFFBFF) | (10<<(uint32_t)tc[8]);//see if uint8 to uint32 conversion works
FCTN_BAE_WR_FLASH(0,FLASH_DATA);
--- a/main.cpp Tue Jan 03 09:57:58 2017 +0000
+++ b/main.cpp Wed Jan 04 09:47:03 2017 +0000
@@ -907,6 +907,8 @@
timer_FCTN_BCN_TX_MAIN.reset();
timer_FCTN_BCN_TX_MAIN.start();
+ SHORT_HK_data_AQ();
+ pc.printf("\n\rBCN_LONG_MSG_TYPE = %d",BCN_LONG_MSG_TYPE);
FCTN_BCN_TX_MAIN();
timer_FCTN_BCN_TX_MAIN.stop();
}
@@ -1254,11 +1256,10 @@
{
if(BAE_STANDBY==0x04 || BAE_STANDBY==0x05 || BAE_STANDBY==0x06 || BAE_STANDBY==0x07)
{
- pc.printf("\n reahed here working till stage one bcn");
+ pc.printf("\n reached here working till stage one bcn");
// time_wdog = 0;
timer_F_BCN.reset();
timer_F_BCN.start();
- SHORT_HK_data_AQ();
F_BCN();
timer_F_BCN.stop();
/*pc.printf("\n\r timer_F_BCN is %f",timer_F_BCN.read());
