diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-05-18 09:11:46 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-05-18 09:11:46 -0400 |
commit | c1905745b3578037d1791bd634a3d1607cafd525 (patch) | |
tree | 6c16a1fd7b1a7602470950cbf46e0dc353c4f329 /include/zmk/matrix.h | |
parent | b3babe2505fe4542e18967d90ccfc2783943243f (diff) |
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.
Diffstat (limited to 'include/zmk/matrix.h')
-rw-r--r-- | include/zmk/matrix.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/zmk/matrix.h b/include/zmk/matrix.h new file mode 100644 index 0000000..83a8e2d --- /dev/null +++ b/include/zmk/matrix.h @@ -0,0 +1,6 @@ +#pragma once + +#define ZMK_MATRIX_NODE_ID DT_CHOSEN(zmk_kscan) +#define ZMK_MATRIX_ROWS DT_PROP_LEN(ZMK_MATRIX_NODE_ID,row_gpios) +#define ZMK_MATRIX_COLS DT_PROP_LEN(ZMK_MATRIX_NODE_ID,col_gpios) + |