GeMRTOS
Related Functions
Processor Class Reference

Related Functions

(Note that these are not member functions.)

Friends And Related Function Documentation

◆ gk_LCB_CheckInvertion()

INT32 gk_LCB_CheckInvertion ( void  )
related

Checks if there is a processor that has to be interrupted to switch task and interruupt it all.

gk_LCB_CheckInvertion

Returns
G_TRUE when successful, G_FALSE otherwise
See also
Task

Definition at line 2496 of file listfunctions.c.

◆ gk_LCBFPL_Link()

INT32 gk_LCBFPL_Link ( int  processorID)
related

Links a PCB to the LCB Free Processor List of foreground list of the processor.

gk_LCBFPL_Link

Parameters
[in]processorIDProcessor ID
Returns
G_TRUE if successful, G_FALSE otherwise

When a processor is free, it is linked to the foreground LCB free processor list

Todo:
Check if index is correct and return G_FASEL if not.
See also
List

Definition at line 659 of file listfunctions.c.

◆ gk_LCBFPL_Unlink()

INT32 gk_LCBFPL_Unlink ( int  processorID)
related

Unlinks a PCB from the LCB Free Processor List.

gk_LCBFPL_Unlink

Parameters
[in]processorIDProcessor ID
Returns
G_TRUE if successful, G_FALSE otherwise
Todo:
Check if Processor ID is valid and return G_FALSE
See also
List

Definition at line 702 of file listfunctions.c.

◆ gk_PCB_GetNextTCB()

GS_TCB* gk_PCB_GetNextTCB ( void  )
related

Returns the next TCB to be executed by the current processor. If no task is requesting for execution, then a pointer to the idle task of the processor is returned.

gk_PCB_GetNextTCB

Returns
Pointer to the next TCB to be executed
Todo:
Check if it is necessary or delete this function
See also
Task

Definition at line 2333 of file listfunctions.c.

◆ gk_SetLowestProcessor()

INT32 gk_SetLowestProcessor ( void  )
related

Sets the Lowest Processor register in GRTOS Controller.

gk_SetLowestProcessor

Returns
G_TRUE when successful, G_FALSE otherwise
Todo:
Check for error and return G_FALSE

Definition at line 2386 of file listfunctions.c.

◆ gk_SetNextTimeProcessor()

INT32 gk_SetNextTimeProcessor ( void  )
related

Sets the Next Time Processor register in GRTOS Controller.

gk_SetNextTimeProcessor

Returns
G_TRUE when successful, G_FALSE otherwise

Definition at line 2408 of file listfunctions.c.

◆ gu_Get_CPU_ID()

int gu_Get_CPU_ID ( void  )
related

Returns the ID of the current processor.

gu_Get_CPU_ID

Returns
Returns the ID of the current processor
Todo:

Check if return can be changed to INT32

Change to user API files

Definition at line 2877 of file listfunctions.c.


The documentation for this class was generated from the following files: