zmk_mf68/src/main.c

28 lines
429 B
C
Raw Normal View History

2020-04-22 06:20:34 +10:00
/*
2020-05-02 09:14:18 +10:00
* Copyright (c) 2020 Peter Johanson
2020-04-22 06:20:34 +10:00
*
2020-05-02 09:14:18 +10:00
* SPDX-License-Identifier: MIT
2020-04-22 06:20:34 +10:00
*/
#include <zephyr.h>
#include <device.h>
#include <devicetree.h>
2020-05-02 09:14:18 +10:00
#include "kscan.h"
#include "usb_hid.h"
2020-04-22 06:20:34 +10:00
void main(void)
{
printk("Welcome to ZMK!\n");
2020-04-22 06:20:34 +10:00
if (zmk_kscan_init(CONFIG_KSCAN_MATRIX_DEV_NAME) != 0) {
printk("Keyboard Scan Init Failed\n");
return;
}
if (zmk_usb_hid_init() < 0) {
printk("USB HID Init Failed\n");
return;
}
2020-04-22 06:20:34 +10:00
}