How to define a interrupt in MQX-Lite?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to define a interrupt in MQX-Lite?

905 Views
wangbaode
Contributor IV

Hello everyone,

I want to run mQX-Lite on KL15Z64.through documents,if you want to define a interrupt,_int_install_isr need be called.

But I don't use the function and define a interrupt like the way without OS.As a result,program works well.

so, I have several questions as follow.

1,must the function "_int_install_isr" be called in MQX-Lite or MQX,if I need define a interrupt?

2,why my program can work well and I don't use _int_install_isr to define a interrupt?

3,Is there any bug through my way like the way without OS?

1 Reply

482 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Wang Baode:

Have you acquired a better understanding of this?

I'm not MQX or MQX-lite expert, but I created a new project with MQX-lite and it seems that the "_int_install_isr()" function is actually called from the initialization routines whenever you enable interrupts from your PE components. Look at the next example image with a UART0 ISR install:

install_isr.png

So, from my basic understanding, it seems like interrupts in MQX-Lite are handled in a similar fashion to standard MQX.

Regards!

Jorge Gonzalez