1
0
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:
Hauke Petersen 2021-08-23 14:04:41 +02:00
parent a2c4a73c51
commit 7baf5b4a46

View File

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