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: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: inc/global.h
- Revision:
- 282:2dc06137f1ec
- Parent:
- 279:b60379a9eb1a
- Child:
- 283:a09013615589
diff -r a362a9450b81 -r 2dc06137f1ec inc/global.h
--- a/inc/global.h Wed Oct 26 21:26:52 2016 +0000
+++ b/inc/global.h Thu Oct 27 21:44:25 2016 +0000
@@ -55,12 +55,21 @@
CONTROL_FAILSAFE = 6
} Control_t;
+typedef enum thread_name_tag {
+ ANALYTICS_LOGGER = 0,
+ BLE_HANDLER = 1,
+ CLOUD_DATA_HANDLER = 2,
+ CONFIG_HANDLER = 3,
+ CONTROL_TASK = 4,
+ OUTPUT_TASK = 5,
+} ThreadName_t;
+
// message data type
typedef struct message_tag {
Action_t action;
Control_t control;
- char controlFile[128];
+ char controlFile[64];
} Message_t;
typedef enum {
@@ -98,8 +107,16 @@
char reply[500];
} BLEHandlerReq_t;
+// message data type
+typedef struct modbus_master_tag {
+ Action_t action;
+ Control_t control;
+ ThreadName_t replyThread;
+ char controlFile[128];
+} ModbusMasterReq_t;
+
extern Mail<Message_t, 16> MailBox;
-extern Mail<Message_t, 16> ModbusMasterMailBox;
+extern Mail<ModbusMasterReq_t, 16> ModbusMasterMailBox;
extern Mail<OutputControlMsg_t, 16> OutputMasterMailBox;
extern Mail<BLEHandlerReq_t, 1> BLEHandlerMailBox;
