Robert Fisk
650d10f22c
Support disconnect/reconnect of attached HID device
9 years ago
Robert Fisk
a5f4e52e02
More work on enumerating cheap POS mice, arrrrgh.
...
Added timeout checks and retry functionality to control transaction
state machine. But some times the device just won't talk, so we flash
the fault LED slowly to give the user some clue about what happened.
9 years ago
Robert Fisk
cda254c8bb
Downstream HID SPI interface done, untested.
9 years ago
Robert Fisk
56e8b99ae5
Downstream mouse support working!
9 years ago
Robert Fisk
e8a445a071
Work on Downstream HID support. Also a bunch of random tweaks.
9 years ago
Robert Fisk
b9c1b23e4b
Supported device classes that fail sanity checks are now reported with a
...
slow 'unsupported device' flash, rather than a fast 'freakout' flash.
9 years ago
Robert Fisk
1262c5337a
All tabs to spaces
9 years ago
Robert Fisk
226e163adf
Improve Downstream error handling:
...
- Slow flash fault LED when unsupported device connected
- Disconnect downstream USB host on error
9 years ago
Robert Fisk
58308c4a89
Added Mozilla Public License information to file headers.
...
Mozilla Public License v2.0 is compatible with the various licenses used
by ST and ARM.
9 years ago
Robert Fisk
ce03845623
Completed moving Upstream to interrupt-based SPI.
...
Although I am not entirely convinced this is necessary, as the SPI data
stall issue only appeared with optimisation off (-O0). Perhaps re-visit
this if Upstream needs more free CPU time later...
9 years ago
Robert Fisk
b9cc31d036
Crazy hardware issues, about to revert Upstream SPI from DMA to
...
interrupt transfers
9 years ago
Robert Fisk
750c2f3a21
- Implement notification of Downstream USB device removal, and
...
corresponding Upstream disconnection
- Improve Upstream handling of TxOk signal from Downstream
- Misc tweaks
9 years ago
Robert Fisk
fc522bae0a
Added priority elevation to Downstream USB host processing code that
...
interacts with SPI.
It elevates to USB_OTG priority to avoid preemption by SPI, DMA, or USB
interrupts thus avoiding synchronisation issues between USB host stack
and SPI interface.
Also minor improvements to Downstream error handling.
9 years ago
Robert Fisk
c1b2c191c4
Improved Downstream error handling:
...
- More sensible handling of error cases on SPI interface
- Improved Freakout macros
- Implemented automatic fault LED blinking
9 years ago
Robert Fisk
0e1fed6047
Full implementation of Downstream MSC interface, including significant
...
modifications to USB host MSC.
Also, minor tweaks to Upstream.
9 years ago
Robert Fisk
b9b6123642
Commit of Downstream before diving into USB MSC class driver
...
modifications.
Also correct project settings to compile for Cortex M4 architecture.
9 years ago
Robert Fisk
674cb621a7
Initial implementation of Downstream SPI interface and state machine.
9 years ago