![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
vr1.1
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of CDMS_RTOS_v1_1 by
HK_MAIN.h@8:607ae92fa6af, 2015-07-04 (annotated)
- Committer:
- cholletisaik777
- Date:
- Sat Jul 04 08:56:34 2015 +0000
- Revision:
- 8:607ae92fa6af
- Child:
- 9:7ff6d75cc09e
cdms_rtos_v1_0_3
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cholletisaik777 | 8:607ae92fa6af | 1 | /*Hash define parameters*/ |
cholletisaik777 | 8:607ae92fa6af | 2 | #define HK_DATA 25 //Total Hk data that is to be stored in SD card |
cholletisaik777 | 8:607ae92fa6af | 3 | #define HK_ITER 5 //The iterations after which the HK data will be stored in the SD card |
cholletisaik777 | 8:607ae92fa6af | 4 | /*End*/ |
cholletisaik777 | 8:607ae92fa6af | 5 | |
cholletisaik777 | 8:607ae92fa6af | 6 | /*Delclaring extern objects*/ |
cholletisaik777 | 8:607ae92fa6af | 7 | extern I2C master; |
cholletisaik777 | 8:607ae92fa6af | 8 | extern DigitalOut irpt_2_slv; |
cholletisaik777 | 8:607ae92fa6af | 9 | extern SPISlave pl_spi ; // mosi, miso, sclk, ssel --> using SPI1 |
cholletisaik777 | 8:607ae92fa6af | 10 | /*End*/ |
cholletisaik777 | 8:607ae92fa6af | 11 | |
cholletisaik777 | 8:607ae92fa6af | 12 | /*Declaring global variables*/ |
cholletisaik777 | 8:607ae92fa6af | 13 | char i2c_data[25]; |
cholletisaik777 | 8:607ae92fa6af | 14 | int hk_count = 0; |
cholletisaik777 | 8:607ae92fa6af | 15 | uint8_t hk_data[512]; |
cholletisaik777 | 8:607ae92fa6af | 16 | uint8_t rtc_data[8]; |
cholletisaik777 | 8:607ae92fa6af | 17 | uint64_t hk_block_number = 1; |
cholletisaik777 | 8:607ae92fa6af | 18 | /*End*/ |