File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
portable/raspberrypi/rp2040 Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,10 @@ static void usb_task_irq(void) {
88
88
}
89
89
}
90
90
91
+ #ifndef PICO_SHARED_IRQ_HANDLER_LOWEST_ORDER_PRIORITY
92
+ #define PICO_SHARED_IRQ_HANDLER_LOWEST_ORDER_PRIORITY 0x00
93
+ #endif
94
+
91
95
// invoked when there is hardware usb irq, trigger task runner later
92
96
static void usb_task_trigger_irq (void ) { irq_set_pending (USB_TASK_IRQ); }
93
97
Original file line number Diff line number Diff line change @@ -384,6 +384,11 @@ static void __tusb_irq_path_func(dcd_rp2040_irq)(void)
384
384
/* Controller API
385
385
*------------------------------------------------------------------*/
386
386
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
+
387
392
void dcd_init (uint8_t rhport )
388
393
{
389
394
assert (rhport == 0 );
You can’t perform that action at this time.
0 commit comments