summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-05-05 16:09:05 -0400
committerPete Johanson <peter@peterjohanson.com>2020-05-05 16:09:05 -0400
commita63a773983e8e575778ba2e3b326b3f2e63ce26e (patch)
treea61249a25554e95062334b72e3f5e6706dcaa1e9 /src/main.c
parentfe961d54a351a793c9037f78a42ae07eddec7d69 (diff)
Get *basic* USB report sending working.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 5ad7ce6..33cf61d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -9,6 +9,7 @@
#include <devicetree.h>
#include "kscan.h"
+#include "usb_hid.h"
void main(void)
{
@@ -18,4 +19,9 @@ void main(void)
printk("Keyboard Scan Init Failed\n");
return;
}
+
+ if (zmk_usb_hid_init() < 0) {
+ printk("USB HID Init Failed\n");
+ return;
+ }
}