Skip to content

Commit d9a9dc5

Browse files
committed
fix PICO_SHARED_IRQ_HANDLER_HIGHEST_ORDER_PRIORITY not defined in old pico-sdk
1 parent ea8ecea commit d9a9dc5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/portable/raspberrypi/rp2040/dcd_rp2040.c

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

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

0 commit comments

Comments
 (0)