RTEMS: bsps/arm/tms570/cpucounter/cpucounterread.c File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Functions
cpucounterread.c File Reference

Cortex-R performace counters. More...

`#include <rtems/counter.h>`
`#include <rtems/sysinit.h>`
`#include <libcpu/arm-cp15.h>`
`#include <bsp.h>`

## Functions
uint32_t | _CPU_Counter_frequency (void)
| Returns the current CPU counter frequency in Hz.
CPU_Counter_ticks | _CPU_Counter_read (void)
| Returns the current CPU counter value.
| RTEMS_SYSINIT_ITEM (tms570_cpu_counter_initialize, RTEMS_SYSINIT_CPU_COUNTER, RTEMS_SYSINIT_ORDER_FIRST)

## Detailed Description

Cortex-R performace counters.

The counters setup functions are these which has been suggested on StackOverflow

Code is probably for use on Cortex-A without modifications as well.

http://stackoverflow.com/questions/3247373/how-to-measure-program-execution-time-in-arm-cortex-a8-processor