Skip to content

Commit 0438323

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents b10719b + 4b9a629 commit 0438323

File tree

131 files changed

+6416
-4047
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+6416
-4047
lines changed

.github/workflows/githubci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ jobs:
4848
matrix:
4949
arduino-platform:
5050
# ESP32 ci use dev json
51+
- 'feather_esp32_v2'
5152
- 'feather_esp32s2'
5253
- 'feather_esp32s3'
54+
- 'esp32p4'
5355
# nRF52
5456
- 'cpb'
5557
- 'nrf52840'

README.md

Lines changed: 3 additions & 1 deletion

examples/CDC/cdc_multi/.skip.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
feather_esp32_v2
12
feather_esp32s2
23
feather_esp32s3
34
funhouse
45
magtag
56
metroesp32s2
7+
esp32p4
68
pico_rp2040_tinyusb_host

examples/CDC/cdc_multi/cdc_multi.ino

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,27 @@
2525

2626
#include <Adafruit_TinyUSB.h>
2727

28-
#define LED LED_BUILTIN
29-
3028
// Create 2nd instance of CDC Ports.
3129
#ifdef ARDUINO_ARCH_ESP32
32-
#error "Currently multiple CDCs on ESP32-Sx is not yet supported. An PR to update core/esp32/USBCDC and/or pre-built libusb are needed."
30+
#error "Currently multiple CDCs on ESP32 is not yet supported"
3331
// for ESP32, we need to specify instance number when declaring object
3432
Adafruit_USBD_CDC USBSer1(1);
3533
#else
3634
Adafruit_USBD_CDC USBSer1;
3735
#endif
3836

3937
void setup() {
40-
pinMode(LED, OUTPUT);
38+
#ifdef LED_BUILTIN
39+
pinMode(LED_BUILTIN, OUTPUT);
40+
#endif
4141

4242
Serial.begin(115200);
4343

4444
// check to see if multiple CDCs are enabled
4545
if ( CFG_TUD_CDC < 2 ) {
46-
digitalWrite(LED, HIGH); // LED on for error indicator
46+
#ifdef LED_BUILTIN
47+
digitalWrite(LED_BUILTIN, HIGH); // LED on for error indicator
48+
#endif
4749

4850
while(1) {
4951
Serial.printf("CFG_TUD_CDC must be at least 2, current value is %u\n", CFG_TUD_CDC);
@@ -96,7 +98,9 @@ void loop() {
9698

9799
if (delay_without_delaying(500)) {
98100
LEDstate = !LEDstate;
99-
digitalWrite(LED, LEDstate);
101+
#ifdef LED_BUILTIN
102+
digitalWrite(LED_BUILTIN, LEDstate);
103+
#endif
100104
}
101105
}
102106

examples/CDC/no_serial/.pico_rp2040_tinyusb_host.test.skip

Whitespace-only changes.

examples/CDC/no_serial/.skip.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
feather_esp32_v2
2+
pico_rp2040_tinyusb_host

examples/CDC/no_serial/no_serial.ino

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@
1818
* Note: this will cause device to loose the touch1200 and require
1919
* user manual interaction to put device into bootloader/DFU mode.
2020
*/
21-
22-
int led = LED_BUILTIN;
23-
24-
void setup()
25-
{
21+
void setup() {
2622
// Manual begin() is required on core without built-in support e.g. mbed rp2040
2723
if (!TinyUSBDevice.isInitialized()) {
2824
TinyUSBDevice.begin(0);
@@ -38,11 +34,12 @@ void setup()
3834
TinyUSBDevice.attach();
3935
}
4036

41-
pinMode(led, OUTPUT);
37+
#ifdef LED_BUILTIN
38+
pinMode(LED_BUILTIN, OUTPUT);
39+
#endif
4240
}
4341

44-
void loop()
45-
{
42+
void loop() {
4643
#ifdef TINYUSB_NEED_POLLING_TASK
4744
// Manual call tud_task since it isn't called by Core's background
4845
TinyUSBDevice.task();
@@ -53,6 +50,8 @@ void loop()
5350
static uint8_t led_state = 0;
5451
if (millis() - ms > 1000) {
5552
ms = millis();
53+
#ifdef LED_BUILTIN
5654
digitalWrite(LED_BUILTIN, 1-led_state);
55+
#endif
5756
}
5857
}

examples/CDC/serial_echo/.pico_rp2040_tinyusb_host.test.skip

Whitespace-only changes.

examples/CDC/serial_echo/.skip.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
feather_esp32_v2
2+
pico_rp2040_tinyusb_host

examples/Composite/mouse_ramdisk/.pico_rp2040_tinyusb_host.test.skip

Whitespace-only changes.

0 commit comments

Comments
 (0)