23 #ifndef _RTEMS_SAPI_COUNTER_H 24 #define _RTEMS_SAPI_COUNTER_H 71 return _CPU_Counter_frequency();
81 return _CPU_Counter_read();
101 return _CPU_Counter_difference( second, first );
static rtems_counter_ticks rtems_counter_read(void)
Reads the current counter value.
static uint32_t rtems_counter_frequency(void)
Returns the current counter frequency in Hz.
uint64_t rtems_counter_ticks_to_nanoseconds(rtems_counter_ticks ticks)
Converts counter ticks into nanoseconds.
void rtems_counter_initialize_converter(uint32_t frequency)
Initializes the counter ticks to/from nanoseconds converter functions.
void rtems_counter_delay_nanoseconds(uint32_t nanoseconds)
Busy wait for some nanoseconds.
rtems_counter_ticks rtems_counter_nanoseconds_to_ticks(uint32_t nanoseconds)
Converts nanoseconds into counter ticks.
SPARC CPU Department Source.
int64_t rtems_counter_ticks_to_sbintime(rtems_counter_ticks ticks)
Converts counter ticks into signed binary time (sbintime_t).
static rtems_counter_ticks rtems_counter_difference(rtems_counter_ticks second, rtems_counter_ticks first)
Returns the difference between the second and first CPU counter value.
void rtems_counter_delay_ticks(rtems_counter_ticks ticks)
Busy wait for some counter ticks.
CPU_Counter_ticks rtems_counter_ticks
Unsigned integer type for counter values.
rtems_counter_ticks rtems_counter_sbintime_to_ticks(int64_t sbt)
Converts signed binary time (sbintime_t) into counter ticks.