mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
rp23xx_pio.c: rm spin_lock_irqsave(NULL) in arch/arm/src/rp23xx/rp23xx_pio.c
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
@@ -46,8 +46,8 @@
|
|||||||
#define hw_claim_lock() spin_lock_irqsave(&pio_lock)
|
#define hw_claim_lock() spin_lock_irqsave(&pio_lock)
|
||||||
#define hw_claim_unlock(save) spin_unlock_irqrestore(&pio_lock, save)
|
#define hw_claim_unlock(save) spin_unlock_irqrestore(&pio_lock, save)
|
||||||
#else
|
#else
|
||||||
#define hw_claim_lock() spin_lock_irqsave(NULL)
|
#define hw_claim_lock() up_irq_save()
|
||||||
#define hw_claim_unlock(save) spin_unlock_irqrestore(NULL, save)
|
#define hw_claim_unlock(save) up_irq_restore(save)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user