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 ... ]
XDCspec summary sourced in ti/sysbios/knl/Idle.xdc
module Idle {  ...
// inherits xdc.runtime.IModule
C synopsis target-domain
XDCscript usage meta-domain
var Idle = xdc.useModule('ti.sysbios.knl.Idle');
module-wide constants & types
    var obj = new Idle.ModuleView// ;
        obj.IdleFunctions = String[]  ...
module-wide config parameters
 
module-wide functions
 
XDCspec declarations sourced in ti/sysbios/knl/Idle.xdc
package ti.sysbios.knl;
 
module Idle {
module-wide constants & types
    typedef Void (*FuncPtr// Idle function type definition)();
 
    metaonly struct ModuleView//  {
        String IdleFunctions[];
    };
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

C synopsis target-domain
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
Idle.funcList = Idle.FuncPtr[length] [ ];
C synopsis target-domain
extern const Idle_FuncPtr Idle_funcList[length];
 
 
metaonly config Idle.common$  // module-wide

Common module configuration parameters

XDCscript usage meta-domain
Idle.common$ = Types.Common$ undefined;
 
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

C synopsis target-domain
Types_ModuleId Idle_Module_id( );
// Get this module's unique id
 
Bool Idle_Module_startupDone( );
// Test if this module has completed startup
 
IHeap_Handle Idle_Module_heap( );
// 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