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.
Fork of pcb_test_v1_1_1 by
Revision 2:3d9ca9554adf, committed 2015-04-09
- 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 |
--- 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);