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 TFOX_CDMS_VR_1_0_WORKING by
Diff: main.cpp
- Revision:
- 8:f3b50b921414
- Parent:
- 7:4f17f1afe95e
--- a/main.cpp Tue Jun 16 20:14:03 2015 +0000 +++ b/main.cpp Wed Jun 17 09:55:09 2015 +0000 @@ -1,21 +1,24 @@ +/*****************************************************Header Files*********************************************************************/ #include "mbed.h" #include "rtos.h" #include "func_head.h" #include "i2c.h" #include "SDCard.h" #include "HK_CDMS.h" + + #define HK_DATA 25 #define HK_ITER 5 Serial pc(USBTX,USBRX); -extern SPISlave pl_spi ; // mosi, miso, sclk, ssel --> using SPI1 - -InterruptIn pl_sc_data(PTC3); -InterruptIn cdms_rcv_tc(PTC12); -InterruptIn bae_tm_rcv(PTC11); -InterruptIn pl_tm_rcv(PTC10); +/**************************************************Declaring pins*********************************************************************/ +InterruptIn pl_sc_data(PTC3); //interrupt from payload to send science data +InterruptIn cdms_rcv_tc(PTC12); //interrupt from comm b4 sending tc +InterruptIn bae_tm_rcv(PTC11); //interrupt from bae b4 sending tm +InterruptIn pl_tm_rcv(PTC10); ////interrupt from bae b4 sending tm extern I2C master; extern DigitalOut irpt_2_slv; +extern SPISlave pl_spi ; // mosi, miso, sclk, ssel --> using SPI1 char i2c_data[25]; int hk_count=0; @@ -95,6 +98,7 @@ pc.printf("%d|",hk_data[i]); } // FCTN_CDMS_HK_MAIN(); + FCTN_POWER_MODE(80); //to check dummy power algo } pc.printf("\n\r hk exited\n"); }