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 COM_MNG_TMTC_SIMPLE by
Diff: main.cpp
- Revision:
- 131:8745e6041ebc
- Parent:
- 130:d5b53088270b
--- a/main.cpp Sat Feb 27 07:12:04 2016 +0000
+++ b/main.cpp Sat Feb 27 10:22:40 2016 +0000
@@ -3,6 +3,7 @@
#include "mbed.h"
#define DEBUG 1
+#define SDCARD 0
#include "SimpleDMA.h"
#include "dmaSPIslave.h"
@@ -60,7 +61,9 @@
gCS_ADF = 1;
//FCTN_CDMS_INIT_RTC();/* rtc initialization*/
+ #if SDCARD
FCTN_CDMS_SD_INIT();/* sd card initialization*/
+ #endif
#if DEBUG
gPC.puts("welcome to mng_tmtc\r\n");
@@ -72,14 +75,18 @@
#if DEBUG
gPC.puts("allocating threads\r\n");
#endif
+ #if SDCARD
gSCIENCE_THREAD = new Thread(SCIENCE_FUN);
// gPC.puts("step one complete\r\n");
gSCIENCE_THREAD->set_priority(osPriorityBelowNormal);
+ #endif
#if DEBUG
gPC.puts("competed allocating threads\r\n");
#endif
+ char data_dum[] = "dummy12345";
+ FCTN_I2C_WRITE_PL(data_dum,10);
// *******************INITIALISATIONS END********************
