register AIRCR Interrupt priority group default configuration,
NVIC_SetPriority(TIMER1_IRQn, NVIC_EncodePriority(0,1,0));
NVIC_SetPriority(TIMER0_IRQn, NVIC_EncodePriority(0,2,0));
but I try to use this function
NVIC_GetPriority(TIMER0_IRQn));// return 0
NVIC_GetPriority(TIMER1_IRQn); // return 0
why ?
Ths!
Hello @hbxiao168
I tested with lpc4337(the same with lpc4357), use below code, it can works well:
BR
Alice
Hello @hbxiao168
You can directly write the Interrupt priority.
If you want to use "NVIC_EncodePriority()", you need refer to the function code and ARM manual to check how to use it.
BR
Alice