Op 19-7-2010 17:10, Sébastien Lorquet wrote:
> hi,
>
> i'm playing with interrupts in pic18.
>
The way I use this works. Code is for the uart interrupts:
main.c:
extern _RC_handler;
extern _TX_handler;
DEF_INTHIGH(high_int)
DEF_HANDLER(SIG_RC, _RC_handler)
DEF_HANDLER(SIG_TX, _TX_handler)
END_DEF
And in an uart.c:
SIGHANDLER(_TX_handler) {
// Code
}
SIGHANDLER(_RC_handler) {
// Code here
}
Hope this helps you further,
Roel Adriaans
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user