mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/arm7: add irq_is_enabled()
This commit is contained in:
parent
a2c4a73c51
commit
7baf5b4a46
@ -70,6 +70,11 @@ static inline __attribute__((always_inline)) unsigned irq_enable(void)
|
||||
return _cpsr;
|
||||
}
|
||||
|
||||
static inline __attribute__((always_inline)) int irq_is_enabled(void)
|
||||
{
|
||||
return !(__get_cpsr() & IRQ_MASK);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user