Use fixed version of IRQ priority helpers

master
Nathael Pajani 2022-02-07 03:12:21 +01:00
parent ab26294f29
commit fcfa6abf40
1 changed files with 2 additions and 2 deletions

View File

@ -244,8 +244,8 @@ void systick_timer_on(uint32_t ms)
/* For the LPC122x the system tick clock is fixed to half the frequency of the system clock */
usleep_us_count = (usleep_us_count >> 1); /* Divide by two */
/* FIXME : document this */
NVIC_SetPriority(SYSTICK_IRQ, ((1 << LPC_NVIC_PRIO_BITS) - 1));
/* Set to lowest priority (0 is highest, 3 is lowest) */
NVIC_SetPriority(SYSTICK_IRQ, 3);
}
/* Removes the main clock from the selected timer block */