hathach
b1eedf4d1d
fix iar make build with wb and u5
2025-04-17 14:40:43 +07:00
Ha Thach
8c1802e41d
Merge pull request #3043 from hathach/hcd-close-ep
...
feat(host) add endpoint close API and feat(HIL) improvement
2025-03-27 10:47:10 +07:00
hathach
db537861b2
device cdc: rename tud_cdc_configure_fifo/_t to tud_cdc_configure/_t
...
add tx_overwritabe_if_not_connected for cdc driver configure
2025-03-24 22:58:21 +07:00
rppicomidi
3324a327cb
Fix #3033 : address review comment
2025-03-21 07:14:10 -07:00
rppicomidi
b0def52f45
Move misplaced statement
2025-03-21 07:13:01 -07:00
rppicomidi
4b46493cb4
Fix #3033 : Increase array bounds and test for overflow
2025-03-20 06:27:23 -07:00
rppicomidi
05e4f8b777
Move iInterface per review comment
2025-03-19 05:57:01 -07:00
rppicomidi
62f00bdf5d
Fix compiler conversion error warning
2025-03-18 07:42:47 -07:00
rppicomidi
5ecea4eefe
fix tuh_midi_itf_get_info() desc->iInterface value
2025-03-18 07:41:49 -07:00
rppicomidi
31b3a2f63b
Fix 3031: implement tuh_midi_itf_get_info()
2025-03-17 07:41:51 -07:00
HiFiPhile
de45e4b01a
Add ctrl buffer alignment.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-03-15 23:49:11 +01:00
rppicomidi
b80800f182
Only clear stream_read & stream_write if they are defined
2025-03-13 10:04:56 -07:00
Cynventria[CitRA]
cf94b3f5fc
fix desc_end in vendord_open()
...
minor fix on calculation of desc_end in vendord_open( ) for descriptor prasing
2025-03-10 14:22:29 +08:00
hathach
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
hathach
39e6375b74
midi host: skip rx data with all zeroes
2025-03-06 10:26:45 +07:00
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
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
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
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
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
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
Jay
5c4e4b1bc2
modified invalid marked unit exponent.
2024-12-23 22:26:08 +09:00
Jay
eb1c2b83ef
trimed trailing whitespaces.
2024-12-23 22:19:35 +09:00
Jay
7e59b595f4
Update hid_device.h
2024-12-23 22:09:59 +09:00
Jay
15b1623aa3
add hid stylus pen device.
...
this works with android, for bypassing that absmouse does not support android.
note that, to hide cursor on android for every touch signal, find cursor option in android settings menu.
references:
1. https://stackoverflow.com/questions/28536602/hid-digitizer-descriptor-doesnt-perform-well-with-landscape-orientation
2. https://github.com/jonathanedgecombe/absmouse/blob/master/src/AbsMouse.cpp
2024-12-23 22:03:37 +09:00
hathach
a39e30db92
Merge branch 'refs/heads/master' into fork/HiFiPhile/rt1170
2024-12-17 11:16:27 +07:00
Ha Thach
8eeddaab36
Merge pull request #2897 from shdeb/hid_pid_defs
...
Adding HID Usage Table Physical Input Device Page (0x0F)
2024-12-13 18:29:53 +07:00
hathach
29fa07d2ad
Merge branch 'master' into fork/HiFiPhile/rt1170
2024-12-11 15:10:12 +07:00
Ha Thach
ed4b1a9b68
Merge pull request #2656 from lijunru-hub/feat/uvc_support_frame_based
...
feat(uvc): support format frame based
2024-12-06 16:25:32 +07:00
shdeb
3f335df508
Adding HID Usage Table Physical Input Device Page (0x0F)
2024-12-06 11:43:54 +05:30
HiFiPhile
df91c12ab2
Reformat audio class.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2024-11-30 23:31:28 +01:00
HiFiPhile
0bca377d52
Fix typo.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2024-11-30 21:57:47 +01:00
HiFiPhile
f2ed60e9fc
Update audio class with dcache support.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2024-11-30 21:49:33 +01:00
hathach
c514a8c879
Merge branch 'master' into fork/pschatzmann/rp2040-iso
2024-11-28 11:02:23 +07:00