mbed_controller / Mbed 2 deprecated mbed_controller_demo

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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MainConfig.h Source File

MainConfig.h

Go to the documentation of this file.
00001 /**
00002  * @file MainConfig.h
00003  *
00004  * @brief main configuration
00005  *
00006  */
00007 #pragma once
00008 
00009 #include "dconfig.h"
00010 #include "mbed.h"
00011 #include "rtos.h"
00012 
00013 
00014 class MainConfig : public DConfig
00015 {
00016 public:
00017     virtual void reset_default(void);
00018 
00019     bool load_config();
00020     bool save_config();
00021 
00022     void lock_config() {
00023         mutex_.lock(osWaitForever);
00024     }
00025 
00026     void unlock_config() {
00027         mutex_.unlock();
00028     }
00029 
00030 protected:
00031     Mutex mutex_;
00032 };
00033 
00034 
00035 
00036