arm: cmsis: Convert _ScbExcPrioSet to NVIC_SetPriority
Replace _ScbExcPrioSet with calls to NVIC_SetPriority as it handles both interrupt and exception priorities. We don't need to shift around the priority values for NVIC_SetPriority. Jira: ZEP-1568 Change-Id: Iccd68733c3f7faa82b7ccb17200eef328090b6da Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
6e55fd38de
commit
f85dbb1b34
4 changed files with 10 additions and 61 deletions
|
@ -537,7 +537,7 @@ int _sys_clock_driver_init(struct device *device)
|
|||
|
||||
#endif /* CONFIG_TICKLESS_IDLE */
|
||||
|
||||
_ScbExcPrioSet(_EXC_SYSTICK, _EXC_IRQ_DEFAULT_PRIO);
|
||||
NVIC_SetPriority(SysTick_IRQn, _IRQ_PRIO_OFFSET);
|
||||
|
||||
SysTick->CTRL = ctrl;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue