Commit Graph

1498 Commits

Author SHA1 Message Date
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
cc626f35d2 msc_device: add async IO support.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-01-29 15:16:02 +01: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
f10467e711 Merge branch 'master' into dcd_notif
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-12-01 00:01:33 +01:00
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
Ha Thach
dbc2c8d972 Fix missing protoype warning, change TUD_EPBUF_TYPE_DEF order (#2889)
* change TUD_EPBUF_TYPE_DEF order
* add and fix -Wmissing-prototypes warnings  for   cmake (skip  make)
2024-11-27 18:28:12 +07:00
hathach
9e4b855e53 minor clean up 2024-11-27 11:35:21 +07:00
hathach
453d69517b fix multiple flag on compiling 2024-11-27 11:10:06 +07:00
hathach
67e92e6688 add TUH_EPBUF_DEF for cdc host 2024-11-26 22:07:28 +07:00
hathach
f7efcf3c47 msc host, use usbh_get_enum_buf() for set_config() process 2024-11-26 18:02:59 +07:00
hathach
e9a3f88894 add buffer note for host msc api 2024-11-26 17:28:27 +07:00
hathach
d9f3e7dd25 add TUH_EPBUF_DEF for hid host 2024-11-26 16:32:19 +07:00
hathach
a5f9947a20 msc host work ok with p4 dma 2024-11-26 13:38:03 +07:00
hathach
c09eedaf24 try to fix circleci with kinetis 2024-11-25 17:45:54 +07:00
hathach
07d47ba487 fix ncm incorrect length for notify connection 2024-11-22 20:21:12 +07:00
hathach
5c18a32aaa add TUD_EPBUF_DEF for ecm rndis, also separate notify and control buffer, use edpt_claim() to prevent race condition 2024-11-22 20:09:29 +07:00
hathach
1eb72af433 TUD_EPBUF_TYPE_DEF video_device.c 2024-11-22 18:33:48 +07:00
hathach
7831af3ccf update epnotif endpoint for ncm_device.c 2024-11-22 16:46:26 +07:00
hathach
8a5c118a66 TUD_EPBUF_TYPE_DEF usbtmc_device.c and vendor_device.c 2024-11-22 16:22:10 +07:00
hathach
1533e693ee TUD_EPBUF_TYPE_DEF ncm_device 2024-11-22 15:45:08 +07:00
hathach
090964cd1b apply TUD_EPBUF_DEF for device: bth, dfu, hid, msc 2024-11-22 12:25:37 +07:00
hathach
f148670753 msc_device.c declare and separate epbuf from interface struct, make cbw and csw as normal variable. Also reformat code 2024-11-22 11:22:41 +07:00
hathach
85e54b0fc3 use TUD_EPBUF_DEF to declare buffer memory for midi 2024-11-21 19:36:15 +07:00
hathach
dbdc5a239c - move freertos_hooks to board.c
- add device/midi_test_freertos example
- update bth/dfu/midi device for cache line size
2024-11-21 17:49:38 +07:00
hathach
fa523a5682 make sure usb buffer occupies whole cache line when DCACHE is enabled for msc,cdc,hid
HIL enable device DMA for p4
2024-11-21 10:22:09 +07:00
Ha Thach
fee5ee6f0a Merge pull request #2866 from HiFiPhile/uac_fix
Fix 2 UAC issue
2024-11-18 13:02:23 +07:00
HiFiPhile
cdc98e12c1 Improve EP IN flow control.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-02 17:09:51 +01:00
HiFiPhile
ed8d2c9594 Fix align issue of _audiod_fct.alt_setting.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-02 17:07:44 +01:00
HiFiPhile
038be21e4d Merge pull request #2713 from rgrr/ncm-fix-in-tud_network_recv_renew
NCM: avoid recursions in tud_network_recv_renew()
2024-11-01 22:22:31 +01:00
HiFiPhile
85ff529a31 Merge branch 'master' into dcd_notif
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-10-30 19:47:03 +01:00
Bollen Nico
5d74fb43b3 Extend callback information 2024-10-29 20:41:13 +01:00
Phil Schatzmann
970a03e398 Merge branch 'hathach:master' into rp2040-iso 2024-10-16 03:52:46 +02:00
pschatzmann
87a35c5734 RP2040 Compile Errors 2024-10-15 23:38:16 +02:00
pschatzmann
1b17bc04f9 RP2040 New ISO API 2024-10-15 23:09:05 +02:00