Is there a NVIC_Init() function?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by ntorresa on Fri Nov 15 22:25:08 MST 2013
Hi! For example, when I call the function:


I thought it also set PWM1 interrupt to its default value, 9. However, doing:

a = NVIC_GetPriority(PWM1_IRQn);

Throws a=0. To assign it's default value I must force:

NVIC_SetPriority(PWM1_IRQn, 9);

Isn't there a function that initializes all IRQs to their default value?