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.
KL25Z_irq_prio.h@1:d2dd5df65f0e, 2013-08-15 (annotated)
- Committer:
- frankvnk
- Date:
- Thu Aug 15 07:45:26 2013 +0000
- Revision:
- 1:d2dd5df65f0e
- Parent:
- 0:9769f959709d
removed mbed lib
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
frankvnk | 0:9769f959709d | 1 | /************************************************************************************************** |
frankvnk | 0:9769f959709d | 2 | ***** ***** |
frankvnk | 0:9769f959709d | 3 | ***** Name: KL25Z_irq_prio.h ***** |
frankvnk | 0:9769f959709d | 4 | ***** Date: 14/08/2013 ***** |
frankvnk | 0:9769f959709d | 5 | ***** Auth: Frank Vannieuwkerke ***** |
frankvnk | 0:9769f959709d | 6 | ***** Func: library for changing all IRQ priorities at once ***** |
frankvnk | 0:9769f959709d | 7 | ***** ***** |
frankvnk | 0:9769f959709d | 8 | **************************************************************************************************/ |
frankvnk | 0:9769f959709d | 9 | |
frankvnk | 0:9769f959709d | 10 | #include "mbed.h" |
frankvnk | 0:9769f959709d | 11 | |
frankvnk | 0:9769f959709d | 12 | #ifndef KL25Z_IRQ_PRIO_H |
frankvnk | 0:9769f959709d | 13 | #define KL25Z_IRQ_PRIO_H |
frankvnk | 0:9769f959709d | 14 | |
frankvnk | 0:9769f959709d | 15 | void NVIC_SetAllPriority(int prio); |
frankvnk | 0:9769f959709d | 16 | |
frankvnk | 0:9769f959709d | 17 | #endif |