summaryrefslogtreecommitdiff
path: root/src/portable/valentyusb
AgeCommit message (Collapse)Author
2021-01-08use dcd_event_bus_reset() with speed to replace bus_signalhathach
2020-04-17complete remove dcd_set_config(), fix unit testhathach
2020-04-17mass rename tud/dcd_irq_handler to tud/dcd_init_handlerhathach
2020-04-16implement dcd disconnect connecthathach
2020-04-08rename hal_dcd_isr to dcd_irq_handler for fomuhathach
2020-01-15Merge pull request #269 from antmicro/volatile_buffers_fixSean Cross
dcd_eptri: Fix rx_buffer/tx_buffer volatile annotation
2020-01-14dcd_eptri: Fix rx_buffer/tx_buffer volatile annotationMateusz Holenko
This makes `rx_buffer` and `tx_buffer` *pointers* volatile in order to avoid caching them in a register. The original notation meant "a pointer to a volatile value" (equivalent of `volatile uint8_t *`). This resulted in `while(rx_buffer[ep_num] != NULL) ;` loop to get stuck forever, even though the IRQ handler set the `rx_buffer[ep_num] = NULL`.
2019-11-29valentyusb: eptri: don't double-advance read bufferSean Cross
Due to an error, we were double-advancing the FIFO buffer. The end result was that the second half of most reads were getting ignored. This wasn't found during earlier testing because only 64-byte buffers were tested. This corrects this error by avoiding double-advancing the buffer. Signed-off-by: Sean Cross <[email protected]>
2019-11-20eptri: clear proper endpoint when opening IN portSean Cross
When opening a USB port, we ensure the buffer is NULL and has a length of 0. Due to a mistake in specifying the endpoint type, we never actually cleared the value when opening an IN endpoint. This patch fixes the comparison when opening an IN endpoint. This fixes issue #218. Signed-off-by: Sean Cross <[email protected]>
2019-11-13valentyusb: rename from `foosn`Sean Cross
While Fomu is produced by Foosn, the actual name of the hardware block is `valentyusb`. Rename the module to match that. Signed-off-by: Sean Cross <[email protected]>