diff options
author | foxx1337 <foxx1337@yahoo.com> | 2020-03-26 03:34:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 02:34:57 +0000 |
commit | 96bfce70009ac15f21e440fd3894e6c11e1b7615 (patch) | |
tree | c9450b02e7b3fa8971d93007290b90d394663718 /tmk_core/protocol/arm_atsam/main_arm_atsam.c | |
parent | d68c4d810634f5ffcb29c38d57b16bc72faf45dc (diff) |
Add RawHID support to ATSAM (Massdrop boards) (#8530)
* Add support for RAW endpoint for arm_atsam
This the excellent work from helluvamatt/qmk_firmware in bb6eeb93b.
* Reformat arm_atsam RAW endpoint code
Co-authored-by: Matt Schneeberger <helluvamatt@gmail.com>
Diffstat (limited to 'tmk_core/protocol/arm_atsam/main_arm_atsam.c')
-rw-r--r-- | tmk_core/protocol/arm_atsam/main_arm_atsam.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tmk_core/protocol/arm_atsam/main_arm_atsam.c b/tmk_core/protocol/arm_atsam/main_arm_atsam.c index e952a427ef..93f34d9c3b 100644 --- a/tmk_core/protocol/arm_atsam/main_arm_atsam.c +++ b/tmk_core/protocol/arm_atsam/main_arm_atsam.c @@ -206,10 +206,19 @@ void main_subtask_usb_extra_device(void) { } } +#ifdef RAW_ENABLE +void main_subtask_raw(void) { + udi_hid_raw_receive_report(); +} +#endif + void main_subtasks(void) { main_subtask_usb_state(); main_subtask_power_check(); main_subtask_usb_extra_device(); +#ifdef RAW_ENABLE + main_subtask_raw(); +#endif } int main(void) { |