1 #pragma once
2 
3 /* an attempt at a CMSIS compatibility layer for Stellaris */
4 
5 /* from the ti driver library */
6 #include <inc/hw_ints.h>
7 
8 typedef enum IRQn {
9     // base Cortex IRQs
10     NonMaskableInt_IRQn   = FAULT_NMI-16,
11     MemoryManagement_IRQn = FAULT_MPU-16,
12     BusFault_IRQn         = FAULT_BUS-16,
13     UsageFault_IRQn       = FAULT_USAGE-16,
14     SVCall_IRQn           = FAULT_SVCALL-16,
15     DebugMonitor_IRQn     = FAULT_DEBUG-16,
16     PendSV_IRQn           = FAULT_PENDSV-16,
17     SysTick_IRQn          = FAULT_SYSTICK-16
18 } IRQn_Type;
19 
20 // based on datasheet page 159?
21 #define __NVIC_PRIO_BITS 3
22 
23