36 #ifndef __INTERRUPT_H__ 37 #define __INTERRUPT_H__ 61 #include "../inc/hw_ints.h" 62 #include "../inc/hw_types.h" 64 #include "../cmsis/cc35xx.h" 65 #include "../cmsis/core/core_cm33.h" 79 #define INT_PRIORITY_MASK 0x000000F0 80 #define INT_PRI_LEVEL0 0x00000000 81 #define INT_PRI_LEVEL1 0x00000010 82 #define INT_PRI_LEVEL2 0x00000020 83 #define INT_PRI_LEVEL3 0x00000030 84 #define INT_PRI_LEVEL4 0x00000040 85 #define INT_PRI_LEVEL5 0x00000050 86 #define INT_PRI_LEVEL6 0x00000060 87 #define INT_PRI_LEVEL7 0x00000070 88 #define INT_PRI_LEVEL8 0x00000080 89 #define INT_PRI_LEVEL9 0x00000090 90 #define INT_PRI_LEVEL10 0x000000A0 91 #define INT_PRI_LEVEL11 0x000000B0 92 #define INT_PRI_LEVEL12 0x000000C0 93 #define INT_PRI_LEVEL13 0x000000D0 94 #define INT_PRI_LEVEL14 0x000000E0 95 #define INT_PRI_LEVEL15 0x000000F0 129 extern void IntRegister(uint32_t intNum,
void (*handler)(
void));
342 return (interruptsDisabled);
363 return (interruptsDisabled);
383 #endif // __INTERRUPT_H__ __STATIC_INLINE bool IntDisableMaster(void)
Disables the CPU interrupts with configurable priority.
Definition: interrupt.h:358
void IntEnable(uint32_t intNum)
Enables an interrupt or system exception.
Definition: interrupt.c:211
int32_t IntGetPriority(uint32_t intNum)
Gets the priority of an interrupt.
Definition: interrupt.c:184
#define __STATIC_INLINE
Definition: hw_types.h:57
__STATIC_INLINE bool IntEnableMaster(void)
Enables the CPU interrupt.
Definition: interrupt.h:337
bool IntGetPend(uint32_t intNum)
Checks if an interrupt is pending.
Definition: interrupt.c:299
__STATIC_FORCEINLINE void __disable_irq(void)
Disable IRQ Interrupts.
Definition: cmsis_gcc.h:207
__STATIC_FORCEINLINE uint32_t __get_PRIMASK(void)
Get Priority Mask.
Definition: cmsis_gcc.h:449
void IntClearPend(uint32_t intNum)
Unpends an interrupt.
Definition: interrupt.c:329
void IntUnregister(uint32_t intNum)
Unregisters an interrupt handler in the dynamic vector table.
Definition: interrupt.c:142
void IntSetPriority(uint32_t intNum, uint8_t priority)
Sets the priority of an interrupt.
Definition: interrupt.c:156
void IntRegister(uint32_t intNum, void(*handler)(void))
Registers a function as an interrupt handler in the dynamic vector table.
Definition: interrupt.c:107
void IntSetPend(uint32_t intNum)
Pends an interrupt.
Definition: interrupt.c:263
__STATIC_FORCEINLINE void __enable_irq(void)
Enable IRQ Interrupts.
Definition: cmsis_gcc.h:196
void IntDisable(uint32_t intNum)
Disables an interrupt or system exception.
Definition: interrupt.c:237