Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
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 <device.h>
20#include <stdbool.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
39extern int sys_clock_driver_init(const struct device *dev);
40
49extern int clock_device_ctrl(const struct device *dev,
51
94extern void sys_clock_set_timeout(int32_t ticks, bool idle);
95
108extern void sys_clock_idle_exit(void);
109
121extern void sys_clock_announce(int32_t ticks);
122
136#ifdef __cplusplus
137}
138#endif
139
140#endif /* ZEPHYR_INCLUDE_DRIVERS_SYSTEM_TIMER_H_ */
void sys_clock_idle_exit(void)
Timer idle exit notification.
void sys_clock_set_timeout(int32_t ticks, bool idle)
Set system clock timeout.
int clock_device_ctrl(const struct device *dev, enum pm_device_state state)
Initialize system clock driver.
int sys_clock_driver_init(const struct device *dev)
Initialize system clock driver.
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.
pm_device_state
Device power states.
Definition: device.h:28
state
Definition: http_parser_state.h:30
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60
__INT32_TYPE__ int32_t
Definition: stdint.h:44
Runtime device structure (in ROM) per driver instance.
Definition: device.h:367
void idle(void *p1, void *p2, void *p3)