From c1905745b3578037d1791bd634a3d1607cafd525 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Mon, 18 May 2020 09:11:46 -0400 Subject: Refactor build/config/keymaps. * Move all headers to `include/zmk` directory. * Update includes to reference them properly. * Add `keymap.c` file from keymap, if found. * Toplevel CONFIG_ZMK_BLE aggregate config setting. --- include/zmk/keymap.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/zmk/keymap.h (limited to 'include/zmk/keymap.h') diff --git a/include/zmk/keymap.h b/include/zmk/keymap.h new file mode 100644 index 0000000..9b58cc0 --- /dev/null +++ b/include/zmk/keymap.h @@ -0,0 +1,18 @@ +#pragma once + +#include +#include +#include +#include + +#include +#include + +#define ZMK_KEYMAP_NODE DT_CHOSEN(zmk_keymap) +#define ZMK_KEYMAP_LAYERS_LEN DT_PROP_LEN(ZMK_KEYMAP_NODE, layers) + +bool zmk_keymap_layer_activate(u8_t layer); +bool zmk_keymap_layer_deactivate(u8_t layer); + +zmk_key +zmk_keymap_keycode_from_position(u32_t row, u32_t column); -- cgit v1.2.3