extern unsigned char _isr_di;
/* Nested disable interrupts inline function. Should be OK even in ISR. */
-#define ndi() \
- do { \
- if (_isr_di++ == 0) { \
- _isr_gie = GIE; \
- di(); \
- } \
- } while (0)
+void ndi();
/* Nested enable interrupts inline function. Should be OK even in ISR. */
-#define nei() \
- do { \
- if (--_isr_di == 0 && _isr_gie) \
- ei(); \
- } while (0)
+void nei();
void interrupt isr();