CC35xxDriverLibrary
interrupt.c File Reference
#include "interrupt.h"
#include "debug.h"
#include "../inc/hw_ints.h"
#include "../inc/hw_types.h"
#include "../cmsis/cc35xx.h"
#include "../cmsis/core/core_cm33.h"
Include dependency graph for interrupt.c:

Macros

#define VTOR_ALIGNMENT   512
 

Functions

static void IntDefaultHandler (void)
 The default interrupt handler. More...
 
void IntRegister (uint32_t intNum, void(*handler)(void))
 Global pointer to the (dynamic) interrupt vector table when placed in CRAM. More...
 
void IntUnregister (uint32_t intNum)
 Unregisters an interrupt handler in the dynamic vector table. More...
 
void IntSetPriority (uint32_t intNum, uint8_t priority)
 Sets the priority of an interrupt. More...
 
int32_t IntGetPriority (uint32_t intNum)
 Gets the priority of an interrupt. More...
 
void IntEnable (uint32_t intNum)
 Enables an interrupt or system exception. More...
 
void IntDisable (uint32_t intNum)
 Disables an interrupt or system exception. More...
 
void IntSetPend (uint32_t intNum)
 Pends an interrupt. More...
 
bool IntGetPend (uint32_t intNum)
 Checks if an interrupt is pending. More...
 
void IntClearPend (uint32_t intNum)
 Unpends an interrupt. More...
 

Macro Definition Documentation

§ VTOR_ALIGNMENT

#define VTOR_ALIGNMENT   512

Referenced by IntDefaultHandler().

Function Documentation

§ IntDefaultHandler()

static void IntDefaultHandler ( void  )
static

The default interrupt handler.

This is the default interrupt handler for all interrupts. It simply loops forever so that the system state is preserved for observation by a debugger. Since interrupts should be disabled before unregistering the corresponding handler, this should never be called.

Returns
None

References __attribute__(), NUM_INTERRUPTS, and VTOR_ALIGNMENT.

Referenced by IntUnregister().