 |
AM243x MCU+ SDK
11.00.00
|
|
Go to the documentation of this file.
33 #ifndef CYCLE_COUNTERP_H
34 #define CYCLE_COUNTERP_H
void CycleCounterP_init(const uint64_t cpuFreqHz)
initialize PMU Cycle Counter
void CycleCounterP_enableUserAccess(void)
Enable User mode access to performance monitor and validation registers.
void CycleCounterP_reset(void)
Enable, reset, clear overflow for CPU cycle counter.
uint32_t CycleCounterP_getCount32(void)
Get 32b CPU cycle counter value.
uint64_t CycleCounterP_getCount64(void)
Get 64b CPU cycle counter value.
uint64_t CycleCounterP_nsToTicks(const uint64_t nanosecs)
API function to convert nanosecs to PMU counter ticks.