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_5thJan_azad by
Diff: main.cpp
- Revision:
- 98:321edb143f26
- Parent:
- 97:36a91c432cb1
- Child:
- 99:2cc5c0c98cb3
diff -r 36a91c432cb1 -r 321edb143f26 main.cpp --- a/main.cpp Fri Feb 10 19:12:15 2017 +0000 +++ b/main.cpp Tue Feb 14 16:18:16 2017 +0000 @@ -4,6 +4,7 @@ #include "ACS.h" #include "EPS.h" #include "BCN.h" +#include "InterruptIn.h" Serial pc(USBTX,USBRX); #include "TCTM.h" @@ -388,8 +389,8 @@ DigitalOut CDMS_OC_ENA(PIN70,1); -DigitalOut BCN_SW(PIN64,1); // PIN changed to 64 (previous 65 ) //IN TEMPORARY SBC -//DigitalOut BCN_SW(PIN14,1); //Beacon switch //IN QM SBC, TO BE CHANGED +//DigitalOut BCN_SW(PIN64,1); // PIN changed to 64 (previous 65 ) //IN TEMPORARY SBC +DigitalOut BCN_SW(PIN14,1); //Beacon switch //IN QM SBC, TO BE CHANGED //================================================================================ //default flash array some filler bits added (detail in MMS file) @@ -926,6 +927,7 @@ { Thread::signal_wait(0x4); wait_us(300); + //__disable_irq(); BAE_MNG_I2C_STATUS =1 ; //I2C_last.reset(); @@ -1149,6 +1151,7 @@ i2c_count = 0; } BAE_MNG_I2C_STATUS=0; + //__enable_irq(); } } @@ -1507,7 +1510,7 @@ irpt_2_mstr = 0; ptr_t_i2c = new Thread(T_TC); - ptr_t_i2c->set_priority(osPriorityRealtime);////osPriorityHigh + ptr_t_i2c->set_priority(osPriorityRealtime);////osPriorityHigh_Realtime irpt_4m_mstr.enable_irq(); irpt_4m_mstr.rise(&FCTN_I2C_ISR);