summaryrefslogtreecommitdiffstats
path: root/tmk_core/protocol/vusb/main.c
diff options
context:
space:
mode:
authorTakuya Urakawa <urkwtky@gmail.com>2020-03-31 05:15:05 +0900
committerGitHub <noreply@github.com>2020-03-30 21:15:05 +0100
commit89a675d57c14b3980ba73198b692d6fb5a62f105 (patch)
tree0bbc4da65471d0a489746ab8c359da2a42774225 /tmk_core/protocol/vusb/main.c
parentb892a1429d753d83d179fea26a2c7b84edab840d (diff)
add hid_raw feature to VUSB (#8380)
* rewrite usbhid feature on vusb * Apply suggestions from code review Co-Authored-By: Ryan <fauxpark@gmail.com> * fix typo * fix typo again * Update tmk_core/protocol/vusb/vusb.c Co-Authored-By: Ryan <fauxpark@gmail.com> * clean up defines Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'tmk_core/protocol/vusb/main.c')
-rw-r--r--tmk_core/protocol/vusb/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tmk_core/protocol/vusb/main.c b/tmk_core/protocol/vusb/main.c
index 219989876c..1ab765343b 100644
--- a/tmk_core/protocol/vusb/main.c
+++ b/tmk_core/protocol/vusb/main.c
@@ -108,6 +108,13 @@ int main(void) {
keyboard_task();
}
vusb_transfer_keyboard();
+#ifdef RAW_ENABLE
+ usbPoll();
+
+ if (usbConfiguration && usbInterruptIsReady3()) {
+ raw_hid_task();
+ }
+#endif
}
}
}