]> git.donarmstrong.com Git - qmk_firmware.git/commit
Add a custom USB driver for ARM (#2750)
authorfredizzimo <fsundvik@gmail.com>
Mon, 16 Apr 2018 00:42:53 +0000 (03:42 +0300)
committerJack Humbert <jack.humb@gmail.com>
Mon, 16 Apr 2018 00:42:53 +0000 (20:42 -0400)
commite9d32b60b7f103cda42a19c5216e65b7b64ce9eb
treea954db818d58a86ee5bb4189568de82a453b11e8
parente2fb3079c7168ba109dfeeec20931ad75870186a
Add a custom USB driver for ARM (#2750)

* Copy Chibios serial_usb_driver into the chibios/protocol

It's renamed to usb_driver to avoid name conflicts

* Make the usb driver compile

* Disable ChibiOS serial usb driver for all keyboards

* Change usb_main to use QMKUSBDriver

* Initialize the usb driver buffers

* Add support for fixed size queues

* Fix USB driver initialization

* Don't transfer an empty packet for fixed size streams
13 files changed:
keyboards/chibios_test/stm32_f072_onekey/halconf.h
keyboards/chibios_test/stm32_f103_onekey/halconf.h
keyboards/chibios_test/teensy_lc_onekey/halconf.h
keyboards/clueboard/60/halconf.h
keyboards/ergodox_infinity/halconf.h
keyboards/infinity60/halconf.h
keyboards/jm60/halconf.h
keyboards/k_type/halconf.h
keyboards/whitefox/halconf.h
tmk_core/protocol/chibios.mk
tmk_core/protocol/chibios/usb_driver.c [new file with mode: 0644]
tmk_core/protocol/chibios/usb_driver.h [new file with mode: 0644]
tmk_core/protocol/chibios/usb_main.c