Versions Compared

Key

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

Description

Updates current 32- and 64-bit CPU timestamps.

Files

cpu_core.h/cpu_core.c

Prototype

Code Block
languagecpp
          void  CPU_TS_Update (void);


Arguments

None.

Returned Value

None.

Required Configuration

Available only if either CPU_CFG_TS_32_EN or CPU_CFG_TS_64_EN is DEF_ENABLED in cpu_cfg.h (see µC/CPU . See Timestamps Configuration).

Notes / Warnings

  1. CPU timestamps must be updated periodically by some application (or BSP) time handler in order to adequately maintain the CPU timestamps’ time and must be updated more frequently than the CPU timestamp timer overflows; otherwise, CPU timestamps will lose time.

Example Usage

Anchor
Listing - CPU_TS_Update() example usage
Listing - CPU_TS_Update() example usage

Code Block
languagecpp
titleListing - CPU_TS_Update() example usage
linenumberstrue
          void  AppPeriodicTimeHandler (void)
          {
              :
              CPU_TS_Update();  /* Update current CPU timestamps. */
              :
          }