Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
system_timer.h File Reference

Timer driver API. More...

#include <stdbool.h>
#include <zephyr/types.h>

Go to the source code of this file.

Macros

#define SYS_CLOCK_MAX_WAIT
 

Functions

void sys_clock_set_timeout (int32_t ticks, bool idle)
 Set system clock timeout.
 
void sys_clock_idle_exit (void)
 Timer idle exit notification.
 
void sys_clock_announce (int32_t ticks)
 Announce time progress to the kernel.
 
uint32_t sys_clock_elapsed (void)
 Ticks elapsed since last sys_clock_announce() call.
 
void sys_clock_disable (void)
 Disable system timer.
 
uint32_t sys_clock_cycle_get_32 (void)
 Hardware cycle counter.
 
uint64_t sys_clock_cycle_get_64 (void)
 64 bit hardware cycle counter
 

Detailed Description

Timer driver API.

Declare API implemented by system timer driver and used by kernel components.

Macro Definition Documentation

◆ SYS_CLOCK_MAX_WAIT

#define SYS_CLOCK_MAX_WAIT
Value:
(IS_ENABLED(CONFIG_SYSTEM_CLOCK_SLOPPY_IDLE) \
#define K_TICKS_FOREVER
Definition clock.h:51
#define IS_ENABLED(config_macro)
Check for macro definition in compiler-visible expressions.
Definition util_macro.h:148
#define INT_MAX
Definition limits.h:39