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
Diff: main.cpp
- Revision:
- 50:6001287f3045
- Parent:
- 49:61c9f28332ba
- Child:
- 52:daa685b0e390
--- a/main.cpp Thu Jul 14 23:04:26 2016 +0000
+++ b/main.cpp Mon Jul 18 06:36:25 2016 +0000
@@ -422,7 +422,7 @@
ACS_STATE = (ARR_INITIAL_VAL[0]>>16)&0x0F;
//pc.pc.printf("\n\r acs state in starting is %x",ACS_STATE);
ACS_DETUMBLING_ALGO_TYPE = (ARR_INITIAL_VAL[0]>>15)&0x01;
- BCN_TX_SW_STATUS = ((uint8_t)(ARR_INITIAL_VAL[0]>>13))&0x03;
+ BCN_TX_SW_STATUS = 1;//((uint8_t)(ARR_INITIAL_VAL[0]>>14))&0x03;
BCN_SPND_TX = ((uint8_t)(ARR_INITIAL_VAL[0]>>12))&0x01;
BCN_FEN = ((uint8_t)(ARR_INITIAL_VAL[0]>>11))&0x01;
BCN_LONG_MSG_TYPE = ((uint8_t)(ARR_INITIAL_VAL[0]>>10))&0x01;
@@ -464,7 +464,7 @@
ACS_STATE = (read[0]>>16)&0x0F;
//pc.printf("\n\r acs state in starting is %x",ACS_STATE);
ACS_DETUMBLING_ALGO_TYPE = (read[0]>>15)&0x01;
- BCN_TX_SW_STATUS = ((uint8_t)(read[0]>>13))&0x03;
+ BCN_TX_SW_STATUS = 1;//((uint8_t)(read[0]>>13))&0x03;
BCN_SPND_TX = ((uint8_t)(read[0]>>12))&0x01;
BCN_FEN = ((uint8_t)(read[0]>>11))&0x01;
BCN_LONG_MSG_TYPE = ((uint8_t)(read[0]>>10))&0x01;
@@ -1178,7 +1178,7 @@
pc.printf("\nSTATE IS !!!!!! = %x !!\n",ACS_STATE);
timer_F_ACS.reset();
timer_F_ACS.start();
- F_ACS();
+ //F_ACS();
timer_F_ACS.stop();
/*pc.printf("\n\r timer_F_ACS is %f",timer_F_ACS.read());
pc.printf("\n\r timer_SENSOR_INIT is %f",timer_SENSOR_INIT.read());
@@ -1449,7 +1449,7 @@
irpt_2_mstr = 0;
ptr_t_i2c = new Thread(T_TC);
- ptr_t_i2c->set_priority(osPriorityHigh);
+ ptr_t_i2c->set_priority(osPriorityRealtime);
irpt_4m_mstr.enable_irq();
irpt_4m_mstr.rise(&FCTN_I2C_ISR);
@@ -1457,6 +1457,7 @@
RtosTimer t_sc_timer(T_SC,osTimerPeriodic); // Initiating the scheduler thread
t_sc_timer.start(5000);
t_start.start();
+
#if print
pc.printf("\n\rStarted scheduler %f\n\r",t_start.read());
#endif
