This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How to write C code for interrupt handler


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]