Thanks a lot, K!


________________________________
From: K Wilson <kwilson...@gmail.com>
To: Nagasrinivas Pinjala <pinja...@yahoo.com>
Cc: psas-avionics <psas-avion...@psas.pdx.edu>
Sent: Saturday, September 17, 2011 9:35 AM
Subject: Re: [psas-avionics] need help


On Fri, Sep 16, 2011 at 7:52 PM, Nagasrinivas Pinjala <pinja...@yahoo.com> 
wrote:

>
>I need guidance as to how to write an interrupt function in C, what are the 
>compiler directives, and what are the registers I need to deal with.
>
>
On function attributes in gcc:
 http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#Function-Attributes

As another example you can look at the 
liblpc23xx/lpc23xx-i2c/lpc23xx-i2c.c 
and liblpc23xx/lpc23xx-i2c/include/lpc23xx-i2c.h
files. The interrupt routine is i2c0_isr(). The interrupt initialization is in 
the 
i2c_init(...) function.

   -K
_______________________________________________
psas-avionics mailing list
psas-avionics@lists.psas.pdx.edu
http://lists.psas.pdx.edu/mailman/listinfo/psas-avionics

Reply via email to