My fork of franks library

Fork of NVIC_set_all_priorities by Frank Vannieuwkerke

Files at this revision

API Documentation at this revision

Comitter:
SolderSplashLabs
Date:
Wed Oct 02 20:18:37 2013 +0000
Parent:
1:c091f2dbc0e5
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
diff -r c091f2dbc0e5 -r 676bbfffe9f6 NVIC_set_all_priorities.cpp
--- 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);
 }
diff -r c091f2dbc0e5 -r 676bbfffe9f6 NVIC_set_all_priorities.h
--- 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