include/nuttx/irq.h: Fix enter_critical_section/spin_lock_irqsave macro typo error and remove the duplicated inclusion of arch/irq.h
This commit is contained in:
parent
32075ef9d8
commit
6884af68d8
@ -46,7 +46,6 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
# include <arch/irq.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@ -203,7 +202,7 @@ int irqchain_detach(int irq, xcpt_t isr, FAR void *arg);
|
|||||||
#ifdef CONFIG_IRQCOUNT
|
#ifdef CONFIG_IRQCOUNT
|
||||||
irqstate_t enter_critical_section(void);
|
irqstate_t enter_critical_section(void);
|
||||||
#else
|
#else
|
||||||
# define enter_critical_section(f) up_irq_save(f)
|
# define enter_critical_section() up_irq_save()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@ -265,7 +264,7 @@ void leave_critical_section(irqstate_t flags);
|
|||||||
defined(CONFIG_ARCH_GLOBAL_IRQDISABLE)
|
defined(CONFIG_ARCH_GLOBAL_IRQDISABLE)
|
||||||
irqstate_t spin_lock_irqsave(void);
|
irqstate_t spin_lock_irqsave(void);
|
||||||
#else
|
#else
|
||||||
# define spin_lock_irqsave(f) enter_critical_section(f)
|
# define spin_lock_irqsave() enter_critical_section()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user