cdms i2c working - but not working after hk data is sent

Dependencies:   mbed-rtos mbed

Fork of pcb_test_vr1_1_2 by GOPA KUMAR K C

Revision:
2:3d9ca9554adf
Parent:
1:bbddd1763652
Child:
3:0931a8800543
--- a/main.cpp	Tue Apr 07 18:10:19 2015 +0000
+++ b/main.cpp	Thu Apr 09 15:12:12 2015 +0000
@@ -10,8 +10,8 @@
 
 Serial pc(USBTX, USBRX);
 
-InterruptIn interrupt(D9);                                      //I2c interrupt from CDMS
-DigitalOut data_ready(D10);                                     //Sends interrupt to CDMS
+InterruptIn interrupt(PIN97);                                      //I2c interrupt from CDMS
+DigitalOut data_ready(PIN90);                                     //Sends interrupt to CDMS
 
 Timer t;                                                        //To know the time of execution each thread
 Timer t1;                                                       //To know the time of entering  of each thread
@@ -349,7 +349,7 @@
     if(schedcount%2==0)
     {
        // ptr_t_fault -> signal_set(0x2);
-       //ptr_t_hk_acq -> signal_set(0x2);
+       ptr_t_hk_acq -> signal_set(0x2);
         
     }
     if(schedcount%beacon_sc==0)
@@ -399,7 +399,7 @@
     t_sc_timer.start(10000);
     printf("\n\r%f\n\r",t1.read()); 
      
-   // interrupt.rise(&FUNC_I2C_INT);                             //interrupt received from CDMS
+   interrupt.rise(&FUNC_I2C_INT);                             //interrupt received from CDMS
     while(1)                                                   //required to prevent main from terminating
     {   
         Thread::wait(5000);