rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #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 | |
| 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 | #endif |