From 9c61e8e4f6e6356bcba6a7ee7e05664a5028a9b5 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Sun, 3 Aug 2014 11:27:54 +0900 Subject: [PATCH] Change ledmap code definition --- common/ledmap.h | 14 +++++++------- common/ledmap_in_eeprom.h | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/common/ledmap.h b/common/ledmap.h index bbd15af6..9a6754f3 100644 --- a/common/ledmap.h +++ b/common/ledmap.h @@ -9,17 +9,17 @@ typedef led_pack_t led_state_t; typedef led_pack_t led_binding_t; typedef enum { - LEDMAP_DEFAULT_LAYER_0 = 0, - LEDMAP_DEFAULT_LAYER_31 = 31, - LEDMAP_LAYER_0 = 32, - LEDMAP_LAYER_31 = 63, - LEDMAP_NUM_LOCK = 64, + LEDMAP_NO = 0, + LEDMAP_DEFAULT_LAYER_0, + LEDMAP_DEFAULT_LAYER_31 = LEDMAP_DEFAULT_LAYER_0 + 31, + LEDMAP_LAYER_0, + LEDMAP_LAYER_31 = LEDMAP_LAYER_0 + 31, + LEDMAP_NUM_LOCK, LEDMAP_CAPS_LOCK, LEDMAP_SCROLL_LOCK, LEDMAP_COMPOSE, LEDMAP_KANA, - LEDMAP_BACKLIGHT = 0x80, - LEDMAP_UNCONFIGURED = 0xFF + LEDMAP_BACKLIGHT = 0x80 } ledmap_code_t; #define LEDMAP_MASK 0x7F diff --git a/common/ledmap_in_eeprom.h b/common/ledmap_in_eeprom.h index 588bd81d..3e6400c3 100644 --- a/common/ledmap_in_eeprom.h +++ b/common/ledmap_in_eeprom.h @@ -8,6 +8,8 @@ #define EECONFIG_LEDMAP (uint8_t*)EECONFIG_LEDMAP_IN_EEPROM #define LEDMAP_SIZE (sizeof(uint8_t) * LED_COUNT) +#define LEDMAP_UNCONFIGURED 0xFF + #ifdef LEDMAP_IN_EEPROM_ENABLE #define ledmap_get_code ledmap_in_eeprom_get_code void ledmap_in_eeprom_init(void);