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

Don't put feature code in the arduino loop #2

Open
AlexandreHiroyuki opened this issue Sep 13, 2024 · 1 comment
Open

Don't put feature code in the arduino loop #2

AlexandreHiroyuki opened this issue Sep 13, 2024 · 1 comment
Labels
embedded About the embedded microcontroller context

Comments

@AlexandreHiroyuki
Copy link
Member

FreeRTOS considers the Arduino super loop to be the default task.

When using the super loop paradigm, it doesn't make any difference because it will be the only task running by definition.

However, it means that when an operating system is used to design, the default task runs only when the microcontroller is idle. It is the only task not guaranteed to run per tasking iteration.

The only behavior that should be given to this task is when nothing more is running, like sleeping mode. Even then, it is unusual for the default task to have anything other than an empty loop.

@AlexandreHiroyuki
Copy link
Member Author

@AlexandreHiroyuki AlexandreHiroyuki added the embedded About the embedded microcontroller context label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
embedded About the embedded microcontroller context
Projects
None yet
Development

No branches or pull requests

1 participant