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 eeprom mbed-rtos mbed
Fork of CDMS_QM_03MAR2017_Flash_with_obsrs by
Diff: ThreadsAndFunctions.h
- Revision:
- 352:022c513aee03
- Parent:
- 348:8e6b2b4d244e
- Child:
- 353:e1803e801e20
diff -r a89a46894ec0 -r 022c513aee03 ThreadsAndFunctions.h --- a/ThreadsAndFunctions.h Sun Jan 22 04:47:11 2017 +0000 +++ b/ThreadsAndFunctions.h Mon Feb 06 16:36:46 2017 +0000 @@ -268,6 +268,8 @@ //gPC.puts("P_com_hk !!\r\n"); if( (gFLAGS & COM_PA_HOT_FLAG) || ( gFLAGS & COM_PA_OC_FLAG ) ){ gPC.puts("Pahot or paoc !!\r\n"); + COM_DATA_fromuC_ENAIN = 0; + COM_DATA_fromISO_ENAOUT=0; COM_TX_CNTRL = 0; gCOM_PA_COOLING_TIMEOUT.attach(&after_cooling_pa, COM_PA_COOLING_TIME_LIMIT); gFLAGS = gFLAGS & (~COM_MNG_TMTC_RUNNING_FLAG); @@ -288,7 +290,10 @@ reset_all; gFLAGS = gFLAGS & (~COM_SESSION_VALIDITY); // ENABLE THREADS + HK_counter->start(10000); + + resume_pl_dma = 1; //gPAY_SPI->bulkRead_resume(&payload_isr_fun); gSESSION_TIMEOUT.detach(); @@ -326,6 +331,8 @@ //gPC.puts("\r\n"); COM_POWER_ON_TX(); // PENDING : POWER OFF TX + COM_DATA_fromuC_ENAIN = 0; + COM_DATA_fromISO_ENAOUT=0; COM_TX_CNTRL = 0; RX1M.attach(&rx_read, Serial::RxIrq); gFLAGS = gFLAGS & (~COM_MNG_TMTC_RUNNING_FLAG); @@ -335,6 +342,8 @@ COM_POWER_ON_TX(); // POWER OFF TX transmitter only // WARNING: reset_all ? clear com_session ? + COM_DATA_fromuC_ENAIN = 0; + COM_DATA_fromISO_ENAOUT=0; COM_TX_CNTRL = 0; reset_all; gFLAGS = gFLAGS & (~COM_SESSION_FLAG); @@ -358,6 +367,8 @@ gPC.puts("checking for PA hot in main\r\n"); P_COM_HK; if((gFLAGS & COM_PA_HOT_FLAG) || (gFLAGS & COM_PA_OC_FLAG)){ + COM_DATA_fromuC_ENAIN = 0; + COM_DATA_fromISO_ENAOUT=0; COM_TX_CNTRL = 0; gCOM_PA_COOLING_TIMEOUT.attach(&after_cooling_pa, COM_PA_COOLING_TIME_LIMIT); }