Browse Source
* 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.xmkb
Pete Johanson
5 years ago
26 changed files with 109 additions and 64 deletions
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
{ |
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558 |
||||
// for the documentation about the tasks.json format |
||||
"version": "2.0.0", |
||||
"tasks": [ |
||||
{ |
||||
"label": "Build", |
||||
"type": "shell", |
||||
"command": "west build", |
||||
"group": { |
||||
"kind": "build", |
||||
"isDefault": true |
||||
} |
||||
}, |
||||
{ |
||||
"label": "Flash", |
||||
"type": "shell", |
||||
"command": "west flash", |
||||
"group": "test" |
||||
}, |
||||
{ |
||||
"label": "Debug", |
||||
"type": "shell", |
||||
"command": "west debug", |
||||
"group": "test" |
||||
} |
||||
] |
||||
} |
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
|
||||
#include <zmk/keys.h> |
||||
|
||||
bool zmk_handle_key_user(struct zmk_key_event *key_event) |
||||
{ |
||||
return true; |
||||
}; |
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
|
||||
#pragma once |
||||
|
||||
#include <zmk/keys.h> |
||||
|
||||
int zmk_ble_init(); |
||||
bool zmk_ble_handle_key_user(struct zmk_key_event *key_event); |
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
||||
#pragma once |
||||
|
||||
#include "keys.h" |
||||
#include <zmk/keys.h> |
||||
|
||||
int zmk_endpoints_init(); |
||||
int zmk_endpoints_send_key_event(struct zmk_key_event key_event); |
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
|
||||
#pragma once |
||||
|
||||
#include <zmk/keys.h> |
||||
#include <zmk/hid.h> |
||||
|
||||
int zmk_hog_init(); |
||||
|
||||
int zmk_hog_send_report(struct zmk_hid_report *report); |
@ -1,8 +1,6 @@
@@ -1,8 +1,6 @@
|
||||
#ifndef ZMK_H |
||||
#define ZMK_H |
||||
#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) |
||||
|
||||
#endif |
@ -1,5 +0,0 @@
@@ -1,5 +0,0 @@
|
||||
|
||||
#pragma once |
||||
|
||||
int zmk_ble_init(); |
||||
bool zmk_ble_handle_key_user(struct zmk_key_event *key_event); |
@ -1,9 +0,0 @@
@@ -1,9 +0,0 @@
|
||||
|
||||
#pragma once |
||||
|
||||
#include "keys.h" |
||||
#include "hid.h" |
||||
|
||||
int zmk_hog_init(); |
||||
|
||||
int zmk_hog_send_report(struct zmk_hid_report *report); |
Loading…
Reference in new issue