aboutsummaryrefslogtreecommitdiff
path: root/common/eeconfig.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-03-11 15:10:56 +0900
committertmk <nobody@nowhere>2013-03-11 15:10:56 +0900
commitd055e0633e36e97802d60554f6002e47021ba5fd (patch)
treed129174dd33232723fbd60795ccb5132701ad51f /common/eeconfig.h
parent1d5bbb55f28eb2e9eff0543753b8cb85f3b94282 (diff)
downloadqmk_firmware-d055e0633e36e97802d60554f6002e47021ba5fd.tar.gz
qmk_firmware-d055e0633e36e97802d60554f6002e47021ba5fd.zip
Fix debug parameter setting in eeconfig
Diffstat (limited to 'common/eeconfig.h')
-rw-r--r--common/eeconfig.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/common/eeconfig.h b/common/eeconfig.h
index 2786995a2..3e195478b 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/>.
20 20
21#include <stdint.h> 21#include <stdint.h>
22 22
23#ifndef EECONFIG_IS_ENABLED
24#define EECONFIG_IS_ENABLED() true
25#endif
26
23#define EECONFIG_MAGIC_NUMBER (uint16_t)0xFEED 27#define EECONFIG_MAGIC_NUMBER (uint16_t)0xFEED
24 28
25/* eeprom parameteter address */ 29/* eeprom parameteter address */
@@ -61,10 +65,14 @@ typedef union {
61 }; 65 };
62} keyconf; 66} keyconf;
63 67
64bool eeconfig_initialized(void); 68bool eeconfig_is_enabled(void);
65 69
66void eeconfig_init(void); 70void eeconfig_init(void);
67 71
72void eeconfig_enable(void);
73
74void eeconfig_disable(void);
75
68uint8_t eeconfig_read_debug(void); 76uint8_t eeconfig_read_debug(void);
69void eeconfig_write_debug(uint8_t val); 77void eeconfig_write_debug(uint8_t val);
70 78