Fork of frankvnk's CC3000 libarary. Added SparkFun's CC3000 wifi sheild to a Nucleo F401RE
Fork of NVIC_set_all_priorities by
NVIC_set_all_priorities.h@0:d3f63dfa84b7, 2013-09-19 (annotated)
- Committer:
- frankvnk
- Date:
- Thu Sep 19 13:38:45 2013 +0000
- Revision:
- 0:d3f63dfa84b7
- Child:
- 2:676bbfffe9f6
First release
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
frankvnk | 0:d3f63dfa84b7 | 1 | #ifndef SET_ALL_PRIO |
frankvnk | 0:d3f63dfa84b7 | 2 | #define SET_ALL_PRIO |
frankvnk | 0:d3f63dfa84b7 | 3 | |
frankvnk | 0:d3f63dfa84b7 | 4 | #include "mbed.h" |
frankvnk | 0:d3f63dfa84b7 | 5 | |
frankvnk | 0:d3f63dfa84b7 | 6 | enum FIRST_LAST_IRQ { |
frankvnk | 0:d3f63dfa84b7 | 7 | #ifdef TARGET_KL05Z |
frankvnk | 0:d3f63dfa84b7 | 8 | first_IRQ_number = SysTick_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 9 | last_IRQ_number = PORTB_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 10 | #elif defined TARGET_KL25Z |
frankvnk | 0:d3f63dfa84b7 | 11 | first_IRQ_number = SysTick_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 12 | last_IRQ_number = PORTD_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 13 | #elif defined LPC11CXX |
frankvnk | 0:d3f63dfa84b7 | 14 | first_IRQ_number = SysTick_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 15 | last_IRQ_number = EINT0_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 16 | #elif defined LPC11UXX |
frankvnk | 0:d3f63dfa84b7 | 17 | first_IRQ_number = SysTick_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 18 | last_IRQ_number = Reserved6_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 19 | #elif defined LPC11XX |
frankvnk | 0:d3f63dfa84b7 | 20 | first_IRQ_number = SysTick_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 21 | last_IRQ_number = EINT0_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 22 | #elif defined LPC13XX |
frankvnk | 0:d3f63dfa84b7 | 23 | first_IRQ_number = SysTick_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 24 | last_IRQ_number = Reserved5_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 25 | #elif defined LPC23XX |
frankvnk | 0:d3f63dfa84b7 | 26 | first_IRQ_number = WDT_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 27 | last_IRQ_number = I2S_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 28 | #elif defined LPC43XX |
frankvnk | 0:d3f63dfa84b7 | 29 | first_IRQ_number = SysTick_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 30 | last_IRQ_number = QEI_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 31 | #elif defined LPC81X |
frankvnk | 0:d3f63dfa84b7 | 32 | first_IRQ_number = SysTick_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 33 | last_IRQ_number = PININT7_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 34 | #elif defined LPC176X |
frankvnk | 0:d3f63dfa84b7 | 35 | first_IRQ_number = SysTick_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 36 | last_IRQ_number = CANActivity_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 37 | #elif defined LPC408X |
frankvnk | 0:d3f63dfa84b7 | 38 | first_IRQ_number = SysTick_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 39 | last_IRQ_number = CMP1_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 40 | #elif defined STM32F4XX |
frankvnk | 0:d3f63dfa84b7 | 41 | first_IRQ_number = SysTick_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 42 | last_IRQ_number = HASH_RNG_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 43 | #elif defined STM32F40XX |
frankvnk | 0:d3f63dfa84b7 | 44 | first_IRQ_number = SysTick_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 45 | last_IRQ_number = FPU_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 46 | #elif defined STM32F427X |
frankvnk | 0:d3f63dfa84b7 | 47 | first_IRQ_number = SysTick_IRQn, |
frankvnk | 0:d3f63dfa84b7 | 48 | last_IRQ_number = SPI6_IRQn |
frankvnk | 0:d3f63dfa84b7 | 49 | #endif |
frankvnk | 0:d3f63dfa84b7 | 50 | }; |
frankvnk | 0:d3f63dfa84b7 | 51 | |
frankvnk | 0:d3f63dfa84b7 | 52 | void NVIC_set_all_irq_priorities(int priority); |
frankvnk | 0:d3f63dfa84b7 | 53 | |
frankvnk | 0:d3f63dfa84b7 | 54 | #endif // SET_ALL_PRIO |