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 CDMS_CODE by
Diff: DefinitionsAndGlobals.h
- Revision:
- 17:6eb9387f1fb8
- Parent:
- 6:79d422d1ed42
--- a/DefinitionsAndGlobals.h Thu Dec 31 18:35:59 2015 +0000
+++ b/DefinitionsAndGlobals.h Fri Jan 01 06:36:18 2016 +0000
@@ -14,6 +14,8 @@
// COM_TX
#define COM_TX_CONFIG_LIMIT 3
+ #define COM_TX_TICKER_TIME 32
+ /*in millisecond*/
// ADF INTERRUPUT
#define ADF_IRQ PTA14
@@ -21,9 +23,8 @@
// TC LIST
#define TCL_STATE_INCOMPLETE 0x00
#define TCL_STATE_ABORTED 0x03
- #define TCL_STATE_EXECUTING 0x04
+ #define TCL_STATE_EXECUTING 0x04
#define TCL_STATE_COMPLETED 0x05
- #define TCL_STATE_EXCEEDED_LIMIT 0x06
// LIST OF FLAGS
#define UART_INT_FLAG 0x0001
@@ -51,7 +52,6 @@
// call sign
#define PSC_CALLSIGN 0x00
- #define APID_CALLSIGN 0x00
// max value of telecommands in a tcl
#define TCL_OVERFLOW_CONSTANT 256
@@ -61,10 +61,15 @@
#define PSC_START_VALUE 1
// APID list
+ #define APID_COM 0
#define APID_BAE 1
#define APID_CDMS 2
#define APID_SPEED 3
+ // SERVICE
+ #define SERVICE_OBOSC 0xB
+ #define SERVICE_OBSRS 0xF
+
// HIGH PRIORITY TC - priority list
// not correct values here
#define HPTC1 5
@@ -131,7 +136,9 @@
Timeout gRX_TIMEOUT;
Timeout gSESSION_TIMEOUT;
-// COM_MNG_TMTC
+// COM_TX
+ // REFER ADF.H FOR IRQ TICKER
+ InterruptIn gIRQ(ADF_IRQ);
// PA cooling timeout
Timeout gCOM_PA_COOLING_TIMEOUT;
