RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Functions
cpucounterread.c File Reference

This source file contains the CPU Counter implementation. More...

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

Functions

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

Detailed Description

This source file contains the CPU Counter implementation.

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