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.

CPU_TS_TmrFreqSet()

Sets CPU timestamp’s timer frequency, in Hertz.

Files

cpu_core.h/cpu_core.c

Prototype

 

void CPU_TS_TmrFreqSet (CPU_TS_TMR_FREQ freq_hz);

Arguments

freq_hz

Frequency (in Hertz) to set for CPU timestamp’s timer.

Returned Value

None.

Required Configuration

Available only if either of the following CPU features is enabled in cpu_cfg.h :

CPU timestamps when either CPU_CFG_TS_32_EN or CPU_CFG_TS_64_EN is DEF_ENABLED (see section 6-1)

CPU interrupts disabled time measurements when CPU_CFG_INT_DIS_MEAS_EN is #define'd (see section 7-1)

Notes / Warnings

CPU timestamp timer frequency is not required for internal CPU timestamp operations and may optionally be configured by application/BSP initialization functions for use with optional CPU_TS_to_uSec() functions to convert CPU timestamps from timer counts into microseconds (see section 6-2-8 “CPU_TS32_to_uSec()” on page 54 and section 6-2-9 “CPU_TS64_to_uSec()” on page 56).

Example Usage

 

CPU_TS_TmrFreqSet(2500000u); /* Set CPU timestamp timer frequency to 2.5 MHz. */

  • No labels