ESOS ISR Question:

2 views
Skip to first unread message

Matt

unread,
Sep 8, 2009, 1:22:34 PM9/8/09
to PIC24 Assembly-to-C Book
Hello! Yet another question: I am trying to register a user ISR with
ESOS. The file esos_pic24_irq.h only contains definitions for the
ISR's used by ESOS. How do I add more? I presume I create a unique
definitions based on the prototype below, taken from
esos_pic24_irq.h:

#define __xESOS_USER_ISR(attrib, ivt, ifsr, ifsb, ipcr, ipcb)
void _ISRFAST attrib (void)

Only problem is, I can't find definitions for attrib, ivt, ifsr, ifsb,
ipcr, and ipcb in either the text book or in the course code.

Thanks!

Matt

unread,
Sep 8, 2009, 6:35:17 PM9/8/09
to PIC24 Assembly-to-C Book
I figured this one out...

/* __xESOS_USER_ISR(attrib, ivt, ifsr, ifsb, ipcr, ipcb)
*
* This is the generic form for all ESOS registered ISRs. The
following
* is a description of each parameter:
*
* attrib = PIC24 Compiler Name
* ivt = Interrupt Vector Table Address
* ifsr = Interrupt Flag Status Register # (0-4)
* ifsb = Interrupt Flag Status Register Bit # (0-15)
* ipcr = Interrupt Priority Control Register # (0-17)
* ipcb = Interrupt Priority Control Register Bit # (0-15)
* Number given is the right-most bot of the three interrupt
priority bits.
*/
Reply all
Reply to author
Forward
0 new messages