function allowing us to change all irq priorities at once

Outdated

Use the new library : NVIC_set_all_priorities

Usage

Import this tool as a library.

#include "KL25Z_irq_prio.h"
int main()
{
    ...
    NVIC_SetAllPriority(n);
    ....
}

n can be any number between 0 and 255.

Revision:
0:9769f959709d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/KL25Z_irq_prio.h	Wed Aug 14 19:31:37 2013 +0000
@@ -0,0 +1,17 @@
+/**************************************************************************************************
+ *****                                                                                        *****
+ *****  Name: KL25Z_irq_prio.h                                                                *****
+ *****  Date: 14/08/2013                                                                      *****
+ *****  Auth: Frank Vannieuwkerke                                                             *****
+ *****  Func: library for changing all IRQ priorities at once                                 *****
+ *****                                                                                        *****
+ **************************************************************************************************/
+
+#include "mbed.h"
+
+#ifndef KL25Z_IRQ_PRIO_H
+#define KL25Z_IRQ_PRIO_H
+ 
+void NVIC_SetAllPriority(int prio);
+
+#endif