Question
How to enable interrupt with registers
Hi,
I have seen that to enable the interrupt for a given peripheral we must enable the correct bit in the peripheral registers (e.g in the DIER register for a timer) and then call the following functions (e.g for peripheral timer3)
NVIC_EnableIRQ(TIM3_IRQn);
NVIC_SetPriority(TIM3_IRQn, 1);
NVIC_ClearPendingIRQ(TIM3_IRQn);
Can you explain what these functions do?
