mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 06:53:52 +01:00
cpu/native: implement irq_is_enabled()
This commit is contained in:
parent
d65442a32b
commit
d4181b91fa
@ -220,6 +220,11 @@ void irq_restore(unsigned state)
|
||||
return;
|
||||
}
|
||||
|
||||
int irq_is_enabled(void)
|
||||
{
|
||||
return native_interrupts_enabled;
|
||||
}
|
||||
|
||||
int irq_is_in(void)
|
||||
{
|
||||
DEBUG("irq_is_in: %i\n", _native_in_isr);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user