29 #ifndef _RTEMS_RTEMS_CLOCK_H 30 #define _RTEMS_RTEMS_CLOCK_H 36 #include <rtems/config.h> 92 rtems_clock_get_options option,
186 rtems_interval us_per_tick = rtems_configuration_get_microseconds_per_tick();
193 + (delta_in_usec + us_per_tick - 1) / us_per_tick + 1;
288 struct timespec *uptime
rtems_status_code rtems_clock_get_seconds_since_epoch(rtems_interval *the_interval)
Obtain Seconds Since Epoch.
Definition: clockgetsecondssinceepoch.c:24
bool _TOD_Validate(const rtems_time_of_day *the_tod)
TOD Validate.
Definition: clocktodvalidate.c:36
RTEMS_INLINE_ROUTINE time_t rtems_clock_get_uptime_seconds(void)
Returns the system uptime in seconds.
Definition: clock.h:307
rtems_status_code rtems_clock_get(rtems_clock_get_options option, void *time_buffer)
Obtain Current Time of Day.
Definition: clockget.c:34
#define RTEMS_INLINE_ROUTINE
The following (in conjunction with compiler arguments) are used to choose between the use of static i...
Definition: basedefs.h:135
RTEMS_INLINE_ROUTINE rtems_interval rtems_clock_get_ticks_since_boot(void)
Gets the current ticks counter value.
Definition: clock.h:155
volatile time_t _Timecounter_Time_uptime
The uptime in seconds.
RTEMS_INLINE_ROUTINE rtems_interval rtems_clock_tick_later_usec(rtems_interval delta_in_usec)
Returns the ticks counter value at least delta microseconds in the future.
Definition: clock.h:182
Constants and Structures Associated with Watchdog Timers.
rtems_status_code rtems_clock_get_tod(rtems_time_of_day *time_buffer)
Obtain Current Time of Day (Classic TOD)
Definition: clockgettod.c:83
rtems_status_code rtems_clock_tick(void)
Announce a Clock Tick.
Definition: clocktick.c:24
rtems_status_code rtems_clock_get_tod_timeval(struct timeval *time)
Obtain TOD in struct timeval Format.
Definition: clockgettodtimeval.c:24
Watchdog_Interval rtems_interval
Used to manage and manipulate intervals specified by clock ticks.
Definition: types.h:119
Data structure to manage and manipulate calendar time.
Definition: types.h:133
rtems_status_code
Classic API Status.
Definition: status.h:46
Timecounter Implementation.
This value indicates obtain TOD in Classic API format.
Definition: clock.h:60
rtems_interval rtems_clock_get_ticks_per_second(void)
Obtain Ticks Per Seconds.
Definition: clockgettickspersecond.c:25
RTEMS_INLINE_ROUTINE bool rtems_clock_tick_before(rtems_interval tick)
Returns true if the current ticks counter value indicates a time before the time specified by the tic...
Definition: clock.h:223
rtems_status_code rtems_clock_set(const rtems_time_of_day *time_buffer)
Set the Current TOD.
Definition: clockset.c:26
Watchdog_Interval _TOD_To_seconds(const rtems_time_of_day *the_tod)
TOD to Seconds.
Definition: clocktodtoseconds.c:45
This value indicates obtain the number of seconds since the epoch.
Definition: clock.h:62
#define RTEMS_COMPILER_DEPRECATED_ATTRIBUTE
Instructs the compiler to issue a warning whenever a variable or function with this attribute will be...
Definition: basedefs.h:186
uint32_t Watchdog_Interval
Type is used to specify the length of intervals.
Definition: watchdog.h:47
This value indicates obtain the number of ticks since system boot.
Definition: clock.h:64
This value indicates obtain the TOD in struct timeval format.
Definition: clock.h:68
uint64_t rtems_clock_get_uptime_nanoseconds(void)
Returns the system uptime in nanoseconds.
Definition: clockgetuptimenanoseconds.c:23
rtems_status_code rtems_clock_get_uptime(struct timespec *uptime)
Obtain the System Uptime.
Definition: clockgetuptime.c:38
This value indicates obtain the number of ticks per second.
Definition: clock.h:66
RTEMS_INLINE_ROUTINE rtems_interval rtems_clock_tick_later(rtems_interval delta)
Returns the ticks counter value delta ticks in the future.
Definition: clock.h:167
rtems_clock_get_options
List of things which can be returned by the rtems_clock_get directive.
Definition: clock.h:58
void rtems_clock_get_uptime_timeval(struct timeval *uptime)
Gets the System Uptime in the Struct Timeval Format.
Definition: clockgetuptimetimeval.c:29
volatile Watchdog_Interval _Watchdog_Ticks_since_boot
The watchdog ticks counter.
Definition: watchdogtickssinceboot.c:29