Fork of frankvnk's CC3000 libarary. Added SparkFun's CC3000 wifi sheild to a Nucleo F401RE
Fork of NVIC_set_all_priorities by
Diff: NVIC_set_all_priorities.h
- Revision:
- 0:d3f63dfa84b7
- Child:
- 2:676bbfffe9f6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/NVIC_set_all_priorities.h Thu Sep 19 13:38:45 2013 +0000 @@ -0,0 +1,54 @@ +#ifndef SET_ALL_PRIO +#define SET_ALL_PRIO + +#include "mbed.h" + +enum FIRST_LAST_IRQ { +#ifdef TARGET_KL05Z + first_IRQ_number = SysTick_IRQn, + last_IRQ_number = PORTB_IRQn, +#elif defined TARGET_KL25Z + first_IRQ_number = SysTick_IRQn, + last_IRQ_number = PORTD_IRQn, +#elif defined LPC11CXX + first_IRQ_number = SysTick_IRQn, + last_IRQ_number = EINT0_IRQn, +#elif defined LPC11UXX + first_IRQ_number = SysTick_IRQn, + last_IRQ_number = Reserved6_IRQn, +#elif defined LPC11XX + first_IRQ_number = SysTick_IRQn, + last_IRQ_number = EINT0_IRQn, +#elif defined LPC13XX + first_IRQ_number = SysTick_IRQn, + last_IRQ_number = Reserved5_IRQn, +#elif defined LPC23XX + first_IRQ_number = WDT_IRQn, + last_IRQ_number = I2S_IRQn, +#elif defined LPC43XX + first_IRQ_number = SysTick_IRQn, + last_IRQ_number = QEI_IRQn, +#elif defined LPC81X + first_IRQ_number = SysTick_IRQn, + last_IRQ_number = PININT7_IRQn, +#elif defined LPC176X + first_IRQ_number = SysTick_IRQn, + last_IRQ_number = CANActivity_IRQn, +#elif defined LPC408X + first_IRQ_number = SysTick_IRQn, + last_IRQ_number = CMP1_IRQn, +#elif defined STM32F4XX + first_IRQ_number = SysTick_IRQn, + last_IRQ_number = HASH_RNG_IRQn, +#elif defined STM32F40XX + first_IRQ_number = SysTick_IRQn, + last_IRQ_number = FPU_IRQn, +#elif defined STM32F427X + first_IRQ_number = SysTick_IRQn, + last_IRQ_number = SPI6_IRQn +#endif +}; + +void NVIC_set_all_irq_priorities(int priority); + +#endif // SET_ALL_PRIO