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
Solved! Go to Solution.
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------
Dear Igor,
Thank you for the reply.
My customer will choose using M4 so that you may say.
BR,
George