firmware/main: Cleanup start.S a bit and disable boot debug (details)
firmware: Change cross compiler to riscv-none-elf- (details)
Commit
d40cd411ec9bfaa0c71d51e205ee982b527df37d
by Sylvain Munaut
gateware: Add a proper 'busy' indicator in capture hardware
This allows the software to know if we're currently inside a packet.
Note that when ctrl_active is set low a new packet can still start a tiny bit after since we could be inside of receiving the SYNC or PID byte and 'busy' will only enable after the first byte of the packet.
Commit
cde8ebdd74eb2c305180062dfd55d55be2d7b6db
by Sylvain Munaut
firmware: Make sure we're not in a packet before starting flush mode
If we start flush mode inside a packet, then the data fifo could become empty temporarely, triggering the auto-stop ... and then fill a little bit again, messing up the flush sequence.
Commit
5ca8709921c5aa5fb0b33db25227a8e5b7e51d8f
by Sylvain Munaut
firmware: At the end of a flush, send either short packet or ZLP
To indicate to the host that the transfer is done and nothing else is expected, we send either a short packet or a ZLP. Before a short packet would be sent but if transfer happened to be a multiple of packet size, then nothing would be sent afterward.