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_PL_Working by
Diff: DefinitionsAndGlobals.h
- Revision:
- 101:bece931236a2
- Parent:
- 93:4d76de54a699
- Child:
- 103:b55559925dc1
- Child:
- 109:78f2912e3473
--- a/DefinitionsAndGlobals.h Tue Jan 26 12:37:17 2016 +0000
+++ b/DefinitionsAndGlobals.h Tue Jan 26 13:15:01 2016 +0000
@@ -106,8 +106,13 @@
#define OBOSC_SUB_REP_LE 0x0F
#define OBOSC_SUB_RESET 0x07
-// PAYLOAD
- #define PAYLOAD_BUFFER_LENGTH 2190
+// PAYLOAD or SCIENCE
+ #define PAYLOAD_BUFFER_LENGTH 6723
+ #define PAY_SPI_MOSI D11
+ #define PAY_SPI_MISO D12
+ #define PAY_SPI_CLK D13
+ #define PAY_SPI_CS D10
+
// ****************GLOBAL VARIABLES******************
// DEBUG
@@ -156,8 +161,9 @@
uint8_t gLAST_TM[TM_LONG_SIZE];
uint8_t gLAST_TM_SHORT_OR_LONG = SHORT_TM_CODE;
-// SCIENCE_THREAD
+// PAYLOAD OR SCIENCE_THREAD
Thread* gSCIENCE_THREAD = NULL;
+dmaSPISlave gPAY_SPI(PAY_SPI_MOSI, PAY_SPI_MISO, PAY_SPI_CLK, PAY_SPI_CS);
uint8_t gPAYLOAD_BUFFER[PAYLOAD_BUFFER_LENGTH];
// CALL SIGN TM
