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/usb/main_usb.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/usb/main_usb.c')
-rw-r--r-- | tmk_core/protocol/arm_atsam/usb/main_usb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tmk_core/protocol/arm_atsam/usb/main_usb.c b/tmk_core/protocol/arm_atsam/usb/main_usb.c index 82ab123fd0..24630d9492 100644 --- a/tmk_core/protocol/arm_atsam/usb/main_usb.c +++ b/tmk_core/protocol/arm_atsam/usb/main_usb.c @@ -18,6 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "samd51j18a.h" #include "conf_usb.h" #include "udd.h" +#ifdef RAW +#include "raw_hid.h" +#endif uint8_t keyboard_protocol = 1; @@ -89,4 +92,8 @@ bool main_raw_enable(void) { } void main_raw_disable(void) { main_b_raw_enable = false; } + +void main_raw_receive(uint8_t *buffer, uint8_t len) { + raw_hid_receive(buffer, len); +} #endif |