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

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

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

ソリューションへジャンプ
909件の閲覧回数
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

ラベル(6)
0 件の賞賛
返信
1 解決策
668件の閲覧回数
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 返答(返信)
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 件の賞賛
返信
668件の閲覧回数
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 件の賞賛
返信