module ti.sysbios.knl.Idle |
|
|
|
Idle Thread Manager
The Idle module is used to specify the list of functions to be called
when no other tasks are running in the system.
[
more ... ]
#include <ti/sysbios/knl/Idle.h>
module-wide constants & types
module-wide config parameters
module-wide built-ins
XDCscript usage |
meta-domain |
var Idle = xdc.useModule('ti.sysbios.knl.Idle');
module-wide constants & types
module-wide config parameters
module-wide functions
module Idle {
module-wide constants & types
};
module-wide config parameters
module-wide functions
}
DETAILS
The Idle module is used to specify the list of functions to be called
when no other tasks are running in the system.
If tasking is enabled, 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, then the idle functions are called in an infinite
loop after main and any Module startup functions.
The list of idle functions is only statically configurable; it cannot be
modified at runtime.
typedef Idle.FuncPtr |
|
Idle function type definition
typedef Void (*Idle_FuncPtr)();
metaonly struct Idle.ModuleView |
|
XDCscript usage |
meta-domain |
var obj = new Idle.ModuleView;
obj.IdleFunctions = String[] ...
config Idle.funcList // module-wide |
|
The array of functions to be called when no other Tasks are running
XDCscript usage |
meta-domain |
metaonly config Idle.common$ // module-wide |
|
Common module configuration parameters
XDCscript usage |
meta-domain |
DETAILS
All modules have this configuration parameter. Its name
contains the '$' character to ensure it does not conflict with
configuration parameters declared by the module. This allows
new configuration parameters to be added in the future without
any chance of breaking existing modules.
metaonly Idle.addFunc( ) // module-wide |
|
Statically add a function to the Idle function list
XDCscript usage |
meta-domain |
Idle.addFunc( Void(*)() func ) returns Void
module-wide built-ins |
|
// Get this module's unique id
Bool Idle_Module_startupDone( );
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool Idle_Module_hasMask( );
// Test whether this module has a diagnostics mask
Bits16 Idle_Module_getMask( );
// Returns the diagnostics mask for this module
Void Idle_Module_setMask( Bits16 mask );
// Set the diagnostics mask for this module
generated on Mon, 21 Dec 2009 19:43:37 GMT