summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
AgeCommit message (Collapse)Author
2023-01-06minimize tu_fifo size to 16hathach
- remove non_used_index_space - packed overwritable with item_size
2022-12-30Add ISO buffer allocation.Mengsk
2022-12-29Use weak for dcd_edpt_iso_alloc/dcd_edpt_iso_activateMengsk
2022-12-29Add dcd_edpt_iso_alloc() / dcd_edpt_iso_activate() for ISO EP buffer management.Mengsk
2022-12-21fix cihathach
2022-12-15use OSAL_MUTEX_REQUIRED to replace CFG_FIFO_MUTEX/TUSB_OPT_MUTEXhathach
add macro to swallow mutex API in order to simplify code with mutex
2022-11-13Make USB MIDI device code allow a device with no Audio Control interfacerppicomidi
2022-06-30rp2040 enable SOF as resumed signal when remote wakeuphathach
2022-06-27Merge branch 'master' into add-more-warningshathach
2022-06-27clean up usbd log levelhathach
2022-06-24fix redundant-decls warnings by usbd/usbhhathach
2022-06-24add more warning option, also fix -Wconversion with rp2040hathach
-Wuninitialized, -Wunused, -Wredundant-decls
2022-06-10more dynamic controller for hosthathach
2022-06-10revert sof_isr driver rename since it cause issue with existing codehathach
also removed commented tud_sof_isr_set() API
2022-06-08add tuh_configure() for port/dynamic host behavior confighathach
2022-06-02rhport argument in usbd_ API() is not used (always use the initialized port)hathach
remove the usage of TUD_OPT_RHPORT in class driver
2022-05-31Merge pull request #1381 from hathach/add-sof-isrHa Thach
Add SOF IRQ Handler
2022-05-13changes proposal to audio feedback computationhathach
2022-04-28more clean uphathach
2022-04-27clean uphathach
2022-04-27add TU_ATTR_FAST_FUNC for rp2040 __not_in_flash() sectionhathach
2022-04-21Merge branch 'master' into pio-hosthathach
2022-04-20add tud_task_ext(), tuh_task_ext() as exteneded version that take timeout ↵hathach
and in_isr also allow exit tud_task,tuh_task after processing all events for running other background task for user
2022-04-20add msec timeout to osal_queue_receive(), tud_task() and tuh_task() both ↵hathach
pending for event queue with timeout of 1 ms
2022-04-18clean up pio driverhathach
2022-03-29clean up and comment out tud_sof_isr_sethathach
2022-03-16Add todos and commentsReinhard Panhuber
2022-03-14Merge remote-tracking branch 'upstream/add-sof-isr' into add-sof-isrReinhard Panhuber
2022-03-14Add SOF callback function for feedback value determination in uac - wip!Reinhard Panhuber
2022-03-14Merge branch 'master' into add-sof-isrHa Thach
2022-03-09refactor usbd to also use common endpoint claim/releasehathach
2022-03-09adding tusb_private.h to implement common edpt claimhathach
2022-03-09add tusb_debug.h remove tusb_error.hhathach
move debug utils to new header
2022-03-09update use of mutex for hosthathach
2022-03-07added dcd_sof_enable(), tud_sof_isr_set()hathach
make number of interface configurable (default to 8) CFG_TUD_INTERFACE_MAX
2022-03-04add tuh_descriptor_get() and tuh_descriptor_device_get()hathach
2022-02-25minor house keepinghathach
2022-02-25rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLEDhathach
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2022-02-25improve rphort management for usbdhathach
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