Versions Compared

Key

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

Initialize and start timestamp timer.

Files

clk.h / Application’s source file

Called from

Clk_Init()

Prototype

Code Block
languagecpp
void  Clk_ExtTS_Init (void)

...

;


Arguments

None.

Returned Values

None.

Required Configuration

Required callback function that must be implemented in your application if CLK_CFG_EXT_EN is DEF_ENABLED in clk_cfg.h (see section 3-1-1 Module Configuration) in order for the clock/calendar to be maintained by an external clock/timestamp mechanism.

Notes / Warnings

External timestamp should be an ‘up’ counter whose values increase at each second. It’s possible to use a ‘down’ counter, but a conversion must be applied when setting and getting the External timestamp.

External timestamp could come from another application (e.g., by SNTP).

Example Template

Anchor
Listing - Clk_ExtTS_Init() Example Template
Listing - Clk_ExtTS_Init() Example Template

Code Block
languagecpp
titleListing - Clk_ExtTS_Init() Example Template
linenumberstrue
void  Clk_ExtTS_Init (void)
{
    BSP_ClockInitChip();
    BSP_ClockStartTS();
}