diff options
author | patrickmt <40182064+patrickmt@users.noreply.github.com> | 2018-10-09 21:14:13 +0200 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-10-10 19:49:01 +0200 |
commit | ab91e07753720f8114d6c427139a1436e6efa3ce (patch) | |
tree | b2ba658e12b5396726945a6a22cb111013a1544e /tmk_core/protocol/arm_atsam/usb/main_usb.c | |
parent | f2965e1eeaf1769e106145a9d19f102fcd8fe4d4 (diff) | |
download | qmk_firmware-ab91e07753720f8114d6c427139a1436e6efa3ce.tar.gz qmk_firmware-ab91e07753720f8114d6c427139a1436e6efa3ce.tar.xz |
Massdrop keyboards console device support for hid_listen
Added hid_listen USB device for arm_atsam USB protocol.
Debug printing is now done through the console device (CONSOLE_ENABLE = yes) rather than the virtser device, for viewing in hid_listen.
Function dpf(...) renamed to CDC_printf(...) and should now be called directly if intending to print to the virtual serial device.
Diffstat (limited to 'tmk_core/protocol/arm_atsam/usb/main_usb.c')
-rw-r--r-- | tmk_core/protocol/arm_atsam/usb/main_usb.c | 14 |
1 files changed, 14 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 e943cbcdc..0f676ab63 100644 --- a/tmk_core/protocol/arm_atsam/usb/main_usb.c +++ b/tmk_core/protocol/arm_atsam/usb/main_usb.c @@ -88,6 +88,20 @@ void main_exk_disable(void) } #endif +#ifdef CON +volatile bool main_b_con_enable = false; +bool main_con_enable(void) +{ + main_b_con_enable = true; + return true; +} + +void main_con_disable(void) +{ + main_b_con_enable = false; +} +#endif + #ifdef MOU volatile bool main_b_mou_enable = false; bool main_mou_enable(void) |