STA_Util Functions¶
-
group
sta_util
This module contains utility functions for this test application. This primarily includes the functions used to profile the cycle counts of the SDL functions.
The code for this module is contained in
sta_util.c
, withsta_util.h
containing the API declarations.Defines
-
STA_UTIL_PROFILE
1¶ Used to enable or disable CPUTimer cycle profiling of STA tests. A value of 0 will disable cycle profiling. A value of not 0 will enable cycle profiling.
Functions
-
void
STA_Util_configProfiler
(uint32_t base)¶ Configures the CPUTimer specified by the parameter base for profiling cycle counts.
- Return
None.
- Parameters
base
: is the base address of a valid CPUTimer.
-
static void
STA_Util_startProfiler
(uint32_t base)¶ Starts the CPUTimer used for profiling cycles.
- Return
None.
- Parameters
base
: is the base address of a valid CPUTimer.
-
static uint32_t
STA_Util_stopProfiler
(uint32_t base)¶ Stops the CPUTimer used for profiling cycles.
- Return
Returns the number of cycles elapsed since STA_Util_startProfiler() was called.
- Parameters
base
: is the base address of a valid CPUTimer.
-