30 lines
409 B
C
30 lines
409 B
C
/*
|
|
* Copyright (c) 2020 Peter Johanson
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <zephyr.h>
|
|
#include <device.h>
|
|
#include <devicetree.h>
|
|
|
|
#include "zmk.h"
|
|
#include "kscan.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)
|
|
{
|
|
return;
|
|
}
|
|
|
|
if (zmk_endpoints_init())
|
|
{
|
|
return;
|
|
}
|
|
}
|