Get *basic* USB report sending working.

This commit is contained in:
Pete Johanson
2020-05-05 16:09:05 -04:00
parent fe961d54a3
commit a63a773983
8 changed files with 126 additions and 11 deletions

14
src/usb_hid.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef ZMK_USB_HID
#define ZMK_USB_HID
#include <usb/usb_device.h>
#include <usb/class/usb_hid.h>
int zmk_usb_hid_init();
// TODO: Modifiers!
int zmk_usb_hid_press_key(enum hid_kbd_code code);
int zmk_usb_hid_release_key(enum hid_kbd_code code);
#endif