Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Unable to render {include} The included page could not be found.
Unable to render {include} The included page could not be found.

Clk_SetTS()

Set Clock timestamp.

Files

clk.h/clk.c

Prototype

CPU_BOOLEAN Clk_SetTS (CLK_TS_SEC ts_sec);

Arguments

ts_sec Current timestamp to set (in seconds, UTC+00).

Returned Values

DEF_OK, if timestamp is successfully set.

DEF_FAIL, otherwise.

Required Configuration

None

Notes / Warnings

Clock timestamp should be set for UTC+00 (i.e., no local time zone offset included).

Example Usage

CLK_TS_SEC ts_sec;

CPU_BOOLEAN valid;

 

ts_sec = 15052;

valid = Clk_SetTS(ts_sec);

if (valid == DEF_OK) {

printf("Clock Set TS successful\n\r");

} else {

printf("Clock Set TS error\n\r");

}

  • No labels