mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #4944 from gebart/pr/cortexm-irqn-unsigned-int
cpu/cortexm_common: use int for counter in startup IRQn loop
This commit is contained in:
commit
01248f0599
@ -46,8 +46,8 @@ void cortexm_init(void)
|
||||
/* 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 */
|
||||
for (IRQn_Type i = 0; i < (int) CPU_IRQ_NUMOF; i++) {
|
||||
NVIC_SetPriority(i, CPU_DEFAULT_IRQ_PRIO);
|
||||
for (int i = 0; i < CPU_IRQ_NUMOF; i++) {
|
||||
NVIC_SetPriority((IRQn_Type) i, CPU_DEFAULT_IRQ_PRIO);
|
||||
}
|
||||
|
||||
/* enable wake up on events for __WFE CPU sleep */
|
||||
|
Loading…
Reference in New Issue
Block a user