nuttx/sim:add up_irq_enbale function.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
parent
b750f94896
commit
ba73272f67
|
@ -118,6 +118,7 @@ int up_cpu_index(void);
|
|||
irqstate_t up_irq_flags(void);
|
||||
irqstate_t up_irq_save(void);
|
||||
void up_irq_restore(irqstate_t flags);
|
||||
void up_irq_enable(void);
|
||||
|
||||
/****************************************************************************
|
||||
* Inline functions
|
||||
|
|
|
@ -118,6 +118,19 @@ void up_irq_restore(uint64_t flags)
|
|||
pthread_sigmask(SIG_SETMASK, &nmask.sigset, NULL);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: up_irq_enable
|
||||
*
|
||||
* Description:
|
||||
* Enable interrupts.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void up_irq_enable(void)
|
||||
{
|
||||
up_irq_restore(0);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: up_irqinitialize
|
||||
****************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue