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: SDFileSystem mbed-rtos mbed
Fork of CDMS_RTOS by
Diff: main.cpp
- Revision:
- 8:4acac3bf5e9b
- Parent:
- 7:60e940b7a36b
--- a/main.cpp Thu Feb 05 23:19:46 2015 +0000 +++ b/main.cpp Fri Feb 06 18:12:16 2015 +0000 @@ -12,7 +12,7 @@ Thread * ptr_t_hk; Thread * ptr_t_i2c1; - +Thread * ptr_t_i2c; /* void FUNC_HK_DATA() { @@ -56,14 +56,14 @@ i2c_data_r->length = 25; i2c_data_receive.put(i2c_data_r);*/ printf("\n Data received from slave is %s\n\r",data_receive); - //TC_DECODE(data_receive); + TC_DECODE(data_receive); } } void FUNC_INT() { - ptr_t_hk->signal_set(0x1); + ptr_t_i2c->signal_set(0x1); } void FUNC_INT1() @@ -88,7 +88,7 @@ ptr_t_i2c1= new Thread (T_I2C_MASTER_FSLAVE1); data_ready1.rise(&FUNC_INT1); - //ptr_t_i2c = new Thread(T_I2C_MASTER_FSLAVE); + ptr_t_i2c = new Thread(T_I2C_MASTER_FSLAVE); // data_ready.rise(&FUNC_INT); printf("\nstarted master\n"); master.frequency(100000);