Robert Fisk
1277532140
Implement read/write indication on the fault LEDs
...
Conflicts:
Downstream/Inc/build_config.h
Downstream/Src/downstream_msc.c
Downstream/Src/led.c
Upstream/Inc/build_config.h
Upstream/Src/led.c
5 years ago
Robert Fisk
9e4225fe36
Poll mass storage for disconnection while suspended - fix for Windows
...
'safely remove' function.
5 years ago
Robert Fisk
16e964702a
Implemented Stop/Eject command passthrough
...
Conflicts:
Downstream/.cproject
Downstream/Inc/downstream_interface_def.h
Downstream/Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Src/usbh_msc.c
Downstream/Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Src/usbh_msc_scsi.c
Downstream/Src/downstream_msc.c
Upstream/Inc/upstream_interface_def.h
Upstream/Inc/upstream_msc.h
Upstream/Middlewares/ST/STM32_USB_Device_Library/Class/MSC/Src/usbd_msc_scsi.c
Upstream/Src/upstream_msc.c
5 years ago
Robert Fisk
7037aa6052
Better support for multi-interface HID: Logitech unifying receivers
...
- Select mouse interface first
- Correctly specify active interface when retrieving HID descriptors
7 years ago
Robert Fisk
688f2e673c
Support HID mouse reports with an ID header (Lenovo)
7 years ago
Robert Fisk
bd40794d50
HID BotDetect functionality debugged and working:
...
- Implement advanced LED flash support
- Tweak HAL_SPI_TransmitReceive to tolerate a longer SysTick interrupt
- Tune KEYBOARD_BOTDETECT parameters
- L-shift and R-shift are now high-speed alphanumeric keys
7 years ago
Robert Fisk
19f91b391d
Build options complete & tested:
...
- Implement SCSI WP flag in mode parameter header
- Refactor #ifdef names
- #ifdef out more HID code
7 years ago
Robert Fisk
5c9dde896c
Implemented optional build for mass storage, keyboard, and mouse
...
features.
Conflicts:
Upstream/.settings/language.settings.xml
7 years ago
Robert Fisk
000841f6e8
Refactor and improve HID report item parsing
8 years ago
Robert Fisk
408c84ac00
Correctly parse HID report descriptor items with unusual lengths.
...
Thanks Logitech.
8 years ago
Robert Fisk
1f144d6cab
Bugfixes for keyboard support: works!!!
8 years ago
Robert Fisk
e78c526cb8
Keyboard support implemented, but not tested
8 years ago
Robert Fisk
34b152cce9
Incomplete and untested implementation of keyboard support
...
Conflicts:
Upstream/Upstream Debug.launch
8 years ago
Robert Fisk
655b0e56a8
Support disconnect/reconnect of attached HID device
9 years ago
Robert Fisk
056932d6bc
HID report parser now handles collections.
9 years ago
Robert Fisk
35d54056c4
Implemented HID report parser. Untested!
9 years ago
Robert Fisk
b2d9b6fced
Restructure & bugfix Upstream HID. Still some issue with Downstream...
9 years ago
Robert Fisk
b950c3173e
Upstream HID bugfixes.
9 years ago
Robert Fisk
31b434131a
Downstream HID SPI interface done, untested.
9 years ago
Robert Fisk
e9ffbe2748
Downstream mouse support working!
9 years ago
Robert Fisk
b0558e0eec
Work on Downstream HID support. Also a bunch of random tweaks.
9 years ago
Robert Fisk
cb6a861341
Implement flash write lockout by spamming the unlock register, then
...
checking that the correct unlock sequence fails.
9 years ago
Robert Fisk
1262c5337a
All tabs to spaces
9 years ago
Robert Fisk
21de622469
Added hardware check on bootup: fault LED will light if Upstream
...
firmware is placed on Downstream hardware or vice versa.
9 years ago
Robert Fisk
2983da24b2
Changed Upstream and Downstream SPI transfers back to DMA. DMA works
...
correctly now, either because SPI is in 16-bit mode, or because I found
all the other bugs!
Doubled SPI baudrate to 10.5Mbps. Transfer speed now limited (again) by
Downstream's lack of FIFO buffering in the USB host controller.
Also disabled DMA transaction half-complete interrupt in
stm32f4xx_hal_dma.c, as it wasn't doing anything useful.
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
08c8c7a6d6
Code tidyup - remove unused SPI Tx-only and Rx-only routines
9 years ago
Robert Fisk
b9cc31d036
Crazy hardware issues, about to revert Upstream SPI from DMA to
...
interrupt transfers
9 years ago
Robert Fisk
48a6c2e2a4
Bugfixes for Downstream, including one in the USB host stack!
...
Downstream now enumerates and accepts attached USB storage devices.
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
f24714cd8c
Revisit Upstream project to:
...
- Implement Upstream state machine, with Downstream-dependent device
emulation
- Add fault LED flashing
- Improve fault handling and freakouts
- Misc bug fixes
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
Robert Fisk
7b4e4b3c14
Continued polishing work on Downstream project.
9 years ago
Robert Fisk
503d79de56
Streamlining Downstream project
9 years ago
Robert Fisk
55c8a21aad
Initial commit of Downstream template project.
9 years ago