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) {
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
9296static void usb_task_trigger_irq (void ) { irq_set_pending (USB_TASK_IRQ); }
9397
Original file line number Diff line number Diff 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+
387392void dcd_init (uint8_t rhport )
388393{
389394 assert (rhport == 0 );
You can’t perform that action at this time.
0 commit comments