Skip to content

Commit 0386ab6

Browse files
authored
Merge pull request #257 from adafruit/release-2.0.0
Release 2.0.0
2 parents 7aa566c + 846fe91 commit 0386ab6

14 files changed

+21
-21
lines changed

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name=Adafruit TinyUSB Library
2-
version=1.18.4
2+
version=2.0.0
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=TinyUSB library for Arduino
6-
paragraph=Support nRF5x, SAMD21, SAMD51, RP2040, ESP32-S2
6+
paragraph=Support nRF5x, SAMD21, SAMD51, RP2040, ESP32-S2/S3
77
category=Communication
88
url=https://github.com/adafruit/Adafruit_TinyUSB_Arduino
99
architectures=*

src/Adafruit_TinyUSB.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "tusb_option.h"
3535

3636
// Device
37-
#if TUSB_OPT_DEVICE_ENABLED
37+
#if CFG_TUD_ENABLED
3838

3939
#include "arduino/Adafruit_USBD_Device.h"
4040

src/arduino/Adafruit_TinyUSB_API.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "tusb_option.h"
2626

2727
// ESP32 will use the arduino-esp32 core initialization and Serial
28-
#if TUSB_OPT_DEVICE_ENABLED && !defined(ARDUINO_ARCH_ESP32)
28+
#if CFG_TUD_ENABLED && !defined(ARDUINO_ARCH_ESP32)
2929

3030
#include "Adafruit_TinyUSB.h"
3131

src/arduino/Adafruit_TinyUSB_API.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
// API Version, need to be updated when there is changes for
3232
// TinyUSB_API, USBD_CDC, USBD_Device, USBD_Interface,
33-
#define TINYUSB_API_VERSION 11600
33+
#define TINYUSB_API_VERSION 20000
3434

3535
//--------------------------------------------------------------------+
3636
// Core API

src/arduino/Adafruit_USBD_CDC.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "tusb_option.h"
2626

27-
#if TUSB_OPT_DEVICE_ENABLED && CFG_TUD_CDC && !defined(ARDUINO_ARCH_ESP32)
27+
#if CFG_TUD_ENABLED && CFG_TUD_CDC && !defined(ARDUINO_ARCH_ESP32)
2828

2929
#include "Arduino.h"
3030

@@ -265,4 +265,4 @@ void tud_cdc_line_state_cb(uint8_t instance, bool dtr, bool rts) {
265265
}
266266
}
267267

268-
#endif // TUSB_OPT_DEVICE_ENABLED
268+
#endif // CFG_TUD_ENABLED

src/arduino/Adafruit_USBD_Device.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "tusb_option.h"
2626

27-
#if TUSB_OPT_DEVICE_ENABLED
27+
#if CFG_TUD_ENABLED
2828

2929
#include "Adafruit_TinyUSB_API.h"
3030

@@ -555,4 +555,4 @@ void tud_dfu_runtime_reboot_to_dfu_cb(void) {
555555

556556
#endif // ESP32
557557

558-
#endif // TUSB_OPT_DEVICE_ENABLED
558+
#endif // CFG_TUD_ENABLED

src/arduino/hid/Adafruit_USBD_HID.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "tusb_option.h"
2626

27-
#if TUSB_OPT_DEVICE_ENABLED && CFG_TUD_HID
27+
#if CFG_TUD_ENABLED && CFG_TUD_HID
2828

2929
#include "Adafruit_USBD_HID.h"
3030

@@ -288,4 +288,4 @@ bool Adafruit_USBD_HID::mouseButtonRelease(uint8_t report_id) {
288288
return tud_hid_mouse_report(report_id, 0, 0, 0, 0, 0);
289289
}
290290

291-
#endif // TUSB_OPT_DEVICE_ENABLED
291+
#endif // CFG_TUD_ENABLED

src/arduino/midi/Adafruit_USBD_MIDI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "tusb_option.h"
2626

27-
#if TUSB_OPT_DEVICE_ENABLED && CFG_TUD_MIDI
27+
#if CFG_TUD_ENABLED && CFG_TUD_MIDI
2828

2929
#include "Adafruit_USBD_MIDI.h"
3030

@@ -190,4 +190,4 @@ bool Adafruit_USBD_MIDI::readPacket(uint8_t packet[4]) {
190190
return tud_midi_packet_read(packet);
191191
}
192192

193-
#endif // TUSB_OPT_DEVICE_ENABLED
193+
#endif // CFG_TUD_ENABLED

src/arduino/msc/Adafruit_USBD_MSC.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "tusb_option.h"
2626

27-
#if TUSB_OPT_DEVICE_ENABLED && CFG_TUD_MSC
27+
#if CFG_TUD_ENABLED && CFG_TUD_MSC
2828

2929
#include "Adafruit_USBD_MSC.h"
3030

@@ -292,4 +292,4 @@ bool tud_msc_is_writable_cb(uint8_t lun) {
292292

293293
} // extern "C"
294294

295-
#endif // TUSB_OPT_DEVICE_ENABLED
295+
#endif // CFG_TUD_ENABLED

src/arduino/ports/esp32/Adafruit_TinyUSB_esp32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "tusb_option.h"
2626

27-
#if defined(ARDUINO_ARCH_ESP32) && TUSB_OPT_DEVICE_ENABLED
27+
#if defined(ARDUINO_ARCH_ESP32) && CFG_TUD_ENABLED
2828

2929
#include <stdint.h>
3030

src/arduino/ports/nrf/Adafruit_TinyUSB_nrf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "tusb_option.h"
2626

27-
#if defined ARDUINO_NRF52_ADAFRUIT && TUSB_OPT_DEVICE_ENABLED
27+
#if defined ARDUINO_NRF52_ADAFRUIT && CFG_TUD_ENABLED
2828

2929
#include "nrfx.h"
3030
#include "nrfx_power.h"

src/arduino/ports/rp2040/Adafruit_TinyUSB_rp2040.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "tusb_option.h"
2626

27-
#if defined ARDUINO_ARCH_RP2040 && TUSB_OPT_DEVICE_ENABLED
27+
#if defined ARDUINO_ARCH_RP2040 && CFG_TUD_ENABLED
2828

2929
#include "Arduino.h"
3030

src/arduino/ports/samd/Adafruit_TinyUSB_samd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "tusb_option.h"
2626

27-
#if defined ARDUINO_ARCH_SAMD && TUSB_OPT_DEVICE_ENABLED
27+
#if defined ARDUINO_ARCH_SAMD && CFG_TUD_ENABLED
2828

2929
#include "Arduino.h"
3030
#include <Reset.h> // Needed for auto-reset with 1200bps port touch

src/arduino/webusb/Adafruit_USBD_WebUSB.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "tusb_option.h"
2626

27-
#if TUSB_OPT_DEVICE_ENABLED && CFG_TUD_VENDOR
27+
#if CFG_TUD_ENABLED && CFG_TUD_VENDOR
2828

2929
#include "Adafruit_USBD_WebUSB.h"
3030
#include "Arduino.h"
@@ -349,4 +349,4 @@ bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage,
349349
}
350350
}
351351

352-
#endif // TUSB_OPT_DEVICE_ENABLED
352+
#endif // CFG_TUD_ENABLED

0 commit comments

Comments
 (0)