How to configure timer interrupt in MQX OS intsted of systick interrupt

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

How to configure timer interrupt in MQX OS intsted of systick interrupt

469 Views
virendrapatel
Contributor III

hi,

We are using MQX 4.1.1 on K6fx512 based custom board.

The MQX BSP by default configure the SYSTICK interrupt for source of tick for MQX OS, but we want to use timer interrupt(timer 2) as a tick source for OS.

is it possible to configure timer interrupt instead of systick interrupt as a source of tick to in MQX OS?

if yes, how can it will be configure?

Please suggest changes.

Thanks,

Virendra

0 Kudos
1 Reply

296 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Virendra:

I think it is possible to configure timer interrupt in MQX OS instead of systick.

You can check the file init_bsp.c. There is a hardware timer for kernel tick.  MQX software uses a hardware driver for the kernel tick. If the Custom BSP requires a change in the hardware timer peripheral used for this tick, see the HWTIMER driver chapter in the MQXIOUG and update the source file as needed. However we recommend to our customers "only change this feature if you know what you are doing".

Freescale_MQX_4_2\doc\mqx\MQX_IO_User_Guide.pdf

Regards

Daniel

0 Kudos