![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
vr1.1
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of CDMS_RTOS_v1_1 by
main.h@11:d6dc9074075b, 2015-07-06 (annotated)
- Committer:
- cholletisaik777
- Date:
- Mon Jul 06 06:25:14 2015 +0000
- Revision:
- 11:d6dc9074075b
- Parent:
- 8:607ae92fa6af
- Child:
- 12:cb3ee1ac3638
changes made
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cholletisaik777 | 8:607ae92fa6af | 1 | /*Configuring pins*/ |
cholletisaik777 | 8:607ae92fa6af | 2 | InterruptIn pl_sc_data(PTC3); //interrupt from payload to send science data |
cholletisaik777 | 8:607ae92fa6af | 3 | InterruptIn cdms_rcv_tc(PTC12); //interrupt from comm b4 sending tc |
cholletisaik777 | 8:607ae92fa6af | 4 | InterruptIn bae_tm_rcv(PTC11); //interrupt from bae b4 sending tm |
cholletisaik777 | 8:607ae92fa6af | 5 | InterruptIn pl_tm_rcv(PTC10); ////interrupt from bae b4 sending tm |
cholletisaik777 | 8:607ae92fa6af | 6 | /*End*/ |
cholletisaik777 | 8:607ae92fa6af | 7 | |
cholletisaik777 | 8:607ae92fa6af | 8 | /*Delclaring extern objects*/ |
cholletisaik777 | 8:607ae92fa6af | 9 | extern I2C master; |
cholletisaik777 | 8:607ae92fa6af | 10 | extern DigitalOut irpt_2_slv; |
cholletisaik777 | 8:607ae92fa6af | 11 | extern SPISlave pl_spi ; // mosi, miso, sclk, ssel --> using SPI1 |
cholletisaik777 | 8:607ae92fa6af | 12 | /*End*/ |
cholletisaik777 | 8:607ae92fa6af | 13 | |
cholletisaik777 | 8:607ae92fa6af | 14 | /*Declaring global variables*/ |
cholletisaik777 | 11:d6dc9074075b | 15 | uint64_t all_flags; |
cholletisaik777 | 11:d6dc9074075b | 16 | uint32_t sc_timer = 0; |
cholletisaik777 | 8:607ae92fa6af | 17 | /*End*/ |
cholletisaik777 | 8:607ae92fa6af | 18 | |
cholletisaik777 | 8:607ae92fa6af | 19 | /*Threads used*/ |
cholletisaik777 | 8:607ae92fa6af | 20 | Thread *ptr_t_hk_acq; //pointer to read state of one thread from another |
cholletisaik777 | 8:607ae92fa6af | 21 | Thread *ptr_t_sc_data; |
cholletisaik777 | 8:607ae92fa6af | 22 | Thread *ptr_t_tc; |
cholletisaik777 | 8:607ae92fa6af | 23 | Thread *ptr_t_tm; |
cholletisaik777 | 8:607ae92fa6af | 24 | Thread *ptr_t_fault; |
cholletisaik777 | 8:607ae92fa6af | 25 | Thread *ptr_t_wdt; |
cholletisaik777 | 8:607ae92fa6af | 26 | /*End*/ |