[ECOS] How to write C code for interrupt handler
Gary Thomas
gary@chez-thomas.org
Tue Jun 18 21:25:00 GMT 2002
On Tue, 2002-06-18 at 21:41, Hiroyasu Shimizu wrote:
> This is a GCC issue not eCos.
>
> Unfortunately, current GCC port for ARM dose not support to compile
> functions for interrupt calls as shown in H8/300 port.
It's also not necessary. The eCos interrupt model uses three levels
of interrupt processing:
VSR - the first [lowest] level of interrupt handling. Typically
written in assembly as part of the HAL. Normally this is
quite platform independent.
ISR & DSR - these are the interrupt handlers per se, normally
written in "C" and are quite platform dependent.
Read the eCos documentation and samples for examples. There is
almost never a reason to write the ISR/DSR code in assembly code.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list