i2c testing for integration

Dependencies:   mbed-rtos mbed

Fork of pcb_test_v1_1_1 by sakthi priya amirtharaj

Files at this revision

API Documentation at this revision

Comitter:
raizel_varun
Date:
Thu Apr 09 15:12:12 2015 +0000
Parent:
1:bbddd1763652
Commit message:
testing , i2c

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r bbddd1763652 -r 3d9ca9554adf main.cpp
--- 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);