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

Committer:
hillkim7
Date:
Fri Jul 03 11:53:23 2015 +0000
Revision:
3:df8a882e33a6
Parent:
0:2ffd10976643
Fix stack overflow problem in console task.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hillkim7 0:2ffd10976643 1 /**
hillkim7 0:2ffd10976643 2 * @file MainConfig.h
hillkim7 0:2ffd10976643 3 *
hillkim7 0:2ffd10976643 4 * @brief main configuration
hillkim7 0:2ffd10976643 5 *
hillkim7 0:2ffd10976643 6 */
hillkim7 0:2ffd10976643 7 #pragma once
hillkim7 0:2ffd10976643 8
hillkim7 0:2ffd10976643 9 #include "dconfig.h"
hillkim7 0:2ffd10976643 10 #include "mbed.h"
hillkim7 0:2ffd10976643 11 #include "rtos.h"
hillkim7 0:2ffd10976643 12
hillkim7 0:2ffd10976643 13
hillkim7 0:2ffd10976643 14 class MainConfig : public DConfig
hillkim7 0:2ffd10976643 15 {
hillkim7 0:2ffd10976643 16 public:
hillkim7 0:2ffd10976643 17 virtual void reset_default(void);
hillkim7 0:2ffd10976643 18
hillkim7 0:2ffd10976643 19 bool load_config();
hillkim7 0:2ffd10976643 20 bool save_config();
hillkim7 0:2ffd10976643 21
hillkim7 0:2ffd10976643 22 void lock_config() {
hillkim7 0:2ffd10976643 23 mutex_.lock(osWaitForever);
hillkim7 0:2ffd10976643 24 }
hillkim7 0:2ffd10976643 25
hillkim7 0:2ffd10976643 26 void unlock_config() {
hillkim7 0:2ffd10976643 27 mutex_.unlock();
hillkim7 0:2ffd10976643 28 }
hillkim7 0:2ffd10976643 29
hillkim7 0:2ffd10976643 30 protected:
hillkim7 0:2ffd10976643 31 Mutex mutex_;
hillkim7 0:2ffd10976643 32 };
hillkim7 0:2ffd10976643 33
hillkim7 0:2ffd10976643 34
hillkim7 0:2ffd10976643 35
hillkim7 0:2ffd10976643 36