Skip to content

Commit b0dcc74

Browse files
committed
fix build with mbed rp2040
1 parent 023db26 commit b0dcc74

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/arduino/ports/rp2040/Adafruit_TinyUSB_rp2040.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ static void usb_task_irq(void) {
8888
}
8989
}
9090

91+
#ifndef PICO_SHARED_IRQ_HANDLER_LOWEST_ORDER_PRIORITY
92+
#define PICO_SHARED_IRQ_HANDLER_LOWEST_ORDER_PRIORITY 0x00
93+
#endif
94+
9195
// invoked when there is hardware usb irq, trigger task runner later
9296
static void usb_task_trigger_irq(void) { irq_set_pending(USB_TASK_IRQ); }
9397

src/portable/raspberrypi/rp2040/dcd_rp2040.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,11 @@ static void __tusb_irq_path_func(dcd_rp2040_irq)(void)
384384
/* Controller API
385385
*------------------------------------------------------------------*/
386386

387+
// older SDK
388+
#ifndef PICO_SHARED_IRQ_HANDLER_HIGHEST_ORDER_PRIORITY
389+
#define PICO_SHARED_IRQ_HANDLER_HIGHEST_ORDER_PRIORITY 0xff
390+
#endif
391+
387392
void dcd_init (uint8_t rhport)
388393
{
389394
assert(rhport == 0);

0 commit comments

Comments
 (0)