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.
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: COM_MNG_TMTC.h
- Revision:
- 94:611c066467a1
- Parent:
- 90:df55a5f68331
- Child:
- 95:42d6747900cb
--- a/COM_MNG_TMTC.h Sun Jan 24 09:30:22 2016 +0000
+++ b/COM_MNG_TMTC.h Sun Jan 24 13:30:11 2016 +0000
@@ -12,7 +12,7 @@
#include "pinconfig.h"
#include "i2c.h"
-#include "Flash.h"
+//#include "Flash.h"
#include "cdms_rtc.h"
DigitalIn tm_status_4m_slv(PIN39); //I2C interrupt to CDMS from BAE
@@ -484,8 +484,8 @@
//printf("sub_service:Read from RAM_Memory\r\n");
mid=(uint16_t)(tc_ptr->TC_string[3]<<4)+(uint16_t)(tc_ptr->TC_string[4]);
- Data[0] = FCTN_CDMS_RD_FLASH(0);
- Data[1] = FCTN_CDMS_RD_FLASH(1);
+ //Data[0] = FCTN_CDMS_RD_FLASH(0);
+ //Data[1] = FCTN_CDMS_RD_FLASH(1);
//tm_pointer = new Long_tm;
tm_pointer->TM_string[0] = 0x30;
tm_pointer->TM_string[1] = GETpacket_seq_count(tc_ptr);
@@ -508,8 +508,8 @@
//printf("sub_service:Read from Flash_Memory\r\n");
mid=(uint16_t)(tc_ptr->TC_string[3]<<4)+(uint16_t)(tc_ptr->TC_string[4]);
- Data[0] = FCTN_CDMS_RD_FLASH(0);
- Data[1] = FCTN_CDMS_RD_FLASH(1);
+ //Data[0] = FCTN_CDMS_RD_FLASH(0);
+ //Data[1] = FCTN_CDMS_RD_FLASH(1);
//tm_pointer = new Long_tm;
tm_pointer->TM_string[0] = 0x30;
tm_pointer->TM_string[1] = GETpacket_seq_count(tc_ptr);
@@ -532,7 +532,7 @@
//printf("WRITE ON FLASH_MEMORY\r\n");
mid=(uint16_t)(tc_ptr->TC_string[3]<<4)+(uint16_t)(tc_ptr->TC_string[4]);
block = (((uint32_t)(tc_ptr->TC_string[5])<<24)|((uint32_t)(tc_ptr->TC_string[5])<<16)|((uint32_t)(tc_ptr->TC_string[5])<<8)|((uint32_t)(tc_ptr->TC_string[5])));
- FCTN_CDMS_WR_FLASH(mid,block);
+ //FCTN_CDMS_WR_FLASH(mid,block);
//tm_pointer = new Short_tm;
tm_pointer->TM_string[0] = 0xB0;
tm_pointer->TM_string[1] = GETpacket_seq_count(tc_ptr);
