Typical controller demo program based on Seeed Arch Max. Features: - Multi-thread architecture - Inter-thread message communication - Independent command shell using thread - HTTPD with CGI, WS, RPC - Key & value pair configuration load/save

Dependencies:   CMDB EthernetInterface HTTPD dconfig mbed-rpc mbed-rtos mbed storage_on_flash

Revision:
0:2ffd10976643
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.h	Wed Mar 25 21:56:51 2015 +0000
@@ -0,0 +1,38 @@
+/**
+ * @file main.h
+ *
+ * @brief message and interface for main task.
+ *
+ */
+#pragma once
+
+#include <stdint.h>
+#include "MainConfig.h"
+
+/**
+ * Command Message ID of main task.
+ */
+typedef enum {
+    MSG_IFUP,		/// Start Ethernet
+    MSG_IFDOWN, 	/// Stop Ethernet
+    MSG_IFSTAT, 	/// Print Ethernet status
+} MainMessageId;
+
+typedef struct {
+    MainMessageId	msg_id;
+    uint32_t		msg_p1;
+    uint32_t		msg_p2;
+} MainMessage_t;
+
+
+/**
+ * Global configuration instance.
+ */
+extern MainConfig _config;
+
+/**
+ * Send message to main task.
+ */
+bool send_main_message(MainMessageId msg_id, uint32_t msg_p1, uint32_t msg_p2);
+
+