Skip to content

allow override of TUD interface counts #378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/arduino/ports/nrf/tusb_config_nrf.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,27 @@ extern "C" {
#define CFG_TUD_ENDOINT0_SIZE 64

//------------- CLASS -------------//
#ifndef CFG_TUD_CDC
#define CFG_TUD_CDC 1
#endif
#ifndef CFG_TUD_MSC
#define CFG_TUD_MSC 1
#endif
#ifndef CFG_TUD_HID
#define CFG_TUD_HID 2
#endif
#ifndef CFG_TUD_MIDI
#define CFG_TUD_MIDI 1
#endif
#ifndef CFG_TUD_VENDOR
#define CFG_TUD_VENDOR 1
#define CFG_TUD_VIDEO 1 // number of video control interfaces
#endif
#ifndef CFG_TUD_VIDEO
#define CFG_TUD_VIDEO 1 // number of video control interfaces
#endif
#ifndef CFG_TUD_VIDEO_STREAMING
#define CFG_TUD_VIDEO_STREAMING 1 // number of video streaming interfaces
#endif

// video streaming endpoint buffer size
#define CFG_TUD_VIDEO_STREAMING_EP_BUFSIZE 256
Expand Down
16 changes: 15 additions & 1 deletion src/arduino/ports/rp2040/tusb_config_rp2040.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,27 @@ extern "C" {

#define CFG_TUD_ENDOINT0_SIZE 64

#ifndef CFG_TUD_CDC
#define CFG_TUD_CDC 1
#endif
#ifndef CFG_TUD_MSC
#define CFG_TUD_MSC 1
#endif
#ifndef CFG_TUD_HID
#define CFG_TUD_HID 2
#endif
#ifndef CFG_TUD_MIDI
#define CFG_TUD_MIDI 1
#endif
#ifndef CFG_TUD_VENDOR
#define CFG_TUD_VENDOR 1
#define CFG_TUD_VIDEO 1 // number of video control interfaces
#endif
#ifndef CFG_TUD_VIDEO
#define CFG_TUD_VIDEO 1 // number of video control interfaces
#endif
#ifndef CFG_TUD_VIDEO_STREAMING
#define CFG_TUD_VIDEO_STREAMING 1 // number of video streaming interfaces
#endif

// video streaming endpoint buffer size
#define CFG_TUD_VIDEO_STREAMING_EP_BUFSIZE 256
Expand Down
16 changes: 15 additions & 1 deletion src/arduino/ports/samd/tusb_config_samd.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,27 @@ extern "C" {
#define CFG_TUD_ENDOINT0_SIZE 64

//------------- CLASS -------------//
#ifndef CFG_TUD_CDC
#define CFG_TUD_CDC 1
#endif
#ifndef CFG_TUD_MSC
#define CFG_TUD_MSC 1
#endif
#ifndef CFG_TUD_HID
#define CFG_TUD_HID 2
#endif
#ifndef CFG_TUD_MIDI
#define CFG_TUD_MIDI 1
#endif
#ifndef CFG_TUD_VENDOR
#define CFG_TUD_VENDOR 1
#define CFG_TUD_VIDEO 1 // number of video control interfaces
#endif
#ifndef CFG_TUD_VIDEO
#define CFG_TUD_VIDEO 1 // number of video control interfaces
#endif
#ifndef CFG_TUD_VIDEO_STREAMING
#define CFG_TUD_VIDEO_STREAMING 1 // number of video streaming interfaces
#endif

// video streaming endpoint buffer size
#define CFG_TUD_VIDEO_STREAMING_EP_BUFSIZE 256
Expand Down