diff options
author | tmk <nobody@nowhere> | 2013-03-11 15:10:56 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-03-11 15:10:56 +0900 |
commit | d055e0633e36e97802d60554f6002e47021ba5fd (patch) | |
tree | d129174dd33232723fbd60795ccb5132701ad51f /common/eeconfig.h | |
parent | 1d5bbb55f28eb2e9eff0543753b8cb85f3b94282 (diff) |
Fix debug parameter setting in eeconfig
Diffstat (limited to 'common/eeconfig.h')
-rw-r--r-- | common/eeconfig.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/common/eeconfig.h b/common/eeconfig.h index 2786995a29..3e195478b5 100644 --- a/common/eeconfig.h +++ b/common/eeconfig.h @@ -20,6 +20,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include <stdint.h> +#ifndef EECONFIG_IS_ENABLED +#define EECONFIG_IS_ENABLED() true +#endif + #define EECONFIG_MAGIC_NUMBER (uint16_t)0xFEED /* eeprom parameteter address */ @@ -61,10 +65,14 @@ typedef union { }; } keyconf; -bool eeconfig_initialized(void); +bool eeconfig_is_enabled(void); void eeconfig_init(void); +void eeconfig_enable(void); + +void eeconfig_disable(void); + uint8_t eeconfig_read_debug(void); void eeconfig_write_debug(uint8_t val); |