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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,021件の閲覧回数
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 件の賞賛
返信
1 返信

848件の閲覧回数
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 件の賞賛
返信