SYS/BIOS
7.00
|
Idle Thread Manager.
The Idle module is used to specify a list of functions to be called when no other tasks are running in the system.
If tasking is enabled (ie BIOS_taskEnabled = true), then the Task module will create an "Idle task" with the lowest possible priority. When no other tasks are running, this idle task runs in an infinite loop, calling the list of functions specified by the Idle module.
If tasking is disabled (ie BIOS_taskEnabled = false), then the idle functions are called in an infinite loop within the BIOS_start function called within main().
The list of idle functions is only statically configurable; it cannot be modified at runtime.
To add an Idle function, the following must be added to the app.syscfg file:
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | Idle_FuncPtr) (void) |
Idle function type definition. More... | |
Functions | |
void | Idle_run (void) |
Make one pass through idle functions. More... | |
Variables | |
bool | Idle_initDone |
typedef void(* Idle_FuncPtr) (void) |
Idle function type definition.
void Idle_run | ( | void | ) |
Make one pass through idle functions.
This function is called repeatedly by the Idle task when the Idle task has been enabled in the Task module (see Task.enableIdleTask config parameter).
This function makes one pass through an internal static array of functions which are defined in the configuration file.
This function returns after all functions have been executed one time.
bool Idle_initDone |