AnsweredAssumed Answered

Interrupts outside of MQX Lite

Question asked by Mark Sample on Feb 23, 2015
Latest reply on May 17, 2015 by Marek Neuzil

Hello, I want to have a few interrupts run outside of MQX Lite because of latency. I'm working with PEx Microcontroller Driver Suit Version 10.4.2 and IAR  Ver 7.30 on a Kinetis KV31. Reading the documentation, I found _int_install_kernel_isr in the reference manual.

 

Question 1: Is _int_install_kernel_isr the correct function to use? If so it says "A kernel ISR must save the registers that it needs and must service the hardware interrupt. When the kernel ISR is finished, it must restore the registers and perform a return-from-interrupt instruction."

 

Question 2: Is there an example of how to do this?

 

I found a some information on interrupts with MQX but not much with MQX Lite. Any additional educational materials (labs, demos, app notes, etc.)  that you could site would be greatly appreciated!

 

Also, I see there are the following functions available in cortex.c as part of the psp.

 

_cortex_int_init(num, prior, enable)

_cortex_int_enable(irq)

 

Question 3: Should I use these functions to set priority and enable the interrupts outside of MQX Lite?

 

Question 4:  Are these functions documented anywhere?

 

Thank you for your help!

Mark

Outcomes