Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i.MX RT: added support for Tickless OS #4138

Merged
merged 4 commits into from Jul 13, 2021

Conversation

michallenc
Copy link
Contributor

Summary

This PR adds support for TIckless OS mode (only alarm is currently supported). GPT is used as a timer that is ran by 16.6 MHz peripheral clock and divided by prescaler 1 to 4096. This value can be represented by various CONFIG_USEC_PER_TICK (10 or 100 for example) and thus we should not have problems with the commutative time error caused when using 32.768 kHz clock (as this value or its divisions cannot be represented by CONFIG_USEC_PER_TICK).

Impact

i.MX RT MCU and boards only.

Testing

Tested with Teensy 4.1: real-time DC motor control application designed using pysimCoder
sleep command

nsh> time "sleep 10"

10.0001 sec
nsh>

takes about 10 usec longer but this should be the property of the sleep command as described here

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
…ckless mode

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
…ss mode support

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
@acassis acassis merged commit 3d26c3e into apache:master Jul 13, 2021
@michallenc michallenc deleted the imxrt_tickless branch July 14, 2021 10:53
@Ouss4 Ouss4 added this to To-Add in Release Notes - 10.2 Oct 11, 2021
@jerpelea jerpelea moved this from To-Add to fixes in Release Notes - 10.2 Oct 13, 2021
@jerpelea jerpelea moved this from fixes to Added in Release Notes - 10.2 Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants