Skip to content

Commit

Permalink
cpu: cortexm_common: set pendSV to default priority
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 authored and OlegHahm committed Jul 28, 2015
1 parent 03b7c73 commit d359c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpu/cortexm_common/cortexm_init.c
Expand Up @@ -41,8 +41,8 @@ void cortexm_init(void)
#endif

/* initialize the interrupt priorities */
/* set pendSV interrupt to lowest possible priority */
NVIC_SetPriority(PendSV_IRQn, 0xff);
/* set pendSV interrupt to same priority as the rest */
NVIC_SetPriority(PendSV_IRQn, CPU_DEFAULT_IRQ_PRIO);
/* set SVC interrupt to same priority as the rest */
NVIC_SetPriority(SVCall_IRQn, CPU_DEFAULT_IRQ_PRIO);
/* initialize all vendor specific interrupts with the same value */
Expand Down

0 comments on commit d359c86

Please sign in to comment.