From 531fddfbe102d91ebb2b792a69ce4b043b76dc31 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Tue, 1 Feb 2022 04:42:06 +0100 Subject: [PATCH] Update priority request in systick_timer_on() --- core/systick.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/systick.c b/core/systick.c index 3f7310e..64ff6f5 100644 --- a/core/systick.c +++ b/core/systick.c @@ -244,8 +244,8 @@ void systick_timer_on(uint32_t ms) /* For the LPC82x 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 */ -- 2.43.0