Commit Graph

4270 Commits

Author SHA1 Message Date
Ha Thach
64e62bad0d Merge pull request #2784 from tannewt/fix_esp32_sx_resume
Fix ESP32-SX resume
2024-08-30 09:50:35 +07:00
Scott Shawcroft
6890975f80 Fix ESP32-SX resume
The interrupt handler pipes through the resume event but the
interrupt wasn't enabled in the first place.
2024-08-29 14:04:49 -07:00
Reinhard Griech
1d2c9f929d change order, fixes #2778 2024-08-29 15:31:29 +02:00
Mengsk
cefee1a743 Merge remote-tracking branch 'tinyusb/master' into vendor_fifo 2024-08-27 12:13:29 +02:00
hathach
27ddf19631 add sndfifo owner info to skip rewriting data for retrying NAKed 2024-08-26 14:27:23 +07:00
Cumhur Onat
c7851e8dcb only check SNDBAV IRQ if there is data to send 2024-08-23 10:54:28 +07:00
Cumhur Onat
5bb2e66ce7 fix for out retry attempts with nak response 2024-08-23 10:54:28 +07:00
hathach
ea4f9ceb58 remove weak from dcd_edpt_close() for port without TUP_DCD_EDPT_ISO_ALLOC 2024-08-19 20:08:55 +07:00
hathach
088486186f rename TUD_ENDPOINT_EXCLUSIVE_NUMBER to TUD_ENDPOINT_ONE_DIRECTION_ONLY 2024-08-19 19:05:33 +07:00
hathach
635bdc1fce fix ci build 2024-08-19 17:36:11 +07:00
hathach
0c9d7a2185 add hwfifo_flush() 2024-08-19 13:11:48 +07:00
hathach
8fdd8d9a7b implement dcd_edpt_iso_alloc/dcd_edpt_iso_activate for musb. video_capture example with iso kind of work but not smoothly. audio example does not seems to work as expected 2024-08-19 12:04:24 +07:00
hathach
76eb2f5066 more musb update 2024-08-18 16:34:58 +07:00
hathach
fe7ffc8eda rename register bit definition to prevent conflict 2024-08-17 19:08:48 +07:00
hathach
123830c1f0 remove unused register def 2024-08-17 19:06:19 +07:00
hathach
a6bee747b6 define and use TUD_ENDPOINT_EXCLUSIVE_NUMBER 2024-08-17 18:07:36 +07:00
hathach
993473312b minor update 2024-08-17 17:11:54 +07:00
hathach
e9109f36ba refactor fifo configure/setup for dynamic and static fifo 2024-08-17 16:37:27 +07:00
hathach
eaf9cc1beb more refactor to simplify musb driver 2024-08-17 13:33:53 +07:00
dp111
c34d5e7a71 Put break inside #if #endif 2024-08-16 21:43:41 +01:00
hathach
33e3ea3645 remove analog PHY from musb_regs_t
hil: remove ch32v203 since not reliable enough
2024-08-15 23:46:33 +07:00
hathach
6152adb17f use musb_ep_csr_t for indexed CSR, also use indexed csr for TI access as well. Merge ep0 and epn together 2024-08-15 19:39:20 +07:00
hathach
7d8d364332 update musb fifo usage 2024-08-15 16:52:50 +07:00
hathach
e339702a2a adding universal register structs for musb 2024-08-15 16:41:20 +07:00
hathach
a9df933e0d add TUP_USBIP_MUSB macro, minor rename 2024-08-15 15:24:04 +07:00
hathach
0be427bae9 use max32 cmsis, fix NVIC_GetEnableIRQ() not defined when using with CMISIS < 5 2024-08-14 23:59:35 +07:00
hathach
f6b96f7ea9 fix spelling, add max32 to ci with arm-gcc build 2024-08-14 22:56:59 +07:00
hathach
761399b5e0 Merge branch 'refs/heads/master' into fork/BrentK-ADI/max32_port 2024-08-14 06:33:42 +07:00
HiFiPhile
96c5c72e97 Fix double buffer not disabled for smaller devices. 2024-08-13 10:19:08 +07:00
HiFiPhile
549f20d179 Fix buf_id read for ISO transfer. 2024-08-13 10:19:07 +07:00
HiFiPhile
5666aa196f Fix tusb_dir_t warning. 2024-08-13 10:19:06 +07:00
hathach
a621c4b6fc fix more race with ch32v203 and setup when queuing zlp.
improve hil test failed output
2024-08-12 16:39:25 +07:00
Hjalmar
b786d6f4e6 Marked the keycode parameter of the keyboard_report functions as const since the functions don't modifies the value 2024-08-09 21:08:32 +02:00
Ha Thach
643a26ca8d Merge pull request #2756
Fix ESPs without device support
2024-08-09 10:16:22 +07:00
Scott Shawcroft
00eb0144cb Fix ESPs without device support
The newer tusb_option.h assumes that there is a number of device
endpoints to check against.
2024-08-08 12:55:30 -07:00
Ha Thach
dcd0f39b53 Merge pull request #2750 from hathach/fix-ch32v203-setup
rework fsdev driver, fix ch32v203 race condition and stability issue
2024-08-08 22:41:26 +07:00
hathach
1ea38ebe13 refactor read/write pma from/to fifo 2024-08-08 15:43:11 +07:00
hathach
bd64625df2 revert the use of EP_KIND. ch32v203 seems to unconditionally accept ZLP on EP0 OUT, which can incorrectly use queued_len of previous transfer. So reset total_len and queued_len to 0. 2024-08-08 12:40:11 +07:00
hathach
57c26fdc72 use EP_KIND for STATUS OUT to fix OUT packet is auto accepted after SETUP without usbd consent 2024-08-08 00:27:51 +07:00
hathach
3a22163067 fix v203 race condition between rx bufsize and RX_STAT which cause PMAOVR
fix set_rx_bufsize with invalid value for zero length packet
2024-08-07 15:16:22 +07:00
hathach
0860cd3b5e minor rename 2024-08-06 22:20:24 +07:00
hathach
d680424f62 improve dcd_int_handler()
- skip DIR and use CTR TX/RX to handle complete transfer
- clear CTR first, except for setup which we need to get data first
- separate handle_ctr_setup()
2024-08-06 22:18:25 +07:00
HiFiPhile
a7d1888328 Merge pull request #2328 from HiFiPhile/rx_fb
UAC2: Implement feedback by fifo counting.
2024-08-05 17:07:47 +02:00
hathach
315dae6a85 finally fixed fsdev setup handling, which cause race condition for ch32v203 2024-08-05 17:43:27 +07:00
hathach
91e5a066c5 more fsdev clean up
hil test boards in parallel
2024-08-02 17:12:28 +07:00
HiFiPhile
95cb319bde Merge branch 'master' into vendor_fifo 2024-08-02 11:52:35 +02:00
hathach
e180d915c6 read/write packet enhancement, merge 16-bit and 32-bit together 2024-08-01 23:08:12 +07:00
hathach
af8609e96e fsdev improve ep bit manipulation 2024-08-01 18:36:28 +07:00
hathach
46fd822990 increase freerto min task stack for some stm32 2024-08-01 14:24:23 +07:00
hathach
332f75cd44 simplify read/write 16-bit packet 2024-07-31 20:53:42 +07:00