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