Commit Graph

1541 Commits

Author SHA1 Message Date
IngHK
11a54bc8e1 renamed define NAK_RETRY_HANDLING to CFG_TUH_MAX3421_MAX_ATTEMPS_PER_FRAME as official option 2024-03-31 10:26:39 +02:00
IngHK
818c64efec fixed EP0 control handling 2024-03-31 10:26:39 +02:00
IngHK
998090d1a7 added further debug log outputs 2024-03-31 10:26:12 +02:00
IngHK
9fdb1c1684 draft MAX3421E NAK retry handling next frame 2024-03-26 08:12:24 +01:00
hathach
fbb20373c1 implement hcd_deinit() for max3421 2024-03-26 10:26:42 +07:00
Ha Thach
0814ca0cc7 Merge pull request #2515 from Lurcy38/ReAlignMaster 2024-03-25 19:14:58 +07:00
Ha Thach
29f016ae15 fix pre-commit 2024-03-25 18:59:05 +07:00
Ha Thach
0610070d07 Update dcd_stm32_fsdev_pvt_st.h 2024-03-25 18:44:51 +07:00
HiFiPhile
3ec22e24ed Merge pull request #2472 from cdesjardins/master
Do not enable the Mode mismatch interrupt source, it is not cleared
2024-03-24 15:27:44 +01:00
Ha Thach
67cd8349d6 Merge pull request #2526 from hathach/fix-uvc-hardfault
Fix uvc hardfault
2024-03-22 21:23:14 +07:00
Ha Thach
60764de564 Merge pull request #2527 from tannewt/idf5.2.1
Tweaks for ESP-IDF 5.2.1
2024-03-21 10:21:29 +07:00
Scott Shawcroft
61a31db8ec Tweaks for ESP-IDF 5.2.1 2024-03-20 15:20:24 -07:00
hathach
5630030a22 improve uvc debug message 2024-03-20 17:55:31 +07:00
henneboi
5a854ef2dc dcd_stm32_fsdev.c: Fix a bug seend with stm32h5xxx when the driver is compiled with cubeide O1/O2/O3 2024-03-14 09:13:12 +01:00
hathach
6dc714b6de - only abort ep0 if it is active
- rename reset_ep0_pid() to reset_ep0()
- minor update log message
2024-03-13 11:41:58 +07:00
hathach
2f0ad918cc Merge branch 'master' into fix-rp2040-ctrl-xfer 2024-03-12 16:59:12 +07:00
hathach
5653232144 reformat code 2024-03-11 21:59:30 +07:00
Taylor Yu
473d400cfd work around possible RP2040 erratum
RP2040 device controller does not seem to clear pending transactions
configured in EP0 buffer controls when the host aborts a control
transfer. This causes assertion failures, including when a buffer
AVAILABLE flag set for a previous transfer causes an unexpected
transaction completion.
2024-02-26 09:25:51 -06:00
hathach
a52b4647ec only save/restore CLK_RECOVER_IRC_EN/CTRL if FSL_FEATURE_USB_KHCI_IRC48M_MODULE_CLOCK_ENABLED is defined to 1 2024-02-24 17:18:30 +07:00
Ha Thach
21de8245ae Merge pull request #2168 from emb4fun/nxp_k64
Added support for the NXP K64 series
2024-02-24 01:11:01 +07:00
hathach
65a2e5cdf8 fix build with cpu without USB_CLK_RECOVER using old dcd_khci driver 2024-02-24 00:53:05 +07:00
hathach
3d3bf45102 frdm k64f usb work well, add kinetis_k to ci cmake 2024-02-24 00:36:07 +07:00
Ha Thach
65e60f3123 Merge pull request #2463 from kasjer/kasjer/nrf5x-isoout-corruption-detection
nrf5x: Handle ISOOUT CRC errors
2024-02-20 14:06:08 +07:00
Ha Thach
e9dc8f3e7d fix wrong volatile usage in ohci gtd 2024-02-19 18:12:03 +07:00
Chris Desjardins
5ca9980060 Do not enable the Mode mismatch interrupt source, it is not cleared
If this interrupt ever hits it will result in an infinite interrupt
loop as it is never cleared.
2024-02-15 16:34:31 +01:00
Jerzy Kasenberg
68bb858406 nrf5x: Handle ISOOUT CRC errors
NRF5x USB controller can detect ISO OUT CRC errors.
In such case USBEVENT is signaled with EVENTCAUSE_ISOOUTCRC set.
Even if controller detects corrupted ISO OUT packet it allows
to data transfer from ednpoint to RAM however packet is corrupted
and code could just as well drop packet altogether.

With current implementation incoming ISO OUT packets were put in
FIFO and exact information how much data already in FIFO is correct
was hard to keep track of.
If was observed that on certain configurations HS hub when FS device
was connected occasionally sent invalid (short) packet. In such case
if packet length was reported odd audio stream was not recognizable any
more.

With this change corrupted packets are not passed to upper layers
and are silently dropped.
2024-02-12 16:17:44 +01:00
Michael Fischer
ea30041168 Merge branch 'hathach:master' into nxp_k64 2024-02-04 10:55:34 +01:00
HiFiPhile
d692d77834 Merge branch 'master' into src/portable/synopsys/dwc2/fix_sof_int_handling 2024-02-01 11:12:20 +01:00
Ha Thach
4b3b401ce3 Merge pull request #2401 from Ryzee119/ohci_more_dev
[OHCI] Allow more than 16 devices
2024-01-12 17:48:01 +07:00
Ha Thach
71ce4b8be6 Merge pull request #2402 from Okarss/master
[STM32 FSDEV] Fix ISR race conditions
2024-01-12 10:26:52 +07:00
Okarss
2d3d148912 [STM32 FSDEV] Align names for consistency 2024-01-11 21:02:14 +02:00
hathach
e68c6658c9 move gtd extra out of control struct to save sram
also rename gtd_data to gtd_extra
2024-01-11 17:35:05 +07:00
Okarss
545821399b [STM32 FSDEV] Introduce a typedef for bus access width 2024-01-11 00:59:39 +02:00
Alex Voinea
3bf6826451 Disable ULPI clock during sleep on stm32f7 when using internal phy 2024-01-10 10:27:21 +01:00
Ryzee119
e7e19f5627 [OHCI] Allow more than 16 devices 2024-01-10 16:03:43 +10:30
Okarss
0d4b24e56c [STM32 FSDEV] Fix ISR race conditions 2024-01-10 05:43:20 +02:00
hathach
551e47a464 allow rp2040 to use max3421e as host controller
- fix warnings build hcd max3421 with rp2040
- add tinyusb_host_max3421 target for rp2040 cmake, -DMAX3421_HOST=1
will enable this
- add max3421 driver implementation for rp2040 family
- update tusb_config for host to allow easy enable host selection for
rp2040 (default/pio-usb/max3421)
2023-12-26 22:50:01 +07:00
Jerzy Kasenberg
7f84fe9bda dcd_nrf5x: Fix dcd_edpt_open for iso endpoint
When ISO endpoint handling was introduced two lines that
clear stall and data toggle bit were left unchanged and they
were effective for ISO enadpoint as well.
This is incorrect behavior since EPSTALL and DTOGGLE registers
have only 3 bits for address.
Leaving code that clears toggle bit results in endpoint 0 toggle bit
being reset when iso endpoint (8) is opened.

Now code that clears stall and toggle bit is applied to non-iso endpoint only
as it was done before iso handling was introduced.
2023-12-21 08:48:59 +01:00
HiFiPhile
f3d713ac73 Fix CI & typo. 2023-12-13 14:32:23 +01:00
henneboi
93c40b6966 Add Support stm32h5 for stm32h573i based on stm32_fsdev G0 implementation Tested on Windows with IAR and gcc toolchain ( via cubeide) Tested only with audio examples, but sould be ok for other examples Cmake pacthed : but not tested Linux build : not tested Added a temporary workaround in make file to support H5 HAL repo ( ARMCC_VERSION=0) 2023-12-12 16:04:21 +01:00
Ha Thach
be4d65221b Merge pull request #2346 from IngHK/LogLineEnds
made log line end consistent \r\n
2023-11-29 17:12:08 +07:00
IngHK
7e1fe2ff83 made log line end consistent \r\n 2023-11-24 22:02:58 +01:00
Ha Thach
0601d174b1 Merge branch 'master' into feature/ch32f20x 2023-11-24 11:33:34 +07:00
hathach
01f22a9e25 fix h7 running on fullspeed phy has issue with WFI if not disable ULPI clock 2023-11-22 22:50:10 +07:00
hathach
025ffa200c add spec version to dwc2 info 2023-11-22 17:36:52 +07:00
hathach
1f71625a32 add tuh_max3421_reg_read(), tuh_max3421_reg_read() for application usage
added max3241 for feather m4 and tested
2023-11-20 21:31:06 +07:00
HiFiPhile
8af470e06d Fix CI 2023-11-19 16:19:11 +01:00
HiFiPhile
b5b34e73d6 Add dwc2 info of F429. 2023-11-19 16:10:16 +01:00
hathach
4b9320e40e fix race condition when dev0 is removed while enumerating 2023-11-03 22:22:13 +07:00
hathach
46106c6ef4 skip tuh_max3421_spi_cs_api() in hcd_init()
only call tuh_max3421_spi_cs_api() in SPI start/end transfer since
Arduino port use this to call begin/endTransaction()
2023-11-02 15:22:02 +07:00