...
clk.h
/ Application’s source file
Called from
Clk_SetTS()
Prototype
Code Block | ||
---|---|---|
| ||
CPU_BOOLEAN Clk_ExtTS_Set (CLK_TS_SEC ts_sec); |
Arguments
ts_sec
External timestamp value to set (in seconds, UTC+00).
...
This example underflows to a negative External timestamp since the equivalent date to convert is incorrectly less than the External epoch start year.
Example Template
Anchor | ||||
---|---|---|---|---|
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
CPU_BOOLEAN Clk_ExtTS_Set (CLK_TS_SEC ts_sec)
{
BSP_ClockSetTS(ts_sec);
return (DEF_OK);
} |