Move KEYMAP definition to common

This commit is contained in:
Jeremy Soller
2020-09-30 20:11:24 -06:00
committed by Jeremy Soller
parent c2125aa99c
commit fc2c3511d2
9 changed files with 73 additions and 98 deletions

View File

@@ -5,9 +5,16 @@
#include <stdint.h>
#if defined(KM_LAY) && defined(KM_OUT) && defined(KM_IN)
extern uint16_t __xdata KEYMAP[KM_LAY][KM_OUT][KM_IN];
#endif
// Translate a keycode from PS/2 set 2 to PS/2 set 1
uint16_t keymap_translate(uint16_t key);
// Helper definition for empty key
#define ___ 0
// Key types
#define KT_MASK (0xF000)