Enable and disable only one interrupt

Status
Not open for further replies.

Lorenzo

Well-known member
Good morning forum!

I am trying to figure out how to enable and disable only one interrupt at a time on Teency 3.5, because by using "noInterrupts();" and "interrupts();" all the interrupts are disabled at the same time.

Is there a way?

Thank you :)
 
Use NVIC_DISABLE_IRQ(interrupt) and NVIC_ENABLE_IRQ(interrupt), where "interrupt" is one of the names defined in kinetis.h.

For example, NVIC_DISABLE_IRQ(IRQ_UART1_STATUS);
 
Status
Not open for further replies.
Back
Top