Skip to content

Commit ad36148

Browse files
committed
minor config update
1 parent c359a82 commit ad36148

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

src/arduino/hid/Adafruit_USBD_HID.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ uint16_t Adafruit_USBD_HID::getInterfaceDescriptor(uint8_t itfnum, uint8_t *buf,
8383
// usb core will automatically update endpoint number
8484
uint8_t const desc_inout[] = {
8585
TUD_HID_INOUT_DESCRIPTOR(itfnum, 0, _protocol, _desc_report_len, EPIN,
86-
EPOUT, CFG_TUD_HID_BUFSIZE, _interval_ms)};
86+
EPOUT, CFG_TUD_HID_EP_BUFSIZE, _interval_ms)};
8787
uint8_t const desc_in_only[] = {
8888
TUD_HID_DESCRIPTOR(itfnum, 0, _protocol, _desc_report_len, EPIN,
89-
CFG_TUD_HID_BUFSIZE, _interval_ms)};
89+
CFG_TUD_HID_EP_BUFSIZE, _interval_ms)};
9090

9191
uint8_t const *desc;
9292
uint16_t len;

src/arduino/ports/esp32/tusb_config_esp32.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ extern "C" {
6666
#define CFG_TUD_CDC_TX_BUFSIZE 256
6767

6868
// MSC Buffer size of Device Mass storage
69-
#define CFG_TUD_MSC_BUFSIZE 512
69+
#define CFG_TUD_MSC_EP_BUFSIZE 512
7070

7171
// HID buffer size Should be sufficient to hold ID (if any) + Data
72-
#define CFG_TUD_HID_BUFSIZE 64
72+
#define CFG_TUD_HID_EP_BUFSIZE 64
7373

7474
// MIDI FIFO size of TX and RX
7575
#define CFG_TUD_MIDI_RX_BUFSIZE 128

src/arduino/ports/nrf/tusb_config_nrf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ extern "C" {
6666
#define CFG_TUD_CDC_TX_BUFSIZE 256
6767

6868
// MSC Buffer size of Device Mass storage
69-
#define CFG_TUD_MSC_BUFSIZE 512
69+
#define CFG_TUD_MSC_EP_BUFSIZE 512
7070

7171
// HID buffer size Should be sufficient to hold ID (if any) + Data
72-
#define CFG_TUD_HID_BUFSIZE 64
72+
#define CFG_TUD_HID_EP_BUFSIZE 64
7373

7474
// MIDI FIFO size of TX and RX
7575
#define CFG_TUD_MIDI_RX_BUFSIZE 128

src/arduino/ports/rp2040/tusb_config_rp2040.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ extern "C" {
7070
#define CFG_TUD_CDC_TX_BUFSIZE 256
7171

7272
// MSC Buffer size of Device Mass storage
73-
#define CFG_TUD_MSC_BUFSIZE 512
73+
#define CFG_TUD_MSC_EP_BUFSIZE 512
7474

7575
// HID buffer size Should be sufficient to hold ID (if any) + Data
76-
#define CFG_TUD_HID_BUFSIZE 64
76+
#define CFG_TUD_HID_EP_BUFSIZE 64
7777

7878
// MIDI FIFO size of TX and RX
7979
#define CFG_TUD_MIDI_RX_BUFSIZE 128

src/arduino/ports/samd/tusb_config_samd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ extern "C" {
7272
#define CFG_TUD_CDC_TX_BUFSIZE 256
7373

7474
// MSC Buffer size of Device Mass storage
75-
#define CFG_TUD_MSC_BUFSIZE 512
75+
#define CFG_TUD_MSC_EP_BUFSIZE 512
7676

7777
// HID buffer size Should be sufficient to hold ID (if any) + Data
78-
#define CFG_TUD_HID_BUFSIZE 64
78+
#define CFG_TUD_HID_EP_BUFSIZE 64
7979

8080
// MIDI FIFO size of TX and RX
8181
#define CFG_TUD_MIDI_RX_BUFSIZE 128

src/tusb_config.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@
3131

3232
#if defined(ARDUINO_ARCH_SAMD)
3333
#include "arduino/ports/samd/tusb_config_samd.h"
34-
#endif
3534

36-
#if defined(ARDUINO_ARCH_NRF52)
35+
#elif defined(ARDUINO_ARCH_NRF52)
3736
#include "arduino/ports/nrf/tusb_config_nrf.h"
38-
#endif
3937

40-
#if defined(ARDUINO_ARCH_RP2040)
38+
#elif defined(ARDUINO_ARCH_RP2040)
4139
#include "arduino/ports/rp2040/tusb_config_rp2040.h"
42-
#endif
4340

44-
#if defined(ARDUINO_ARCH_ESP32)
41+
#elif defined(ARDUINO_ARCH_ESP32)
4542
#include "arduino/ports/esp32/tusb_config_esp32.h"
43+
44+
#else
45+
#error TinyUSB Arduino Library does not support your core yet
4646
#endif
4747

4848
#ifdef __cplusplus

0 commit comments

Comments
 (0)