2deea5a646 
								
							
								 
							
						 
						
							
							
								
								Added error band comparison to velocity matching  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								f7b7ce84e7 
								
							
								 
							
						 
						
							
							
								
								Initial implementation of mouse bot detection  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								302bca3690 
								
							
								 
							
						 
						
							
							
								
								Re-implement keyboard bot detection based on timing histograms, rather  
							
							... 
							
							
 
							
							than maximum typing speed. 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								441caf6768 
								
							
								 
							
						 
						
							
							
								
								Tweaks to HID keyboard bot detection  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								fa00fd95dd 
								
							
								 
							
						 
						
							
							
								
								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 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								02f6842723 
								
							
								 
							
						 
						
							
							
								
								HID keyboard bot detection mostly implemented. Needs more advanced LED  
							
							... 
							
							
 
							
							flash code, and testing. 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								cf1d5da8e8 
								
							
								 
							
						 
						
							
							
								
								Build options complete & tested:  
							
							... 
							
							
 
							
							- Implement SCSI WP flag in mode parameter header
 - Refactor #ifdef names
 - #ifdef out more HID code 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								3a94c2c863 
								
							
								 
							
						 
						
							
							
								
								Implemented optional build for mass storage, keyboard, and mouse  
							
							... 
							
							
 
							
							(Upstream). Also implemented read-only mass storage mode.
Todo:
 - Test. Everything!!!
 - Report write protect flag in SCSI "mode parameter header" (whatever
that is) 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								a287c39b84 
								
							
								 
							
						 
						
							
							
								
								Fix for occasional freakouts on mass storage writes.  
							
							... 
							
							
 
							
							Upstream's edge-detect interrupt that starts SPI transmission was not
firing. Sometimes. On some boards only. The cause was Downstream not
allowing enough time between edges for Upstream to catch the signal.
Also misc code tidyups. 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								747681769b 
								
							
								 
							
						 
						
							
							
								
								Fix yesterday's HID disconnect/reconnect fix  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								eea91c8077 
								
							
								 
							
						 
						
							
							
								
								Fix for Upstream JTAG lockout - don't execute WFI too soon!  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								41c0624459 
								
							
								 
							
						 
						
							
							
								
								Startup LED flash is now asynchronous.  
							
							... 
							
							
 
							
							Not only a faster startup process, but also catches some HID devices
that only work if initialised within 500ms of powerup. 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								0e42cf71dd 
								
							
								 
							
						 
						
							
							
								
								Correctly resume operation after HID device unplug/replug  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								e63525f868 
								
							
								 
							
						 
						
							
							
								
								Don't freakout when wakeup-from-sleep fails during keyboard report out.  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								7a1fe0fb65 
								
							
								 
							
						 
						
							
							
								
								Fix for mouse movement before waking from suspend  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								46ecbd410d 
								
							
								 
							
						 
						
							
							
								
								After an epic battle, suspend/resume/wakeup is now supported.  
							
							... 
							
							
 
							
							It turns out that suspend support on the STM32 USB core is buggy as
heck. Host mode cannot resume after suspend, and device mode cannot
receive resume or send wakeup signalling.
I managed to fake resume support by keeping Downstream and our connected
device running at full power, and simulating a wakeup event to the host
by disconnecting/reconnecting Upstream from the host. 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								32ca5cdcf9 
								
							
								 
							
						 
						
							
							
								
								HID class handles host restart correctly  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								c68151698b 
								
							
								 
							
						 
						
							
							
								
								Bugfixes for keyboard support: works!!!  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								bc2bf01cbe 
								
							
								 
							
						 
						
							
							
								
								Keyboard support implemented, but not tested  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								9b2b8972a4 
								
							
								 
							
						 
						
							
							
								
								Incomplete and untested implementation of keyboard support  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								5c18898611 
								
							
								 
							
						 
						
							
							
								
								Bugfix to allow reconnecting HID devices  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								85f965eaa0 
								
							
								 
							
						 
						
							
							
								
								Fix for occasional timeout on writes...  
							
							... 
							
							
 
							
							...Downstream was not always changing state correctly after closely
spaced interrupts.
Also improve flash-write-lockout function to avoid dependency on
optimisation level. 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								637f67fc14 
								
							
								 
							
						 
						
							
							
								
								Implement dynamic crystal frequency selection based on board revision.  
							
							... 
							
							
 
							
							Also fixed minor issue in hardware revision-detection function. 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								8c30d81521 
								
							
								 
							
						 
						
							
							
								
								Tweak USB descriptor string  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								f9b7416df0 
								
							
								 
							
						 
						
							
							
								
								Sleep instead of busy-wait, approx 50% power reduction!  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								5d393a0100 
								
							
								 
							
						 
						
							
							
								
								HID class: handle host restart gracefully  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								6c96824da8 
								
							
								 
							
						 
						
							
							
								
								Implement multi-PID support so that Windows will recognise each device  
							
							... 
							
							
 
							
							class as a separate device. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								650d10f22c 
								
							
								 
							
						 
						
							
							
								
								Support disconnect/reconnect of attached HID device  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								c78f5b1150 
								
							
								 
							
						 
						
							
							
								
								HID parser and wheel support works!  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								6f944a33db 
								
							
								 
							
						 
						
							
							
								
								Fixed click-drag issue.  
							
							... 
							
							
 
							
							TODO: find out why 8-byte device interrupt endpoints totally fail.
WTF??? 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								b08c70fe02 
								
							
								 
							
						 
						
							
							
								
								Fixed bug in Upstream MSC. I have no idea why it worked before...  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								9918cfcb19 
								
							
								 
							
						 
						
							
							
								
								Mouse WORKS!11111 ...but only in boot mode, so no scroll wheel :(  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								b7298c5f65 
								
							
								 
							
						 
						
							
							
								
								Restructure & bugfix Upstream HID. Still some issue with Downstream...  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								4d9e26b6ef 
								
							
								 
							
						 
						
							
							
								
								Upstream HID bugfixes.  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								e8a445a071 
								
							
								 
							
						 
						
							
							
								
								Work on Downstream HID support. Also a bunch of random tweaks.  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								4c40373a32 
								
							
								 
							
						 
						
							
							
								
								Upstream HID mouse support probably done, not tested yet.  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								c3c4d47145 
								
							
								 
							
						 
						
							
							
								
								Mouse Upstream code half-done.  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								4615f2c740 
								
							
								 
							
						 
						
							
							
								
								Tweak product strings again  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								6886ccd2d4 
								
							
								 
							
						 
						
							
							
								
								Tweak device descriptor strings  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								0d2d4d6341 
								
							
								 
							
						 
						
							
							
								
								Implement flash write lockout by spamming the unlock register, then  
							
							... 
							
							
 
							
							checking that the correct unlock sequence fails. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								e308d3350b 
								
							
								 
							
						 
						
							
							
								
								USG v1.0 beta WORKS!!!!!11  
							
							... 
							
							
 
							
							So apparently the STM32F401's SPI DMA is even more buggy than the 405's.
Worked around an intermittent stall/timeout by busy-waiting Upstream's
packet length transmission and reception, instead of DMA-ing it like the
packet body. Ugh... 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								25ff531917 
								
							
								 
							
						 
						
							
							
								
								Tweaks to 1.0 firmware. Not completely working yet :(  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								e29ef84861 
								
							
								 
							
						 
						
							
							
								
								Modify firmware for v1.0 hardware with STM32F401RC micro:  
							
							... 
							
							
 
							
							- Processor-specific header
 - Startup file
 - Linker script
 - Project settings
 - Debugger config script
 - Debugger project settings
 - Board revision detection routines 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								1262c5337a 
								
							
								 
							
						 
						
							
							
								
								All tabs to spaces  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								08e6846cc5 
								
							
								 
							
						 
						
							
							
								
								Add missing option to clock configuration  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								21de622469 
								
							
								 
							
						 
						
							
							
								
								Added hardware check on bootup: fault LED will light if Upstream  
							
							... 
							
							
 
							
							firmware is placed on Downstream hardware or vice versa. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								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. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								cd663a0651 
								
							
								 
							
						 
						
							
							
								
								Two bugfixes for Upstream's SPI packet handling:  
							
							... 
							
							
 
							
							- Use asynchronous free packet callback for Upstream_MSC_BeginRead
- Upstream_MSC_BeginWrite freed packet too early 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								431a527e24 
								
							
								 
							
						 
						
							
							
								
								Tidy up commented DMA init code  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								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. 
							
						 
						
							10 years ago