summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2025-09-25implement MTP_OP_SEND_OBJECT_INFO, refactor fs examplehathach
2025-09-25Fix incorrect commentsLu Chang
Co-authored-by: Copilot <[email protected]>
2025-09-24Add HID Usage Page and Table for Power Devices (0x84 - 0x85)Lu Chang
2025-09-24clean uphathach
2025-09-24unify callback argument. support multiple packet get objecthathach
2025-09-23refactor APIhathach
2025-09-23try to add logo png to mtp examplehathach
2025-09-22Fix erroneous documentation of TU_ASSERT/TU_VERIFYTerje Runde
2025-09-22implement get object, close sessionhathach
2025-09-21implement get object infohathach
2025-09-21implement get objection handleshathach
2025-09-20implement get device properties describer and device properties valuehathach
2025-09-20implement get device properties valuehathach
2025-09-19rework get storageIDs and get storage infohathach
2025-09-19rework get storageIDs and get storage infohathach
2025-09-19reworking MTP API, adding callback, getting GetDeviceInfo workinghathach
2025-09-18Merge branch 'weak_cb' of https://github.com/hathach/tinyusb into weak_cbHiFiPhile
2025-09-18Add usbd_edpt_xfer_fifo stubHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-18set driver count to 0HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-18Potential fix for code scanning alert no. 914: Commented-out codeZixun LI
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-09-17Fix address translation functionsHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-17Replace old delay functions by tusb_time_delay_ms_apiHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-17Update weak callbacks to new syntaxHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-17use existing overloadable Pico SDK section macro instead of creating a ↵Peter Lawrence
custom one
2025-09-16remove mtp contexthathach
2025-09-16refactor mtp xfer callbackhathach
2025-09-16Add ESP32-H4 as a supported MCU in TinyUSB and wire it into build/runtime:igor.masar
- tusb_option.h: define OPT_MCU_ESP32H4 - tusb_mcu.h: enable DWC2 USBIP for H4 - dcd_dwc2.c: add H4 USB_WRAP field aliases (wrap_* → legacy names) - dwc2_esp32.h: add H4 controller entry (FS base/IRQ, ep caps) - family.c: include H4 in USB init/PHY setup
2025-09-16refactor generic container to use EPBUF declarationhathach
simplify container field name
2025-09-16merge context into interface and refactor, reformathathach
2025-09-15Merge branch 'master' into fork/ennebi/mtphathach
2025-09-15add nrf54 to dwc2 infohathach
2025-09-15dwc2: wait for ahb idle before core resethathach
2025-09-13ohci: Use uncached alias to access EDsR
This code is written very carefully to always use an uncached view of memory to read/write EDs. An uncached view must *always* be used, or else cache behavior can corrupt the ED. As part of this change, combine access into as few word-sized accesses as possible. This makes the code perform better. Doing this involves giving type names to the bitfields that make up the ED's data words.
2025-09-13Merge pull request #3246 from HiFiPhile/nxp_hostHa Thach
ehci: fix device removal and endpoint open on next plug
2025-09-13ohci: Perform explicit cache operations on TDs, buffersR
2025-09-13ohci: Re-implement TD allocation, matching the specificationR
The initial motivation for doing this is to remove the `used` flag in the TD. If we use this flag, we end up being required to read from TDs that the OHCI controller might be modifying (i.e. the OHCI controller logically owns the TD). This happens when we try to allocate a new, empty TD while the OHCI host controller is working on a transfer. Move the `used` flag to `gtd_extra_data_t`. This data is only used by the CPU, and the OHCI controller never accesses it. The existing allocation method for TDs does *not* put an empty TD onto each ED (i.e it does *not* do what is shown in Figure 5-6 of the OHCI specification). Instead, the NextTD field of the last TD is set to 0. The TailP field of the ED is also set to 0. This works in many cases. However, this implementation means that the CPU may end up trying to write to the NextTD field of an in-progress transfer while the OHCI host controller logically owns it. Change the implementation to use an empty TD, as suggested by the specification, for endpoints other than EP0. This avoids the above issue. It is not necessary to make the change for EP0 because only at most one TD can ever be pending at a time. The above change should also remove the need for the stall workaround. In the future, we want to modify the code to access EDs through an uncached mapping. Because uncached mappings are slow, we want to access EDs as little as possible. Currently, when a TD completes, we access an ED in order to figure out the device address and endpoint number of the TD which was completed. Because moving `used` to `gtd_extra_data_t` necessitates expanding it, we have enough room to also store the device address and endpoint number of the TD. This patch does so. With the above two changes, we no longer need to access an ED when a TD completes. Also remove the `index` field from TDs as it is no longer necessary.
2025-09-12ohci: Align TDs to cache linesR
2025-09-12ohci: Add functions used for explicit cache operationsR
2025-09-12Fix AT32 compile after #3152HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-12Update commentHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-12Merge branch 'master' into sb-epHiFiPhile
2025-09-12ehci: fix removed qhd get reusedHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-12echi: fix NXP USBPHY disconnection detectionHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-12add all constant from MTP specs appendix, rename some e.g OPEC to OP, EVTC ↵hathach
to EVENT
2025-09-12Fix some IAR warningsHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-11Merge branch 'master' of github.com:Dolphindalt/tinyusbDalton Caron
2025-09-11Revert fsdev_stm32.h changesDalton Caron
2025-09-11Revert "Incorporate upstream changes to dwc2_common.c"hathach
This reverts commit 48f6b95bd8b0c3d33832f289b02b53da410d5ef9. also revert gsnpsid shadown since it is already in the upstream
2025-09-10Bring up to date with masterDalton Caron
2025-09-10Incorporate upstream changes to dwc2_common.cDalton Caron