rp2040_pio: remove spin_lock_irqsave(NULL) in arch/arm/src/rp2040/rp2040_pio.c
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
b9837bed08
commit
69ee240b45
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Reference in a new issue