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 mbed-rtos mbed
Fork of COM_MNG_TMTC_SIMPLE by
main.cpp
00001 // TESTING PUSH PULL IN MAIN CPP 00002 bool loop_on; 00003 #define ENDL "\r" << endl 00004 00005 #include "mbed.h" 00006 #include "rtos.h" 00007 #include "mbed_debug.h" 00008 #include "cdms_sd.h" 00009 #include "Structures.h" 00010 #include "DefinitionsAndGlobals.h" 00011 #include "crc.h" 00012 #include "COM_SND_TM_functions.h" 00013 #include "COM_SND_TM.h" 00014 #include "Compression.h" 00015 #include "COM_RCV_TC.h" 00016 #include "OBSRS.h" 00017 #include "adf.h" 00018 #include "COM_MNG_TMTC.h" 00019 #include "COM_POWER_ON_TX.h" 00020 #include "COM_POWER_OFF_TX.h" 00021 #include "ThreadsAndFunctions.h" 00022 00023 00024 int main() 00025 { 00026 // ******************INITIALISATIONS START****************** 00027 // COM RX 00028 RX1M.baud(1200); 00029 gRX_HEAD_DATA_NODE = new COM_RX_DATA_NODE; 00030 gRX_HEAD_DATA_NODE->next_node = NULL; 00031 gRX_CURRENT_DATA_NODE = gRX_HEAD_DATA_NODE; 00032 gRX_COUNT = 0; 00033 // gRX_CURRENT_PTR = gRX_CURRENT_DATA_NODE->values; 00034 RX1M.attach(&rx_read, Serial::RxIrq); 00035 00036 // DEBUG 00037 // gPC.puts("welcome to mng_tm_tc\r\n"); 00038 gPC.baud(1200); 00039 00040 // COMMON SPI 00041 spi.format(8,0); 00042 spi.frequency(1000000); 00043 00044 // SD CARD 00045 gCS_SDC = 1; 00046 gCS_RTC = 1; 00047 // initialise_card(); 00048 // int result= initialise_card(); 00049 // disk_initialize(); 00050 00051 // COM_TX 00052 // *********************THE TEST 00053 // cs_adf=1; 00054 // *********************THE TEST 00055 00056 // COM_MNG_TMTC THREAD 00057 gCOM_MNG_TMTC_THREAD = new Thread(COM_MNG_TMTC_FUN); 00058 gCOM_MNG_TMTC_THREAD->set_priority(osPriorityAboveNormal); 00059 // *******************INITIALISATIONS END******************** 00060 00061 int theAcount = 0; 00062 while(true){ 00063 Thread::wait(osWaitForever); 00064 } 00065 }
Generated on Tue Jul 12 2022 10:59:22 by
1.7.2
