Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
system_timer.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015 Wind River Systems, Inc.
3 * Copyright (c) 2019 Intel Corporation
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
15#ifndef ZEPHYR_INCLUDE_DRIVERS_SYSTEM_TIMER_H_
16#define ZEPHYR_INCLUDE_DRIVERS_SYSTEM_TIMER_H_
17
18#include <stdbool.h>
19#include <zephyr/types.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
73void sys_clock_set_timeout(int32_t ticks, bool idle);
74
88
101
111
120
143
162
167#ifdef __cplusplus
168}
169#endif
170
171#endif /* ZEPHYR_INCLUDE_DRIVERS_SYSTEM_TIMER_H_ */
uint64_t sys_clock_cycle_get_64(void)
64 bit hardware cycle counter
uint32_t sys_clock_cycle_get_32(void)
Hardware cycle counter.
void sys_clock_disable(void)
Disable system timer.
void sys_clock_idle_exit(void)
Timer idle exit notification.
void sys_clock_set_timeout(int32_t ticks, bool idle)
Set system clock timeout.
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.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__INT32_TYPE__ int32_t
Definition: stdint.h:74
__UINT64_TYPE__ uint64_t
Definition: stdint.h:91