40 #ifndef __INTERRUPT_H__ 41 #define __INTERRUPT_H__ 63 void (*pfnHandler)(void);
75 #define INT_PRIORITY_MASK ((0xFF << (8 - NUM_PRIORITY_BITS)) & 0xFF) 80 #define INT_PRIORITY_LVL_0 0x00 81 #define INT_PRIORITY_LVL_1 0x20 82 #define INT_PRIORITY_LVL_2 0x40 83 #define INT_PRIORITY_LVL_3 0x60 84 #define INT_PRIORITY_LVL_4 0x80 85 #define INT_PRIORITY_LVL_5 0xA0 86 #define INT_PRIORITY_LVL_6 0xC0 87 #define INT_PRIORITY_LVL_7 0xE0 97 extern void IntRegister(
unsigned long ulInterrupt,
void (*pfnHandler)(
void));
102 unsigned char ucPriority);
104 extern void IntEnable(
unsigned long ulInterrupt);
105 extern void IntDisable(
unsigned long ulInterrupt);
106 extern void IntPendSet(
unsigned long ulInterrupt);
120 #endif // __INTERRUPT_H__ void IntEnable(unsigned long ulInterrupt)
Definition: interrupt.c:461
Definition: interrupt.h:61
void IntPriorityMaskSet(unsigned long ulPriorityMask)
Definition: interrupt.c:733
tBoolean IntMasterEnable(void)
Definition: interrupt.c:180
void IntRegister(unsigned long ulInterrupt, void(*pfnHandler)(void))
Definition: interrupt.c:253
void IntPendSet(unsigned long ulInterrupt)
Definition: interrupt.c:610
void IntPrioritySet(unsigned long ulInterrupt, unsigned char ucPriority)
Definition: interrupt.c:401
tBoolean IntMasterDisable(void)
Definition: interrupt.c:207
void IntUnregister(unsigned long ulInterrupt)
Definition: interrupt.c:283
void IntPendClear(unsigned long ulInterrupt)
Definition: interrupt.c:675
unsigned long IntPriorityMaskGet(void)
Definition: interrupt.c:759
void IntPriorityGroupingSet(unsigned long ulBits)
Definition: interrupt.c:313
unsigned long IntPriorityGroupingGet(void)
Definition: interrupt.c:337
void IntDisable(unsigned long ulInterrupt)
Definition: interrupt.c:533
void IntVTableBaseSet(unsigned long ulVtableBase)
Definition: interrupt.c:229
long IntPriorityGet(unsigned long ulInterrupt)
Definition: interrupt.c:433