![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
vr1.1
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of CDMS_RTOS_v1_1 by
Diff: main.h
- Revision:
- 8:607ae92fa6af
- Child:
- 11:d6dc9074075b
diff -r c270a9e37290 -r 607ae92fa6af main.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.h Sat Jul 04 08:56:34 2015 +0000 @@ -0,0 +1,25 @@ +/*Configuring 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 +/*End*/ + +/*Delclaring extern objects*/ +extern I2C master; +extern DigitalOut irpt_2_slv; +extern SPISlave pl_spi ; // mosi, miso, sclk, ssel --> using SPI1 +/*End*/ + +/*Declaring global variables*/ +uint64_t sc_timer = 0; +/*End*/ + +/*Threads used*/ +Thread *ptr_t_hk_acq; //pointer to read state of one thread from another +Thread *ptr_t_sc_data; +Thread *ptr_t_tc; +Thread *ptr_t_tm; +Thread *ptr_t_fault; +Thread *ptr_t_wdt; +/*End*/