diff options
| author | Franklin Wei <frankhwei536@gmail.com> | 2016-06-13 17:51:47 -0400 |
|---|---|---|
| committer | Franklin Wei <frankhwei536@gmail.com> | 2016-06-13 17:53:00 -0400 |
| commit | 6cf15b3627fec293d8801223175f50ae747fed45 (patch) | |
| tree | 4c2cf7dc0d7e2bcd01d48e5e0befce2e4430ce31 /firmware/usbstack | |
| parent | 8d915599d9af815973ab16990cadea82ae2db0c6 (diff) | |
| download | rockbox-6cf15b3627fec293d8801223175f50ae747fed45.zip rockbox-6cf15b3627fec293d8801223175f50ae747fed45.tar.gz rockbox-6cf15b3627fec293d8801223175f50ae747fed45.tar.bz2 rockbox-6cf15b3627fec293d8801223175f50ae747fed45.tar.xz | |
OTP plugin: add typing code over USB
* some code by pamaury
Change-Id: Ie333e429364124fda312e1da01730fe516adffa5
Diffstat (limited to 'firmware/usbstack')
| -rw-r--r-- | firmware/usbstack/usb_hid.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/usbstack/usb_hid.h b/firmware/usbstack/usb_hid.h index 917992c..f004d33 100644 --- a/firmware/usbstack/usb_hid.h +++ b/firmware/usbstack/usb_hid.h @@ -35,6 +35,9 @@ void usb_hid_transfer_complete(int ep, int dir, int status, int length); bool usb_hid_control_request(struct usb_ctrlrequest* req, unsigned char* dest); void usb_hid_send(usage_page_t usage_page, int id); +/* return led bitmap: bit 0 is num lock, 1 is caps lock, 2 is scroll lock, + * 3 is compose, 4 is kana */ +uint8_t usb_hid_leds(void); #endif |