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: CMDB EthernetInterface HTTPD dconfig mbed-rpc mbed-rtos mbed storage_on_flash
MainConfig.h
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
Generated on Tue Jul 12 2022 20:32:58 by
1.7.2