Some initial BEL HoG support.

This commit is contained in:
Pete Johanson
2020-05-15 09:41:06 -04:00
parent 04fe57d3a3
commit 73bea6218e
13 changed files with 523 additions and 160 deletions

View File

@@ -10,20 +10,21 @@
#include "zmk.h"
#include "kscan.h"
#include "usb_hid.h"
#include "endpoints.h"
#define ZMK_KSCAN_DEV DT_LABEL(ZMK_MATRIX_NODE_ID)
void main(void)
{
printk("Welcome to ZMK!\n");
if (zmk_kscan_init(ZMK_KSCAN_DEV) != 0) {
printk("Keyboard Scan Init Failed\n");
if (zmk_kscan_init(ZMK_KSCAN_DEV) != 0)
{
return;
}
if (zmk_usb_hid_init() < 0) {
printk("USB HID Init Failed\n");
if (zmk_endpoints_init())
{
return;
}
}