Zephyr API Documentation 4.0.0
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.

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.