summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-09-13Merge pull request #3247 from hathach/fsdev_fixHa Thach
Fix AT32 compile after #3152
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-12Merge pull request #3152 from Milek7/sb-epZixun LI
stm32_fsdev: Allow configuring single-buffered isochronous endpoints.
2025-09-12Update commentHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-12exclude stm32l0538 due to size limitHiFiPhile
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-12Move BOARD_ConfigMPU into board specific initHiFiPhile
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-12Fix IAR buildHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-12Merge pull request #3245 from Dolphindalt/masterHa Thach
Added NUCLEO-WBA65RI evaluation board support
2025-09-12missing cmsis5 for wbahathach
2025-09-12fix warnings, update docshathach
2025-09-12rename stm32wba eval to nucleohathach
use local linker to fix READONLY keyword with clang add wba to ci build
2025-09-11Change CMSIS patch to match update path in family.mk for WBADalton Caron
2025-09-11Merge branch 'master' of github.com:Dolphindalt/tinyusbDalton Caron
2025-09-11Revert fsdev_stm32.h changesDalton Caron
2025-09-11Make get_deps.py WBA definition consistent with upstream and other defsDalton 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-11fix pre-commithathach
2025-09-10Bring up to date with masterDalton Caron
2025-09-10STM32WBARI eval CMake build supportDalton Caron
2025-09-10Incorporate upstream changes to dwc2_common.cDalton Caron
2025-09-10Initial STM32WBARI eval supportDalton Caron
Clean up includes definitions Remove wait that is not required Remove redundant settings Clean up clock configuration to look like other modules Remove MSP_Init that is not required Clean up driver code dhcp: Fix DHCP_OFFER/DHCP_ACK destinaton. In RFC 2131, the destination of DHCP OFFER/ACK is defined in Section 4.1. Fix the destination error by following the rule of RFC 2131. TODO: We implement all rule but the last one. ARP table is required to associate client's macaddr. Currently, fallback to broadcast. Signed-off-by: Elwin Huang <[email protected]> Fix compile error. Fix goto indentation Co-authored-by: Copilot <[email protected]> Fix osal_spin_unlock for mynewt Mynewt version for osal_spin_unlock() called OS_ENTER_CRITICAL instead of OS_EXIT_CRITICAL. Signed-off-by: Jerzy Kasenberg <[email protected]> Add ESP32-C5 and ESP32-C61 definitions fix(dcd/dwc2): Fix reset procedure for versions >=4.20a Fix STM32L4 GPIOD clock enable for variants without GPIOD Add weact blackpill support Add to boards.rst file Fix file Small cleanups. Insert small delay for LowSpeed device Improve retry operation at NAK response. Remove dynamic memory allocation use tusb_time_millis_api() instead of board_millis() make loopdelay() always inline update at32f405 dwc2 info and phy width selection add at32f415 dwc2 info add some consumer page configs remove duplicated enum Initial plan Fix obsolete cnt assignment in _tu_fifo_peek() overflow check Co-authored-by: hathach <[email protected]> Initial plan Update STM32 CMSIS dependencies to fix HSITRIM register bug Co-authored-by: hathach <[email protected]> Remove accidentally committed dependency directories Co-authored-by: hathach <[email protected]> Update all STM32 HAL driver dependencies to latest versions Co-authored-by: hathach <[email protected]> fix linker h745 issue with clang fix linker h745 issue with clang Update all STM32 CMSIS device dependencies to latest versions Co-authored-by: hathach <[email protected]> update pio-usb Create comprehensive GitHub Copilot instructions and fix pre-commit configuration for TinyUSB (#3234) * Initial plan * Create comprehensive GitHub Copilot instructions for TinyUSB Co-authored-by: hathach <[email protected]> * Remove accidentally committed dependencies, use tools/get_deps.py instead Co-authored-by: hathach <[email protected]> * Fix .gitignore: ignore vendor/ directory not ceedling script Co-authored-by: hathach <[email protected]> * Revert .gitignore changes and add README_processed.rst Co-authored-by: hathach <[email protected]> * Remove README_processed.rst and revert ceedling file permissions Co-authored-by: hathach <[email protected]> * Changes before error encountered Co-authored-by: hathach <[email protected]> * Remove redundant manual validation step, keep only pre-commit and build validation Co-authored-by: hathach <[email protected]> * fix pre-commit --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: hathach <[email protected]> modified the bsp files of at32 to make them work better the family name error of at32 has been corrected fix pre-commit STM32N6570-DK board is added. Build with DEBUG=1 (make BOARD=stm32n6570dk DEBUG=1 all), otherwise it does not work for now. Tested with examples/device/cdc_dual_ports
2025-09-10Merge pull request #3126 from salkinium/fix/phyc_pllHa Thach
[stm32] Wait until the PHYC PLL is stable
2025-09-10use tusb_time_delay_ms_api for delay, also move tusb_time api to common.hhathach
2025-09-08Merge pull request #3240 from rppicomidi/fix_3239Ha Thach
fix #3239: discard poorly formed packets
2025-09-08Merge pull request #3226 from armusin/stm32n6570-dkHa Thach
STM32N6570-DK support is added
2025-09-06fix #3239: discard poorly formed packetsrppicomidi
2025-09-05Merge pull request #3236 from ning3270455369/masterHa Thach
modified the bsp files of at32 to make them work better
2025-09-05fix pre-commithathach
2025-09-05the family name error of at32 has been correctedzhiqiang
2025-09-04Create comprehensive GitHub Copilot instructions and fix pre-commit ↵Copilot
configuration for TinyUSB (#3234) * Initial plan * Create comprehensive GitHub Copilot instructions for TinyUSB Co-authored-by: hathach <[email protected]> * Remove accidentally committed dependencies, use tools/get_deps.py instead Co-authored-by: hathach <[email protected]> * Fix .gitignore: ignore vendor/ directory not ceedling script Co-authored-by: hathach <[email protected]> * Revert .gitignore changes and add README_processed.rst Co-authored-by: hathach <[email protected]> * Remove README_processed.rst and revert ceedling file permissions Co-authored-by: hathach <[email protected]> * Changes before error encountered Co-authored-by: hathach <[email protected]> * Remove redundant manual validation step, keep only pre-commit and build validation Co-authored-by: hathach <[email protected]> * fix pre-commit --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: hathach <[email protected]>
2025-09-04Merge pull request #3237 from hathach/update-pio-usbHa Thach
update pio-usb
2025-09-04update pio-usbhathach
2025-09-04Merge pull request #3235 from hathach/copilot/fix-3209Ha Thach
Update all STM32 CMSIS and HAL dependencies to fix HSITRIM register bug
2025-09-04Update all STM32 CMSIS device dependencies to latest versionscopilot-swe-agent[bot]
Co-authored-by: hathach <[email protected]>
2025-09-04fix linker h745 issue with clanghathach
2025-09-04fix linker h745 issue with clanghathach
2025-09-04Update all STM32 HAL driver dependencies to latest versionscopilot-swe-agent[bot]
Co-authored-by: hathach <[email protected]>
2025-09-04modified the bsp files of at32 to make them work betterzhiqiang
2025-09-04Remove accidentally committed dependency directoriescopilot-swe-agent[bot]
Co-authored-by: hathach <[email protected]>
2025-09-04Update STM32 CMSIS dependencies to fix HSITRIM register bugcopilot-swe-agent[bot]
Co-authored-by: hathach <[email protected]>
2025-09-04Initial plancopilot-swe-agent[bot]