xpm_counter.c File Reference

#include "xpm_counter.h"

Functions

void Xpm_DisableEventCounters (void)
void Xpm_EnableEventCounters (void)
void Xpm_ResetEventCounters (void)
void Xpm_SetEvents (int PmcrCfg)
void Xpm_GetEventCounters (u32 *PmCtrValue)

Detailed Description

This file contains APIs for configuring and controlling the Cortex-A9 Performance Monitor Events. For more information about the event counters, see xpm_counter.h.

 MODIFICATION HISTORY:

 Ver   Who  Date     Changes
 ----- ---- -------- -----------------------------------------------
 1.00a sdm  07/11/11 First release
 

Function Documentation

void Xpm_DisableEventCounters void   ) 
 

This function disables the Cortex A9 event counters.

Parameters:
None. 
Returns:
None.
Note:
None.

void Xpm_EnableEventCounters void   ) 
 

This function enables the Cortex A9 event counters.

Parameters:
None. 
Returns:
None.
Note:
None.

void Xpm_GetEventCounters u32 *  PmCtrValue  ) 
 

This function disables the event counters and returns the counter values.

Parameters:
PmCtrValue is a pointer to an array of type u32 PmCtrValue[6]. It is an output parameter which is used to return the PM counter values.
Returns:
None.
Note:
None.

void Xpm_ResetEventCounters void   ) 
 

This function resets the Cortex A9 event counters.

Parameters:
None. 
Returns:
None.
Note:
None.

void Xpm_SetEvents int  PmcrCfg  ) 
 

This function configures the Cortex A9 event counters controller, with the event codes, in a configuration selected by the user and enables the counters.

Parameters:
PmcrCfg is configuration value based on which the event counters are configured. Use XPM_CNTRCFG* values defined in xpm_counter.h.
Returns:
None.
Note:
None.


Generated on Thu Feb 13 14:48:12 2014 for 2014.1_doc by  doxygen 1.4.5