summaryrefslogtreecommitdiff
path: root/src/keymap.h
blob: 1fa606f40519b500dd69f9df9bee52d20a41f11a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef ZMK_KEYMAP_H
#define ZMK_KEYMAP_H

#include <devicetree.h>
#include <usb/usb_device.h>
#include <usb/class/usb_hid.h>

#include "zmk.h"

#define ZMK_KEYMAP_NODE DT_CHOSEN(zmk_keymap)
#define ZMK_KEYMAP_LAYERS_LEN DT_PROP_LEN(ZMK_KEYMAP_NODE,layers)


enum hid_kbd_code zmk_keymap_keycode_from_position(u32_t row, u32_t column);

#endif