Commit Graph

769 Commits

Author SHA1 Message Date
b2dc419270 rename CFG_TUD_ENDPOINT0_BUFSIZE to make it more consistent
use uint8_t for dfu state and status to reduce size
2025-11-19 13:36:32 +07:00
fd3161087d Merge branch 'refs/heads/master' into dwc2_ep0
# Conflicts:
#	examples/device/dfu/src/usb_descriptors.c
#	examples/device/dfu_runtime/src/usb_descriptors.c
#	src/device/usbd_control.c
#	src/portable/synopsys/dwc2/dcd_dwc2.c
2025-11-19 11:32:44 +07:00
6b28a4478c make TUP_DCD_EDPT_ISO_ALLOC i.e dcd_edpt_iso_alloc()/dcd_edpt_iso_activate() as default driver implementation. dcd_edpt_close() is deprecated and will be removed from all driver in the future. 2025-11-17 12:09:30 +07:00
652342b57b fix more alerts found by pvs-studio 2025-11-07 23:50:16 +07:00
1f04fe7924 added .clang-format
fix more alerts
disable IAR CStat since pvs-studio check is better integrated with clion
2025-11-05 17:34:27 +07:00
8979af34c0 Fixed more alert found by PVS-Studio 2025-11-04 19:56:53 +07:00
aa739c946d Merge branch 'master' into uac1
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-10-30 19:50:47 +01:00
4da7845747 Merge branch 'master' into dwc2_ep0
# Conflicts:
#	examples/device/dfu/src/usb_descriptors.c
#	examples/device/dfu_runtime/src/usb_descriptors.c
#	src/portable/synopsys/dwc2/dcd_dwc2.c
2025-10-29 20:32:50 +07:00
d92b810df7 fix Identifiers that start with '__' or '_[A-Z]' are reserved.
fix compiling with nuc family
2025-10-28 14:14:01 +07:00
4dd9122417 Merge remote-tracking branch 'upstream/master' into uac1
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-10-24 11:16:07 +02:00
55c6d07af3 fix more warnings 2025-10-24 14:28:59 +07:00
2f3b21a1e5 fix some warnings detected by pvs-studio 2025-10-16 10:44:22 +07:00
37592dabe0 usbd: support set EP0 buffer size
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-10-10 13:43:55 +02:00
05ea8cf0ee Merge remote-tracking branch 'tinyusb/master' into uac1 2025-10-03 09:34:40 +02:00
981dc982ce mtp example work with highspeed device 2025-10-02 15:57:59 +07:00
d5108589b6 Minor fixes
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-10-01 09:42:13 +02:00
e463e87097 support UAC1 without IAD
Signed-off-by: Mengsk <admin@hifiphile.com>
2025-09-30 16:30:34 +02:00
9afe71c77e Add UAC1 support to speaker example
Signed-off-by: Mengsk <admin@hifiphile.com>
2025-09-30 16:30:34 +02:00
5d179c255b Update TUD_AUDIO_EP_SIZE macro
Signed-off-by: Mengsk <admin@hifiphile.com>
2025-09-30 15:51:50 +02:00
8f9eee6a81 Implement UAC1 IN flow control
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-09-30 15:51:50 +02:00
289680a6b9 Add basic UAC1 support
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-09-30 15:51:50 +02:00
9637a2006b More descriptors working
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-09-30 15:51:50 +02:00
bdd557caf1 Merge branch 'master' into fork/ennebi/mtp 2025-09-29 15:32:08 +07:00
24bc2ff57a Add UAC1.0 defines
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-09-29 10:00:39 +02:00
0961e06845 Add usbd_edpt_xfer_fifo stub
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-09-18 19:14:27 +02:00
e621f2f77b set driver count to 0
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-09-18 19:09:10 +02:00
369a1ff515 Update weak callbacks to new syntax
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-09-17 22:48:59 +02:00
10298f0b27 refactor generic container to use EPBUF declaration
simplify container field name
2025-09-16 14:25:54 +07:00
8e34ba9cf6 Merge branch 'master' into fork/ennebi/mtp 2025-09-15 16:45:41 +07:00
802819d271 add all constant from MTP specs appendix, rename some e.g OPEC to OP, EVTC to EVENT 2025-09-12 17:13:52 +07:00
283b06bb54 Add MTP class device 2025-08-06 06:14:13 +02:00
40dc1dd436 Merge pull request #2987 from hathach/fix-2923-alt
make sure TOTAL_DRIVER_COUNT is not overflow 8-bit
2025-07-10 18:50:42 +07:00
961ea73e55 revert edpt busy/claim status if xfer_isr() defer to xfer_cb() 2025-07-08 12:13:22 +07:00
2908995c4c minor reformat code 2025-07-08 11:05:16 +07:00
a56f55c10b Merge remote-tracking branch 'origin/master' into xfer_isr
# Conflicts:
#	examples/device/audio_4_channel_mic_freertos/src/main.c
#	examples/device/audio_test_freertos/src/main.c
#	src/class/audio/audio_device.c
2025-07-08 10:09:24 +07:00
89da5a724d reduce bInterval for default CDC descriptor from 16ms to 1ms 2025-07-03 14:28:44 +07:00
d789a87a7d Merge branch 'master' into async_io
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-06-22 17:19:08 +02:00
eed294fbb5 audio: move ISO transfers into xfer_isr
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-06-14 22:46:51 +02:00
76a6834659 USBD: introduce xfer_isr. 2025-06-14 22:45:40 +02:00
5551a3e430 add usbd_spin_lock/unlock for driver usage 2025-05-21 11:41:06 +07:00
bb1d348eb3 implement osal critical for none/freertos/pico-sdk 2025-05-19 22:51:40 +07:00
459e2cd39e Merge remote-tracking branch 'upstream/master' into async_io
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-11 23:07:22 +02:00
901ce2ad93 hcd/ehci: hcd_edpt_open() return false if ep is already opened. implement hcd_edpt_close() 2025-03-26 21:32:18 +07:00
ee234a84ca hack: force/overwrite endpoint mps to 64 for device that incorrectly report 512 bytes for bulk in fullspeed mode. 2025-03-06 11:03:47 +07:00
85247e50dd clean up 2025-02-12 11:34:32 +07:00
87adc63226 Merge branch 'master' into fork/atoktoto/midihost
# Conflicts:
#	hw/bsp/rp2040/family.cmake
#	src/class/midi/midi.h
#	src/class/midi/midi_device.c
#	src/device/usbd_control.c
#	src/host/hcd.h
#	src/host/usbh.c
#	src/host/usbh.h
2025-02-12 11:28:16 +07:00
ea38115d6c make sure TOTAL_DRIVER_COUNT is not overflow 8-bit 2025-02-11 21:20:42 +07:00
d1ee2bf18f Fix Auto speed display.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-01-29 15:14:25 +01:00
ad0ac6780d change OPT_MCU_RAXXX, fix missing prototype warnings. 2024-12-13 17:33:21 +07:00
ecc65a86c8 refactor(usbd_control): Updated the buffer name for deeper debug 2024-11-28 13:16:06 +01:00