File tree 4 files changed +10
-2
lines changed
4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ SRC_C += bindings/videocore/__init__.c \
48
48
lib/sdmmc/sdmmc_mmc.c \
49
49
lib/sdmmc/sdmmc_sd.c \
50
50
lib/tinyusb/src/portable/synopsys/dwc2/dcd_dwc2.c \
51
+ lib/tinyusb/src/portable/synopsys/dwc2/dwc2_common.c \
51
52
peripherals/broadcom/caches.c \
52
53
peripherals/broadcom/gen/interrupt_handlers.c \
53
54
peripherals/broadcom/gen/pins.c \
Original file line number Diff line number Diff line change @@ -197,7 +197,9 @@ ifneq ($(CIRCUITPY_AUDIOBUSIO_PDMIN),0)
197
197
endif
198
198
199
199
ifneq ($(CIRCUITPY_USB ) ,0)
200
- SRC_C += lib/tinyusb/src/portable/synopsys/dwc2/dcd_dwc2.c
200
+ SRC_C += \
201
+ lib/tinyusb/src/portable/synopsys/dwc2/dcd_dwc2.c \
202
+ lib/tinyusb/src/portable/synopsys/dwc2/dwc2_common.c
201
203
endif
202
204
203
205
SRC_S = \
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ extern "C" {
90
90
#endif
91
91
92
92
// Use DMA with the USB peripheral.
93
- #ifdef CONFIG_IDF_TARGET_ESP32P4
93
+ #if defined( CONFIG_IDF_TARGET_ESP32P4 ) || defined( CONFIG_IDF_TARGET_ESP32S2 ) || defined( CONFIG_IDF_TARGET_ESP32S3 )
94
94
#define CFG_TUD_DWC2_DMA_ENABLE (1)
95
95
#define CFG_TUH_DWC2_DMA_ENABLE (1)
96
96
#endif
Original file line number Diff line number Diff line change 7
7
#include "py/objstr.h"
8
8
#include "supervisor/background_callback.h"
9
9
#include "supervisor/linker.h"
10
+ #include "supervisor/shared/tick.h"
10
11
#include "supervisor/usb.h"
11
12
#include "shared/readline/readline.h"
12
13
@@ -152,6 +153,10 @@ void usb_background(void) {
152
153
}
153
154
}
154
155
156
+ uint32_t tusb_time_millis_api (void ) {
157
+ return supervisor_ticks_ms32 ();
158
+ }
159
+
155
160
static background_callback_t usb_callback ;
156
161
static void usb_background_do (void * unused ) {
157
162
usb_background ();
You can’t perform that action at this time.
0 commit comments