RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Functions
cpucounterconverter.c File Reference

This source file contains a implementation of the counter value conversion functions. More...

#include <rtems/counter.h>
#include <rtems/sysinit.h>

Functions

 RTEMS_STATIC_ASSERT (sizeof(rtems_counter_ticks)<=sizeof(uint32_t), type)
 
uint64_t rtems_counter_ticks_to_nanoseconds (rtems_counter_ticks ticks)
 Converts counter ticks into nanoseconds.
 
rtems_counter_ticks rtems_counter_nanoseconds_to_ticks (uint32_t nanoseconds)
 Converts nanoseconds into counter ticks.
 
int64_t rtems_counter_ticks_to_sbintime (rtems_counter_ticks ticks)
 Converts counter ticks into signed binary time (sbintime_t).
 
rtems_counter_ticks rtems_counter_sbintime_to_ticks (int64_t sbt)
 Converts signed binary time (sbintime_t) into counter ticks.
 
void rtems_counter_initialize_converter (uint32_t frequency)
 Initializes the counter ticks to/from nanoseconds converter functions.
 
 RTEMS_SYSINIT_ITEM (rtems_counter_sysinit, RTEMS_SYSINIT_CPU_COUNTER, RTEMS_SYSINIT_ORDER_LAST_BUT_5)
 

Detailed Description

This source file contains a implementation of the counter value conversion functions.