Skip to content
Snippets Groups Projects
Commit d359c86c authored by Kaspar Schleiser's avatar Kaspar Schleiser Committed by Oleg Hahm
Browse files

cpu: cortexm_common: set pendSV to default priority

parent 03b7c734
No related branches found
No related tags found
No related merge requests found
...@@ -41,8 +41,8 @@ void cortexm_init(void) ...@@ -41,8 +41,8 @@ void cortexm_init(void)
#endif #endif
/* initialize the interrupt priorities */ /* initialize the interrupt priorities */
/* set pendSV interrupt to lowest possible priority */ /* set pendSV interrupt to same priority as the rest */
NVIC_SetPriority(PendSV_IRQn, 0xff); NVIC_SetPriority(PendSV_IRQn, CPU_DEFAULT_IRQ_PRIO);
/* set SVC interrupt to same priority as the rest */ /* set SVC interrupt to same priority as the rest */
NVIC_SetPriority(SVCall_IRQn, CPU_DEFAULT_IRQ_PRIO); NVIC_SetPriority(SVCall_IRQn, CPU_DEFAULT_IRQ_PRIO);
/* initialize all vendor specific interrupts with the same value */ /* initialize all vendor specific interrupts with the same value */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment