summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
AgeCommit message (Collapse)Author
2021-12-30fix unreachable warnings with keilhathach
2021-11-30usbd: supress "statement is unreachable" warning on ARMCCYunhao Tian
2021-10-17more with -Wcast-qualhathach
2021-10-15fix -Wcast-qualhathach
2021-10-12Merge branch 'master' into add_uvcHa Thach
2021-10-05rename CFG_TUD_NET to CFG_TUD_ECM_RNDIShathach
2021-10-01more usbd clean uphathach
2021-09-29add files for video class devicekkitayam
2021-09-29Merge branch 'master' into enhancehathach
2021-09-24usbd: Workaround for non standard device descriptor requestJerzy Kasenberg
Windows and Linux host during enumeration requests device descriptor with request size set to 64 bytes when device was in default state (no address). Those systems do not want 64 bytes though since usb descriptors is only 18 bytes long so they silently expect that only one packet will be received possibly 18 bytes for EPS > 16 or 8 or 16 bytes for smaller EP0. For devices with CFG_TUD_ENDPOINT0_SIZE size 8 or 16 there was workaround that reduced request size to CFG_TUD_ENDPOINT0_SIZE and that was enough to satisfy Windows and Linux hosts. However USBCV testing application also requests device descriptor but with size set to 18 bytes. Workaround for Window/Linux prevented USBVC to tests devices with 8 bytes EP0 size since it send only 8 bytes while application did wanted 18 bytes. Solution that satisfies both cases it to check if in default state device descriptor request wants more bytes than descriptor size (18). If so host is expecting to receive less bytes then requested and workaround would be applied since Linux/Windows only try to read one packet. If 18 bytes was requested as is the case for USBCV, core returns descriptor in 2 or 3 packets as application expects.
2021-09-14Reset EP flags on close.MasterPhi
2021-09-15correct assoc_itf_count for bth driverhathach
2021-09-14make vendor driver more flexiblehathach
- skip additional custom descriptor between interface and endpoints - can have up to 2 bulk endpoint ( 1 in & 1 out)
2021-09-14update configuration parserhathach
2021-09-14Fix warning.MasterPhi
2021-09-14usbd pre-compute total interface length without replying on driver openhathach
2021-09-09remove connected check for DCD_EVENT_UNPLUGGED since previous bus reset can ↵hathach
clear this implement unplugged detection for trans dimension dcd
2021-09-09add other speed descriptor callback ↵hathach
tud_descriptor_other_speed_configuration_cb() example implement tud_descriptor_device_qualifier_cb() and tud_descriptor_other_speed_configuration_cb() on high speed device to fully compliant to usbcv
2021-09-01minor clean uphathach
2021-09-01only attempt to clear if stalled, and stall if clearedhathach
2021-09-01revert previous changes, edpt stall also clear any pending (not complete) ↵hathach
transfer
2021-08-31remove set/clear busy flag in set/clear stall since they are different statushathach
note: dcd should resume to prio-stalled queued transfer when unstall
2021-08-27update msc driver to pass MSC BOT error recovery compliant testhathach
2021-08-26add dcd_edpt_close_all() for clear existing configured statehathach
correctly responded to TD 9.13 Set Configuration Test
2021-08-26fix usbcv TD 9.4 Interface Descriptor testhathach
2021-08-20minor clean uphathach
2021-08-20extra common edpt helper for device and host stackhathach
tu_edpt_validate() and tu_edpt_bind_driver()
2021-08-18Merge pull request #1020 from hathach/rp2040-disconnect-suspendHa Thach
Add Rp2040 suspend & resume support
2021-08-17skipped suspend/resume if not connectedhathach
2021-08-16complete suspend, resume, remote wakeup for nrf52hathach
2021-08-12revert ready() check in claim (do it later in separated PR)hathach
2021-08-12add ready check for edpt claimhathach
2021-07-22update endianhathach
2021-07-22clean up max packet size endianhathach
2021-07-22Merge branch 'CCRX_Port' of https://github.com/Wini-Buh/tinyusb into ↵hathach
Wini-Buh-CCRX_Port
2021-07-22Merge pull request #950 from HiFiPhile/dfuHa Thach
DFU improvements
2021-07-22fix cihathach
2021-07-22add dcd_attr for DCD_ATTR_ENDPOINT_MAXhathach
could be useful with more dcd specific attribute
2021-07-15rename CFG_TUD_DFU_MODE to simply CFG_TUD_DFUhathach
2021-07-15wrap up DFU updatehathach
2021-07-01better support for hid device set/get protocolhathach
add caplock detection for hid_composite
2021-06-29Merge remote-tracking branch 'origin/master' into CCRX_PortWini-Buh
# Conflicts: # src/portable/renesas/usba/dcd_usba.c # src/tusb_option.h
2021-06-22final clean upWini-Buh
2021-06-17force single buffered for device mode, out endpointhathach
2021-06-11clean upWini-Buh
2021-06-11weak atrribute work around removed from CCRX_PortWini-Buh
2021-06-10implement usbh_edpt_busy (WIP), remove hcd_edpt_busyhathach
2021-06-03Merge remote-tracking branch 'upstream/master' into CCRX_PortWini-Buh
2021-05-29Adaptations for Renesas CCRX toolchain and Rx72N controller performedWini-Buh
2021-05-26rename usbd_edpt_iso_xfer to usbd_edpt_xfer_fifohathach