From: Nathael Pajani Date: Mon, 7 Feb 2022 02:12:21 +0000 (+0100) Subject: Use fixed version of IRQ priority helpers X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=fcfa6abf405218458a9403e4a32186d314ea6b31;p=soft%2Flpc122x%2Fcore Use fixed version of IRQ priority helpers --- diff --git a/core/systick.c b/core/systick.c index 78a8dae..2095f42 100644 --- a/core/systick.c +++ b/core/systick.c @@ -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 */