Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

void  OSStatTaskCPUUsageInit (OS_ERR *p_err)

...

File

...

Called from

...

...

Code enabled by

...

os_stat.c

...

...

Startup code only

...

OS_CFG_TASK_STAT_EN

...

10039341003934OSStatTaskCPUUsageInit() determines the maximum value that a 32-bit counter can reach when no other task is executing. This function must be called when only one task is created in the application and when multitasking has started. This function must be called from the first and only task created by the application. Anchor10039351003935

Arguments

...

p_err Anchor10039371003937

is a pointer to a variable used to hold an error code:

...

classWebWorks_Indent_1

...

OS_ERR_NONE

...

classWebWorks_Indent_2

...

Always returns this value.

...

Returned Value

Anchor10039411003941None Anchor10039421003942

Notes/Warnings

...

1003943None Anchor10039921003992

Example

...

rowspan16

...