Skip to content

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

@AlexandreHiroyuki

Description

@AlexandreHiroyuki

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    embeddedAbout the embedded microcontroller context

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions