65 |
\code |
\code |
66 |
uint8_t flag; |
uint8_t flag; |
67 |
... |
... |
68 |
SIGNAL(SIG_SOMETHING) { |
ISR(SOME_vect) { |
69 |
flag = 1; |
flag = 1; |
70 |
} |
} |
71 |
... |
... |
324 |
transaction that has just started elsewhere. |
transaction that has just started elsewhere. |
325 |
|
|
326 |
To protect interrupt routines against other interrupt routines, it's |
To protect interrupt routines against other interrupt routines, it's |
327 |
usually best to use the SIGNAL() macro when declaring the interrupt |
usually best to use the ISR() macro when declaring the interrupt |
328 |
function, and to ensure that interrupts are still disabled when |
function, and to ensure that interrupts are still disabled when |
329 |
accessing those 16-bit timer registers. |
accessing those 16-bit timer registers. |
330 |
|
|