From 241ccf874aaa308dcf8621455806f36d96c5733f Mon Sep 17 00:00:00 2001 From: pennam Date: Fri, 7 Feb 2025 13:54:07 +0100 Subject: [PATCH 1/2] tinyusb: update subrepo to 0.18.0 --- .gitmodules | 2 +- extras/tinyusb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 0ec5f4876..9e4df31f3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "extras/tinyusb"] path = extras/tinyusb - url = https://github.com/arduino/tinyusb + url = https://github.com/hathach/tinyusb [submodule "extras/uno-r4-wifi-usb-bridge"] path = extras/uno-r4-wifi-usb-bridge url = https://github.com/arduino/uno-r4-wifi-usb-bridge diff --git a/extras/tinyusb b/extras/tinyusb index c796dcfe0..86ad6e56c 160000 --- a/extras/tinyusb +++ b/extras/tinyusb @@ -1 +1 @@ -Subproject commit c796dcfe0bee337547437632dc16829038ef0f3d +Subproject commit 86ad6e56c1700e85f1c5678607a762cfe3aa2f47 From 2db106fe72bc13104ab83aa351042c566eb09a43 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Fri, 7 Feb 2025 15:03:13 +0100 Subject: [PATCH 2/2] tinyusb: add function introduced in 0.18 --- cores/arduino/usb/USB.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cores/arduino/usb/USB.cpp b/cores/arduino/usb/USB.cpp index bf6144cf8..b2b7b27f4 100644 --- a/cores/arduino/usb/USB.cpp +++ b/cores/arduino/usb/USB.cpp @@ -455,4 +455,8 @@ extern "C" __attribute((weak)) int32_t tud_msc_scsi_cb (uint8_t lun, uint8_t c (void) buffer; (void) bufsize; return -1; -} \ No newline at end of file +} + +extern "C" uint32_t tusb_time_millis_api(void) { + return millis(); +}