Commit Graph

4313 Commits

Author SHA1 Message Date
hathach
d132044b75 add tuh_midi_mount_cb_t struct for tuh_midi_mount_cb()
change tuh_midi_rx/tx_cb() to have xferred_bytes
rename tuh_midi_get_num_rx/tx_cables() to tuh_midi_get_rx/tx_cable_count()
use default empty callback instead of weak null to be compatible with keil compiler
2025-02-24 16:05:31 +07:00
hathach
56e84bd1a6 add desc_audio_control to midi descriptor callback 2025-02-24 14:40:32 +07:00
hathach
8c70475c23 change API to take index instead of dev address, this allow to support more than 1 midi per device. 2025-02-24 12:39:02 +07:00
hathach
71e046d9ff add tuh_midi_descriptor_cb() 2025-02-24 10:55:03 +07:00
hathach
b12c8a9012 remove CFG_MIDI_HOST_DEVSTRINGS support, we will leave that for application to parse/extract this information if needed
rename tuh_midi_configure() to mounted() for consistency
2025-02-21 17:31:13 +07:00
hathach
6ebd362cfd Merge branch 'master' into fork/atoktoto/midihost
# Conflicts:
#	src/host/usbh.c
2025-02-21 10:59:40 +07:00
hathach
70ddb7a867 more hub improve, handle more failed transfer with polling interrupt status endpoint 2025-02-19 15:50:42 +07:00
hathach
27a4895b79 complete separate hub epbuf from itf
add hub_get_status(), hub_clear_feature()
2025-02-19 12:58:03 +07:00
hathach
48a43a675c move status_change to epbuf
improve hub_xfer_cb()
rename internal complete function
2025-02-19 11:27:33 +07:00
hathach
792a446405 usbh always retry control transfer (max 3) in case of XFER_RESULT_FAILED.
added tuh_connected()
2025-02-17 22:40:19 +07:00
hathach
18d566b94c improve hub: retry if hub interrupt endpoint failed
bump up pio-usb to latest
2025-02-17 17:06:51 +07:00
hathach
997771fdba - rename tuh_midi_stream_flush() to tuh_midi_write_flush()
- add tuh_midi_packet_read_n() and tuh_midi_packet_write_n()
- add CFG_TUH_MIDI_STREAM_API to opt out stream API
2025-02-14 16:21:48 +07:00
hathach
31a2696de7 - change signature of tuh_midi_mount/umount_cb()
- rename midi_stream_t to midi_driver_stream_t and move to midi.h (common for device and host)
2025-02-14 11:25:50 +07:00
hathach
ed88fc983f - remove tuh_midi_read_poll(), auto schedule EP in when set_config() and xfer_cb as well as ep read()
- de-dup tuh_midi_get_num_rx/tx_cables
- add tuh_midi_read_available()
2025-02-14 10:41:05 +07:00
hathach
bad6cbe489 update midi host to use endpoint stream API 2025-02-13 15:54:31 +07:00
hathach
e0b192b633 - use CFG_TUH_MIDI as number of midi host instance
- comment out tuh_descriptor_device_cb/tuh_desc_configuration_cb since it is unrelated to this PR
2025-02-12 22:16:08 +07:00
hathach
7c405236cf fix host midi build 2025-02-12 11:50:57 +07:00
hathach
294fb268d7 pre-commit fix 2025-02-12 11:39:26 +07:00
hathach
85247e50dd clean up 2025-02-12 11:34:32 +07:00
hathach
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
hathach
ea38115d6c make sure TOTAL_DRIVER_COUNT is not overflow 8-bit 2025-02-11 21:20:42 +07:00
hathach
5a39bcf79c remove freeeRTOSConfig in examples 2025-02-11 21:19:09 +07:00
Ha Thach
457c2b55da Merge pull request #2914 from ReimuNotMoe/master
Various fixes for the Microchip Chipidea FS driver
2025-02-11 16:50:44 +07:00
Ha Thach
24b2abbb05 Merge pull request #2982 from hathach/fix-stringop-overread-warning
fix stringop-overread warning for msc device with memmove
2025-02-10 13:47:52 +07:00
hathach
a232644cbd add full hid usage for Digitizer Page (0x0D), move thing around a bit. 2025-02-07 16:38:14 +07:00
hathach
cd0ca4832d Merge branch 'refs/heads/master' into fork/jay94ks/styluspen 2025-02-07 16:37:51 +07:00
hathach
3ffe8dbfee fix stringop-overread warning for msc device with memmove 2025-02-07 12:48:17 +07:00
Jannis Konrad
169d2d7a1f use speed enum 2025-02-06 08:50:25 +01:00
Jannis Konrad
f7fa4d0edb ch32v3 fs: signal bus speed 2025-02-05 17:36:38 +01:00
HiFiPhile
8d2310247c Fix CI.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-02-02 14:01:15 +01:00
HiFiPhile
84f8876c7c Use return code to choose async io.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-01-31 16:26:10 +01:00
HiFiPhile
b31036dede Merge remote-tracking branch 'upstream/master' into h7rs 2025-01-31 10:38:06 +01:00
HiFiPhile
cc626f35d2 msc_device: add async IO support.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-01-29 15:16:02 +01:00
HiFiPhile
d1ee2bf18f Fix Auto speed display.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-01-29 15:14:25 +01:00
hathach
7641060252 Merge branch 'master' into zephyr-support 2025-01-25 23:48:05 +07:00
hathach
8c7998b0e9 fix ci 2025-01-25 22:24:00 +07:00
HiFiPhile
f6f20e17ab Add NUCLEO-H7S3L8 BSP.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-01-24 16:56:40 +01:00
hathach
31071ccf0e kind of work with zephyr with pca10056 with cmake -DBUILD_ZEPHYR 2025-01-23 17:10:48 +07:00
HiFiPhile
feb41eeceb Merge pull request #2950 from espressif/fix/ncm_buffer_validation
fix(ncm): Return invalid NTBs to free list
2025-01-22 21:02:35 +01:00
hathach
6080f89f3d - change to use CMAKE_SYSTEM_CPU to prevent CMAKE_SYSTEM_PROCESSOR conflict with zephyr
- change tinyusb CMakeLists.txt to function tinyusb_target_add() instead of defining tinyusb lib target
2025-01-22 22:31:08 +07:00
hathach
91214b4614 zephyr 2025-01-21 16:28:29 +07:00
hathach
c8130afe9b bump up cmake min to 3.20 2025-01-21 16:28:26 +07:00
hathach
5b32df5abd add s3 undefined speed note for racing issue with reset.
fix dcd_event_sof() with frame number
2025-01-20 22:47:32 +07:00
Tomas Rezucha
6476ff1241 fix(ncm): Return invalid NTBs to free list
In case we received invalid datagram, we silently fail
a the buffer was not returned to empty list -> it was lost.
If this happened more than CFG_TUD_NCM_OUT_NTB_N times, we run out of
NTBs and all OUT transfers are NACKed.

Closes https://github.com/espressif/esp-usb/issues/107
2025-01-15 19:16:58 +01:00
pschatzmann
b91d5ebb45 rp2040 correct dcd_edpt_iso_activate 2025-01-15 10:18:16 +01:00
HiFiPhile
880aae4be2 Merge pull request #2947 from espressif/fix/ncm_buffer_checks
fix(ncm): Use IN buffer for transmit checks
2025-01-15 10:16:16 +01:00
Roman Leonov
dee6b36923 feature(tusb): Added teardown API 2025-01-15 09:45:29 +01:00
Dan Halbert
76fe0393ed src/class/hid/hid_host.c: fix logging calls for epbuf 2025-01-15 14:54:49 +07:00
Tomas Rezucha
679065c3d6 fix(ncm): Use IN buffer for transmit checks 2025-01-14 16:56:24 +01:00
Reimu NotMoe
655092d568 dcd_pic: check USBBUSY bit on PIC32s 2024-12-27 04:17:26 +08:00