Tool to change all interrupt priorities at once. Check the header file for supported mbed targets.

Dependents:   CC3000_Hostdriver KL25Z_FFT_Demo cc3000_hello_world_demo cc3000_simple_socket_demo ... more

Example

#include "NVIC_set_all_priorities.h"
int main()
{
    NVIC_set_all_irq_priorities(3);
    .....
}

Files at this revision

API Documentation at this revision

Comitter:
SolderSplashLabs
Date:
Wed Oct 02 20:18:37 2013 +0000
Parent:
1:c091f2dbc0e5
Child:
3:01504ecd2025
Commit message:
Fixed LPC13xx define

Changed in this revision

NVIC_set_all_priorities.cpp Show annotated file Show diff for this revision Revisions of this file
NVIC_set_all_priorities.h Show annotated file Show diff for this revision Revisions of this file
--- a/NVIC_set_all_priorities.cpp	Wed Oct 02 16:59:40 2013 +0000
+++ b/NVIC_set_all_priorities.cpp	Wed Oct 02 20:18:37 2013 +0000
@@ -14,5 +14,5 @@
 {
     int irqnum;
     for(irqnum = first_IRQ_number ; irqnum < last_IRQ_number + 1 ; irqnum++)
-        NVIC_SetPriority((IRQn)irqnum, priority);
+        NVIC_SetPriority((IRQn_Type)irqnum, priority);
 }
--- a/NVIC_set_all_priorities.h	Wed Oct 02 16:59:40 2013 +0000
+++ b/NVIC_set_all_priorities.h	Wed Oct 02 20:18:37 2013 +0000
@@ -19,7 +19,7 @@
 #elif defined LPC11XX
      first_IRQ_number = SysTick_IRQn,
      last_IRQ_number  = EINT0_IRQn,
-#elif defined LPC13XX
+#elif defined TARGET_LPC13XX
      first_IRQ_number = SysTick_IRQn,
      last_IRQ_number  = Reserved5_IRQn,
 #elif defined LPC23XX