Move KEYMAP definition to common
This commit is contained in:
committed by
Jeremy Soller
parent
c2125aa99c
commit
fc2c3511d2
@@ -3,9 +3,15 @@
|
||||
#ifndef _BOARD_KEYMAP_H
|
||||
#define _BOARD_KEYMAP_H
|
||||
|
||||
#include <common/keymap.h>
|
||||
// Keymap layers (normal, Fn)
|
||||
#define KM_LAY 2
|
||||
// Keymap output pins
|
||||
#define KM_OUT 16
|
||||
// Keymap input pins
|
||||
#define KM_IN 8
|
||||
|
||||
#define ___ 0
|
||||
// common/keymap.h requires KM_LAY, KM_OUT, and KM_IN definitions
|
||||
#include <common/keymap.h>
|
||||
|
||||
// Conversion of physical layout to keyboard matrix
|
||||
#define LAYOUT( \
|
||||
@@ -35,16 +41,6 @@
|
||||
{ ___, ___, K3C, ___, K61, K0C, ___, K59 } \
|
||||
}
|
||||
|
||||
// Keymap output pins
|
||||
#define KM_OUT 16
|
||||
// Keymap input pins
|
||||
#define KM_IN 8
|
||||
// Keymap layers (normal, Fn)
|
||||
#define KM_LAY 2
|
||||
|
||||
// Keymap
|
||||
extern uint16_t __xdata KEYMAP[KM_LAY][KM_OUT][KM_IN];
|
||||
|
||||
// Position of physical Esc key in the matrix
|
||||
#define MATRIX_ESC_INPUT 7
|
||||
#define MATRIX_ESC_OUTPUT 7
|
||||
|
Reference in New Issue
Block a user