From 583839afce4b8117e3ae7bd644954b03d0ed3ddf Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Sat, 13 Jun 2020 16:37:31 -0400 Subject: Initial refactor to have a shield/board have one default keymap. * Start of work of focusing on out-of-tree user keymaps. Add ZMK_CONFIG support. * General external configuration supported via ZMK_CONFIG, which should point to a configuration directory. * Priority order of overlay files to select. * ${SHIELD}_${BOARD}.overlay * ${SHIELD}.overlay * ${BOARD}.overlay * default.overlay * Equivalent search order for .conf files for initial Kconfig values. --- .../shields/petejohanson_proton_handwire/keymap/include/keymap.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 app/boards/shields/petejohanson_proton_handwire/keymap/include/keymap.h (limited to 'app/boards/shields/petejohanson_proton_handwire/keymap/include') diff --git a/app/boards/shields/petejohanson_proton_handwire/keymap/include/keymap.h b/app/boards/shields/petejohanson_proton_handwire/keymap/include/keymap.h new file mode 100644 index 0000000..0fd2f9f --- /dev/null +++ b/app/boards/shields/petejohanson_proton_handwire/keymap/include/keymap.h @@ -0,0 +1,9 @@ + +#include + +#define DEFAULT 0 +#define RAISE 1 +#define LOWER 2 + +#define CC_RAIS ZC_CSTM(RAISE) +#define CC_LOWR ZC_CSTM(LOWER) -- cgit v1.2.3