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
main.h
- Committer:
- hillkim7
- Date:
- 2015-07-03
- Revision:
- 3:df8a882e33a6
- Parent:
- 0:2ffd10976643
File content as of revision 3:df8a882e33a6:
/** * @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);