1
0

Change ledmap code definition

This commit is contained in:
Kai Ryu 2014-08-03 11:27:54 +09:00
parent 44651f4192
commit 9c61e8e4f6
2 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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);