working version
Dependencies: mbed mbed-rtos SimpleDMA FreescaleIAP eeprom
Fork of CDMS_CODE_FM_28JAN2017 by
Diff: COM_MNG_TMTC.h
- Revision:
- 338:d63eb331a67d
- Parent:
- 330:6ac9661f2e10
- Child:
- 342:77b0d59897f7
- Child:
- 344:1675dbde0bae
--- a/COM_MNG_TMTC.h Sun Jan 01 09:50:36 2017 +0000 +++ b/COM_MNG_TMTC.h Mon Jan 02 14:21:44 2017 +0000 @@ -17,6 +17,8 @@ #ifndef COM_MNG_TMTC_H // To make sure you don't declare the function more than once by including the header multiple times. #define COM_MNG_TMTC_H +#include "dmaSPIslave.h" + #define RESET_CDMS NVIC_SystemReset() @@ -1406,6 +1408,7 @@ /*gPC.puts("iNSIDE EXECUTE_TC\r\n")*/;\ /*gPC.printf("%u\r\n", gTOTAL_VALID_TC);*/\ for(uint8_t execute_psc = PSC_START_VALUE ; execute_psc < gTOTAL_VALID_TC ; ++execute_psc ){\ + /*wait(10)*/;\ if (DEBUG)\ gPC.printf("executing normal %u\r\n", execute_psc);\ /*gLEDG = !gLEDG;*/\ @@ -1647,6 +1650,7 @@ COM_POWER_OFF_TX;\ reset_all;\ /*ENABLE THREADS*/\ + resume_pl_dma = 1;\ /*gPAY_SPI->bulkRead_resume(&payload_isr_fun)*/;\ HK_counter->start(10000);\ gSESSION_TIMEOUT.detach();\