From 89a675d57c14b3980ba73198b692d6fb5a62f105 Mon Sep 17 00:00:00 2001 From: Takuya Urakawa Date: Tue, 31 Mar 2020 05:15:05 +0900 Subject: add hid_raw feature to VUSB (#8380) * rewrite usbhid feature on vusb * Apply suggestions from code review Co-Authored-By: Ryan * fix typo * fix typo again * Update tmk_core/protocol/vusb/vusb.c Co-Authored-By: Ryan * clean up defines Co-authored-by: Ryan --- tmk_core/protocol/vusb/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tmk_core/protocol/vusb/main.c') 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 } } } -- cgit v1.2.3