Specifying the Interrupt priority.
Hi every body. I want to manage two events with general purpose timers 16 and 3.
As a convention in ARM processors, as much as I know, the lower interrupt number corresponds to the higher priority. So I think I need to manage event with higher priority with Timer_interrupt_3 and manage the one with lower priority with Timer_interrupt_16 ... do I think correctly? Is it enough to put the codes of higher priority task (set the corresponding flag in the interrupt service routine) in ISR of Timer3 and put the codes of lower priority event in ISR of Timer 16? or maybe I need to set their priority with a command like HAL_NVIC_SetPriority ... .
On the other hand, when I check the Pin & Configuration >>System Core>>NVIC I see a table in which Timer3 and Timer16 have the same preemption priority and Sub_Priority which is zero.
so, what am I supposed to do ?