48 #ifndef __INTERRUPT_H__
49 #define __INTERRUPT_H__
64 #include <inc/hw_ints.h>
65 #include <inc/hw_types.h>
66 #include <inc/hw_nvic.h>
84 #define IntRegister NOROM_IntRegister
85 #define IntUnregister NOROM_IntUnregister
86 #define IntPriorityGroupingSet NOROM_IntPriorityGroupingSet
87 #define IntPriorityGroupingGet NOROM_IntPriorityGroupingGet
88 #define IntPrioritySet NOROM_IntPrioritySet
89 #define IntPriorityGet NOROM_IntPriorityGet
90 #define IntEnable NOROM_IntEnable
91 #define IntDisable NOROM_IntDisable
92 #define IntPendSet NOROM_IntPendSet
93 #define IntPendGet NOROM_IntPendGet
94 #define IntPendClear NOROM_IntPendClear
107 #define INT_PRIORITY_MASK 0x000000E0
108 #define INT_PRI_LEVEL0 0x00000000
109 #define INT_PRI_LEVEL1 0x00000020
110 #define INT_PRI_LEVEL2 0x00000040
111 #define INT_PRI_LEVEL3 0x00000060
112 #define INT_PRI_LEVEL4 0x00000080
113 #define INT_PRI_LEVEL5 0x000000A0
114 #define INT_PRI_LEVEL6 0x000000C0
115 #define INT_PRI_LEVEL7 0x000000E0
192 extern void IntRegister(uint32_t ui32Interrupt,
void (*pfnHandler)(
void));
274 extern void IntPrioritySet(uint32_t ui32Interrupt, uint8_t ui8Priority);
311 extern void IntEnable(uint32_t ui32Interrupt);
326 extern void IntDisable(uint32_t ui32Interrupt);
345 extern void IntPendSet(uint32_t ui32Interrupt);
366 extern bool IntPendGet(uint32_t ui32Interrupt);
433 __STATIC_INLINE uint32_t
445 #if !defined(DRIVERLIB_NOROM) && !defined(DOXYGEN)
447 #ifdef ROM_IntRegister
449 #define IntRegister ROM_IntRegister
451 #ifdef ROM_IntUnregister
453 #define IntUnregister ROM_IntUnregister
455 #ifdef ROM_IntPriorityGroupingSet
456 #undef IntPriorityGroupingSet
457 #define IntPriorityGroupingSet ROM_IntPriorityGroupingSet
459 #ifdef ROM_IntPriorityGroupingGet
460 #undef IntPriorityGroupingGet
461 #define IntPriorityGroupingGet ROM_IntPriorityGroupingGet
463 #ifdef ROM_IntPrioritySet
464 #undef IntPrioritySet
465 #define IntPrioritySet ROM_IntPrioritySet
467 #ifdef ROM_IntPriorityGet
468 #undef IntPriorityGet
469 #define IntPriorityGet ROM_IntPriorityGet
473 #define IntEnable ROM_IntEnable
475 #ifdef ROM_IntDisable
477 #define IntDisable ROM_IntDisable
479 #ifdef ROM_IntPendSet
481 #define IntPendSet ROM_IntPendSet
483 #ifdef ROM_IntPendGet
485 #define IntPendGet ROM_IntPendGet
487 #ifdef ROM_IntPendClear
489 #define IntPendClear ROM_IntPendClear
502 #endif // __INTERRUPT_H__
int32_t IntPriorityGet(uint32_t ui32Interrupt)
Gets the priority of an interrupt.
void IntPendClear(uint32_t ui32Interrupt)
Unpends an interrupt.
void IntPriorityGroupingSet(uint32_t ui32Bits)
Sets the priority grouping of the interrupt controller.
uint32_t IntPriorityGroupingGet(void)
Gets the priority grouping of the interrupt controller.
void IntPendSet(uint32_t ui32Interrupt)
Pends an interrupt.
static void CPUbasepriSet(uint32_t ui32NewBasepri)
Update the interrupt priority disable level.
static bool IntMasterEnable(void)
Enables the processor interrupt.
uint32_t CPUcpsid(void)
Disable all external interrupts.
static uint32_t IntPriorityMaskGet(void)
Gets the priority masking level.
void IntUnregister(uint32_t ui32Interrupt)
Unregisters the function to be called when an interrupt occurs.
void IntPrioritySet(uint32_t ui32Interrupt, uint8_t ui8Priority)
Sets the priority of an interrupt.
static void IntPriorityMaskSet(uint32_t ui32PriorityMask)
Sets the priority masking level.
uint32_t CPUcpsie(void)
Enable all external interrupts.
bool IntPendGet(uint32_t ui32Interrupt)
Query whether an interrupt is pending.
static bool IntMasterDisable(void)
Disables the processor interrupt.
uint32_t CPUbasepriGet(void)
Get the interrupt priority disable level.
void IntDisable(uint32_t ui32Interrupt)
Disables an interrupt.
void IntRegister(uint32_t ui32Interrupt, void(*pfnHandler)(void))
Registers a function to be called when an interrupt occurs.
void IntEnable(uint32_t ui32Interrupt)
Enables an interrupt.