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: adf.h
- Revision:
- 20:0e856afd1cf1
- Parent:
- 19:27e5f2edaf26
- Child:
- 25:60964ad4f13b
--- a/adf.h Fri Jan 01 08:55:38 2016 +0000
+++ b/adf.h Fri Jan 01 16:49:16 2016 +0000
@@ -455,7 +455,6 @@
spi.write(0xFF);\
gCS_ADF=1;\
SPI_mutex.unlock();\
- gPC.puts("entg tick\r\n");\
}
@@ -530,17 +529,27 @@
configure_adf;\
signal = COM_MNG_TMTC_SIGNAL_ADF_NSD;\
send_data;\
- gPC.puts("before while loop\r\n");\
while(loop_on){\
wait_ms(COM_TX_TICKER_LIMIT);\
- ADF_off = true;\
- finish_write_data = true;\
gLEDG = 0;\
if(IRQ){\
- gPC.puts("Yeah");\
- ADF_off = true;\
- finish_write_data = true;\
- break;\
+ if(finish_write_data){\
+ if(ADF_off){\
+ SPI_mutex.lock();\
+ gCS_ADF=0;\
+ spi.write(0xB1);\
+ gCS_ADF=1;\
+ SPI_mutex.unlock();\
+ loop_on = false;\
+ gPC.puts("Transmission done\r\n");\
+ }\
+ else{\
+ ADF_off = true;\
+ }\
+ }else{\
+ write_data;\
+ snd_tm.transmit_data(buffer_112,&last_buffer);\
+ }\
}\
gLEDR = 1;\
}\
@@ -587,4 +596,4 @@
// else{
// gPC.puts("ADF non responsive\r\n");
// break;
-// }
\ No newline at end of file
+// }
