Triggering a task by an interrupt or timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering a task by an interrupt or timer

209 Views
amleng
Contributor IV

Hello MQX Community,

I would like to now how can I trigger a task by a hardware

interrupt or a timer? That means the task should wait for a trigger

in block state. Once the interrupt happened (e.g push a button) it

goes to non-block mode and process the data. The same

concept for timer...wait for a timer-overflow in block mode and

gets nonblock periodically.

Is there any sample code available that I can have look?

Cheers!

0 Kudos
1 Reply

23 Views
LuisCasado
NXP Employee
NXP Employee

Hi,

Check this example:

C:\Freescale\Freescale_MQX_4_0\mqx\examples\event

Best Regards,

Luis

0 Kudos