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.
This commit is contained in:
Pete Johanson
2020-05-18 09:11:46 -04:00
parent b3babe2505
commit c1905745b3
26 changed files with 109 additions and 64 deletions

View File

@@ -1,8 +1,7 @@
#include "handlers.h"
#include "ble.h"
#include "endpoints.h"
#include <zmk/ble.h>
#include <zmk/handlers.h>
#include <zmk/endpoints.h>
__attribute__((weak)) bool zmk_handle_key_user(struct zmk_key_event *key_event)
{
@@ -16,10 +15,12 @@ void zmk_handle_key(struct zmk_key_event key_event)
return;
}
#ifdef CONFIG_ZMK_BLE
if (!zmk_ble_handle_key_user(&key_event))
{
return;
}
#endif /* CONFIG_ZMK_BLE */
zmk_endpoints_send_key_event(key_event);
};