Tool/software:
Is there any reference for using main_timer(0-7) in linux codes?
How can I blink a LED with that?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Is there any reference for using main_timer(0-7) in linux codes?
How can I blink a LED with that?
Hello Sathiya,
Please note that my part of the city doesn't have power or internet today (I had to drive to another city to type this response). It looks like the power may be out for a couple of days, so my responses will probably be delayed. Please ping the thread next week if you do not have any replies by then.
Is there a particular reason you need to use a hardware timer instance instead of the Linux OS timer? For most customers, the Linux software timer is good enough for their usecase:
Regards,
Nick
Hi Nick,
Thank you for the response.
I just want to use hardware timers to run scheduled tasks (from milliseconds to minutes). So that load on my CPU will be reduced. I am already using CPU in the lower frequency for reduced power consumption.
Hello Sathiya,
Understood. In that case, please start by evaluating the Linux kernel APIs discussed in the thread above. I would expect them to be easier to use than if you tried to make use of a hardware timer.
Regards,
Nick