SYS/BIOS  7.00
Typedefs | Functions | Variables
Idle.h File Reference

Detailed Description

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:

const Idle = scripting.addModule("/ti/sysbios/knl/Idle");
const Idle1 = Idle.addInstance();
Idle1.idleFxn = "idle_func";
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for Idle.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 Documentation

§ Idle_FuncPtr

typedef void(* Idle_FuncPtr) (void)

Idle function type definition.

Function Documentation

§ Idle_run()

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.

Variable Documentation

§ Idle_initDone

bool Idle_initDone
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale