e4a55152be
cleanup
2026-03-07 02:05:12 +08:00
fe26e45e64
fixed _open_vc_itf parsing
...
Standard Interface Descriptor (Video Control)
Video Control Header Descriptor
Video Control Camera Terminal Descriptor
Video Control Output Terminal Descriptor
Standard Endpoint Descriptor
Class-Specific VC Interrupt Endpoint Descriptor
Video Control Header Descriptor's wTotalLength
= Header Descriptor + Camera Terminal Descriptor + Output Terminal Descriptor
_end_of_control_descriptor is Output Terminal Descriptor End
the "end" should +7 for _find_desc searchig Standard Endpoint Descriptor
2026-03-07 02:03:50 +08:00
85adf694e6
Merge remote-tracking branch 'tinyusb/master' into copilot/fix-dcd-edpt-xfer-issue
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-11-19 22:05:07 +01:00
ac903db1ce
Merge remote-tracking branch 'tinyusb/master' into embedded-ideas/master
...
Signed-off-by: Mengsk <admin@hifiphile.com >
2025-11-14 15:10:11 +01:00
2f0a35f21a
Merge remote-tracking branch 'tinyusb/master' into copilot/fix-dcd-edpt-xfer-issue
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-11-11 14:11:20 +01:00
8979af34c0
Fixed more alert found by PVS-Studio
2025-11-04 19:56:53 +07:00
22f01aea0d
fix more warnings/alerts
2025-11-03 15:14:52 +07:00
6b3970d5ff
Fixed trailing whitespaces in files (used wrong editor)
2025-10-31 17:29:58 +01:00
889cde7d4b
Video class: Changed pararameters of payload request to a dedicated structure in order to meet coding guideliness
2025-10-30 15:01:52 +01:00
032de0b0df
Video Class: New callback function added which allows to generate frame data on the fly
...
- If buffer is set to NULL, the callback will request payload data from a user function. This allows to work with dynamic content on platforms which are not able to hold a whole frame in memory.
- Callback uses the same "weak" linking as other callbacks for this class.
2025-10-30 12:21:21 +01:00
27415e6114
Add is_isr parameter to usbd_edpt_xfer and usbd_edpt_xfer_fifo
...
- Added bool is_isr parameter to usbd_edpt_xfer() and usbd_edpt_xfer_fifo() wrapper functions
- These are called by class drivers to queue USB transfers
- Updated all callers to pass false by default (non-ISR context)
- Updated audiod_rx_xfer_isr() and audiod_tx_xfer_isr() to pass true (ISR context)
- All 21 unit tests pass
Co-authored-by: HiFiPhile <4375114+HiFiPhile@users.noreply.github.com >
2025-10-22 06:12:08 +00:00
369a1ff515
Update weak callbacks to new syntax
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-09-17 22:48:59 +02:00
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
c514a8c879
Merge branch 'master' into fork/pschatzmann/rp2040-iso
2024-11-28 11:02:23 +07:00
1eb72af433
TUD_EPBUF_TYPE_DEF video_device.c
2024-11-22 18:33:48 +07:00
1b17bc04f9
RP2040 New ISO API
2024-10-15 23:09:05 +02:00
1f18be93db
change the tusb_rhport_init_t struct, exclude the rhport to make API more consistent
2024-10-14 18:27:52 +07:00
15766ad988
fixed _find_desc_format
2024-07-18 00:46:20 +08:00
61eee535c1
feat(uvc): support format frame based
2024-05-22 20:57:23 +08:00
b0568e32a5
Fix tud_video_n_streaming check
2024-04-09 11:11:06 +02:00
42decf28f1
Merge pull request #1835 from MasterQ32/otg_bringup
...
Implements deinit functions for host/device mode switch
2024-04-08 23:48:52 +07:00
c3c0648456
add class driver deinit
2024-04-08 22:07:56 +07:00
e642066562
Move TUP_DCD_EDPT_ISO_ALLOC outside usbd_edpt_close() loop.
2024-04-06 19:02:50 +02:00
2e4d4e4a01
Add endpoint ISO allocation to video class.
2024-04-02 20:54:33 +02:00
ff12544c9a
added dedicate buffer for probe commit payload
2024-03-20 22:45:46 +07:00
5630030a22
improve uvc debug message
2024-03-20 17:55:31 +07:00
5d1f6934fb
fix: uvc multiple interface support
...
1. fix next interface may have IAD_DESC
2. fix vs_itf can't be open on bulk mode.
2024-03-18 10:20:36 +08:00
3f2df94457
video_device: fix uninitialized warning
2024-02-20 08:16:39 -08:00
b5cd673330
rename and add more video descriptors
...
use struct to define uvc descriptor for video_capture since uvc is
rather too complicated to use macro templates
2024-01-26 22:55:55 +07:00
0b8b8af83d
minor update to video capture example
2024-01-25 17:25:48 +07:00
1b04db2a77
Merge branch 'master' into master
2023-08-04 11:48:04 +07:00
979bf32266
default class driver log level to CFG_TUH/TUD_LOG_LEVEL allow application to selectively disable usbd/usbh or driver log
2023-08-02 15:34:18 +07:00
ef49b93532
rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stack
...
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
2023-07-24 15:46:21 +07:00
0693462eba
made line ends consistent.
2023-07-02 09:02:24 +02:00
993b8d6686
Add state variable
2023-03-26 21:18:00 +09:00
e508831561
Update handle streaming interface
2023-03-25 21:25:13 +09:00
78732d6733
Fix streaming interface handling
2023-03-25 21:25:12 +09:00
97f9321e1d
Add handling for bulk EPs
2023-03-25 21:25:12 +09:00
3623ba1884
fix trailing space and new line
...
temporarily disable codespell
2023-03-17 16:12:49 +07:00
498989ee00
use tu_static instead of static _fuzz_thread
2023-02-22 16:23:40 +07:00
557bf82336
Merge pull request #1867 from silvergasp/thread_local_globals
...
fix: Change all static variables to thread when fuzzing
2023-02-22 12:54:32 +07:00
03ec49450d
rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_thread
2023-02-22 11:47:09 +07:00
18c3095346
fix: Change all static variables to thread when fuzzing
2023-01-20 15:45:31 -08:00
daec3c24d8
fix warnings with arithmetic on void* pointer
2023-01-20 15:30:45 +07:00
95ba158a10
Fix UVC probe and commit on MacOS
2022-12-27 23:02:33 +01:00
53dc9d55b5
Fix pointer type to calculate streaming parameter
2022-10-12 20:41:03 +09:00
4be7ffd63f
Fix max payload size to clip at 1023
2022-10-07 21:30:03 +09:00
ee832e4e37
Fix descriptor searching
2022-10-03 21:41:58 +09:00
1debf62707
Fix compile errors
2022-09-13 21:22:02 +09:00
e80714740c
Change images to MJPEG
2022-09-13 21:22:02 +09:00