nuttx/sim:add up_irq_enbale function.

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
cuiziwei 2023-08-24 17:12:13 +08:00 committed by Petro Karashchenko
parent b750f94896
commit ba73272f67
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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
****************************************************************************/