blob: 7d46d245a51f1bcbb499926c62ef6ab2b9ec7f59 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#ifndef __stellaris_h__
2#define __stellaris_h__
3
4/* an attempt at a CMSIS compatibility layer for Stellaris */
5
6#include "../ti/inc/hw_ints.h"
7
8typedef 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#endif