]> git.donarmstrong.com Git - kiibohd-controller.git/commit
Adding auto-restart support whenever USB gets into an odd state
authorJacob Alexander <haata@kiibohd.com>
Fri, 27 May 2016 08:21:57 +0000 (01:21 -0700)
committerJacob Alexander <haata@kiibohd.com>
Fri, 27 May 2016 08:26:04 +0000 (01:26 -0700)
commit92b3b5081b4143f2321b08ca52aa40bb61b13059
tree4300eef3add8154dfbbfb7e1bf22fc4787e662e1
parent9a7364b14a8f60aa291bce0b3288b212672ea7b0
Adding auto-restart support whenever USB gets into an odd state

- Somewhat aggresive, may cause restarts if the keyboard/OS hasn't fully intialized the keyboard
- Added GET_IDLE handling and correct usage of SET_IDLE
- Initial implementation of idle send, commented out as it causes issues on Mac OSX for sleeping
  (keyboard has been working without it)
- MacOSX seems to have some sort of data corruption on the USB link, not sure why (other OSs have no issues)
- Cleaned up some code
- Added a longer sleep after the resume sequence to prevent possible issues sending keys too soon
  (may need to be increased more)

Ipad support now seems flaky, though Mac, Windows seems solid.
Init sequence on Linux seems slow, even though there are no errors.
Output/pjrcUSB/arm/usb_dev.c
Output/pjrcUSB/arm/usb_dev.h
Output/pjrcUSB/arm/usb_keyboard.c
Output/pjrcUSB/output_com.c
Output/pjrcUSB/output_com.h
Output/usbMuxUart/output_com.c