diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-10-01 17:18:01 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-10-01 17:18:01 -0400 |
commit | 307a8d09db78b95c858c41bd5549c721da7eb1f8 (patch) | |
tree | 7a037f303009283dd8899451456b42d1a208666d /app/src/usb_hid.c | |
parent | 4f494ac5f9a52738bffe6a5dcebef227a6ffd185 (diff) |
feat(usb): Function to access latest USB status.
* To be leveraged by upcoming power
management work.
Diffstat (limited to 'app/src/usb_hid.c')
-rw-r--r-- | app/src/usb_hid.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/usb_hid.c b/app/src/usb_hid.c index 530ffea..64addae 100644 --- a/app/src/usb_hid.c +++ b/app/src/usb_hid.c @@ -28,6 +28,8 @@ static const struct hid_ops ops = { .int_in_ready = in_ready_cb, }; +enum usb_dc_status_code zmk_usb_hid_get_status() { return usb_status; } + int zmk_usb_hid_send_report(const u8_t *report, size_t len) { switch (usb_status) { case USB_DC_SUSPEND: |