David Carr wrote:
Hi all,

Hi, David

[...]
Is there a way to inject a simple sei() into the start of an ISR before
the automatic context save?

This used to be the difference between the "INTERRUPT" and the "SIGNAL" macros.

With a recent gcc / libc, you should declare your interrupt handler as:

ISR(<handler_name>, ISR_NOBLOCK)
{
        ...
}

to have the whole handler run with interrupts enabled.

I hope this helps,

--
Paulo Marques
Software Development Department - Grupo PIE, S.A.
Phone: +351 252 290600, Fax: +351 252 290601
Web: www.grupopie.com

"Prediction is hard. Especially of the future."
Niels Bohr


_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to