Versions Compared

Key

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

...

clk.h / Application’s source file

Called from

  Clk_SetTS()

Prototype

Code Block
languagecpp
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
Listing - Clk_ExtTS_Set() Example Template
Listing - Clk_ExtTS_Set() Example Template

Code Block
languagecpp
titleListing - Clk_ExtTS_Set() Example Template
linenumberstrue
CPU_BOOLEAN  Clk_ExtTS_Set (CLK_TS_SEC  ts_sec)
{
    BSP_ClockSetTS(ts_sec);
    return (DEF_OK);
}