working code of bae with i2c

Dependencies:   mbed-rtos mbed

Fork of all_combined_week6 by green rosh

Revision:
7:47e07755d9a4
Parent:
6:82153349cc9b
diff -r 82153349cc9b -r 47e07755d9a4 main.cpp
--- a/main.cpp	Tue Jul 15 10:04:38 2014 +0000
+++ b/main.cpp	Thu Sep 18 10:29:33 2014 +0000
@@ -58,7 +58,7 @@
         printf("The state of acs_write2flash thread is %d\n",ptr_t_acs_write2flash->get_state());
         printf("The state of beacon thread is %d\n",ptr_t_bea->get_state());*/
              
-        //FUNC_I2C_SLAVE_MAIN(24);
+        FUNC_I2C_SLAVE_MAIN(24);
         printf("The time to execute send2cdms is %f\n",t.read());
         t.reset();
     }
@@ -266,7 +266,7 @@
     
     if(schedcount%1==0)
     {
-        ptr_t_acs -> signal_set(0x1);
+        //ptr_t_acs -> signal_set(0x1);
     }
     if(schedcount%2==0)
     {
@@ -274,7 +274,7 @@
     }
     if(schedcount%3==0)
     {
-        ptr_t_bea -> signal_set(0x3);
+        //ptr_t_bea -> signal_set(0x3);
     }
     schedcount++;
 }