4 static volatile uint32_t _twr_irq_primask = 0;
5 static volatile uint32_t _twr_irq_disable = 0;
9 uint32_t primask = __get_PRIMASK();
13 if (_twr_irq_disable == 0)
15 _twr_irq_primask = primask & 1;
23 if (_twr_irq_disable != 0)
27 if (_twr_irq_disable == 0 && _twr_irq_primask == 0)
void twr_irq_disable(void)
Disable interrupt requests globally (call can be nested)
void twr_irq_enable(void)
Enable interrupt requests globally (call can be nested)