Cortex R5 Event Counters Functions - 2020.2 English

OS and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2020-11-24
Version
2020.2 English

Cortex R5 event counter functions can be utilized to configure and control the Cortex-R5 performance monitor events.

Cortex-R5 Performance Monitor has 3 event counters which can be used to count a variety of events described in Coretx-R5 TRM. The xpm_counter.h file defines configurations XPM_CNTRCFGx which can be used to program the event counters to count a set of events.

Table 1. Quick Function Reference
Type Name Arguments
void Xpm_SetEvents
  • s32 PmcrCfg
void Xpm_GetEventCounters
  • u32 * PmCtrValue
u32 Xpm_DisableEvent
  • Event
u32 Xpm_SetUpAnEvent
  • Event
u32 Xpm_GetEventCounter
  • Event
  • Pointer
void Xpm_DisableEventCounters
  • None.
void Xpm_EnableEventCounters
  • None.
void Xpm_ResetEventCounters
  • None.
void Xpm_SleepPerfCounter
  • u32 delay
  • u64 frequency