Is there any timer which does not affect linux os operation?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Is there any timer which does not affect linux os operation?

跳至解决方案
910 次查看
george
Senior Contributor II

Dear all,

Currently, my customer has planned the option part relevant to the automotive.

The product has an input for getting to know automotive speed.

When faster, the pulse period is 1ms.

They want to count the pulse period by Linux on i.MX7D.

It seems that Linux OS always uses GPT at least.

Is there any timer which does not affect linux os operation?

And, Is there any way OS gets to know a pulse period count, using a hardware timer?

Best Regards,

George

0 项奖励
回复
1 解答
669 次查看
igorpadykov
NXP Employee
NXP Employee

Hi George

there are several gpts, one is used by linux, others can be used

by customer (gpt codes can be found in linux/arch/arm/mach-imx/time.c)

Another option - use FreeRTOS on second m4 core (use free gpt instance),

please refer to Figure 51-1. New multicore, multiOS architecture

attached Linux Manual.

>Is there any way OS gets to know a pulse period count, using a hardware timer?

seems not, special driver should be written for such purpose

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
670 次查看
igorpadykov
NXP Employee
NXP Employee

Hi George

there are several gpts, one is used by linux, others can be used

by customer (gpt codes can be found in linux/arch/arm/mach-imx/time.c)

Another option - use FreeRTOS on second m4 core (use free gpt instance),

please refer to Figure 51-1. New multicore, multiOS architecture

attached Linux Manual.

>Is there any way OS gets to know a pulse period count, using a hardware timer?

seems not, special driver should be written for such purpose

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
669 次查看
george
Senior Contributor II

Dear Igor,

Thank you for the reply.

My customer will choose using M4 so that you may say.

BR,

George

0 项奖励
回复