Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 5 months ago.
Serial Interrupt Priority
Hey,
quick an simple question:
I'm using a LPC1768, using two serial ports. Both of them need to be Interrupt driven, but one of them has a higher priority. Is there any way to set the priority of a serial Interrupt without changing the second one also?
The research I made didn't lead to a result. :/
Thanks for your time Stefan
The answer is quit simple:
You use
NVIC_SetPriority(UART3_IRQn, 0);
UART3_IRQn -> the serial port with you want to prioritize take. I recommend to look into the datasheet of the controller because I had a wrong documentation and a few hours wasted
0 -> is the priority of the Interrupt