diff --git a/arch/arm/src/rp2040/rp2040_pio.c b/arch/arm/src/rp2040/rp2040_pio.c index 9f87faafbe..ee4c6e45cd 100644 --- a/arch/arm/src/rp2040/rp2040_pio.c +++ b/arch/arm/src/rp2040/rp2040_pio.c @@ -59,8 +59,8 @@ #define hw_claim_lock() spin_lock_irqsave(&pio_lock) #define hw_claim_unlock(save) spin_unlock_irqrestore(&pio_lock, save) #else -#define hw_claim_lock() spin_lock_irqsave(NULL) -#define hw_claim_unlock(save) spin_unlock_irqrestore(NULL, save) +#define hw_claim_lock() up_irq_save() +#define hw_claim_unlock(save) up_irq_restore(save) #endif /****************************************************************************