Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
precision_timing_shell.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
3 * SPDX-FileCopyrightText: Copyright (c) 2026 Philipp Steiner
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
12
13#ifndef ZEPHYR_INCLUDE_ZEPHYR_PRECISION_TIMING_PRECISION_TIMING_SHELL_H_
14#define ZEPHYR_INCLUDE_ZEPHYR_PRECISION_TIMING_PRECISION_TIMING_SHELL_H_
15
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
31
35 const char *name;
37 const struct precision_clock *clock;
38};
39
40#if defined(CONFIG_PRECISION_TIMING_SHELL) || defined(__DOXYGEN__)
64#define PRECISION_TIMING_SHELL_REGISTER(_name, clock_ptr) \
65 static const STRUCT_SECTION_ITERABLE(precision_timing_shell_entry, \
66 _precision_timing_shell_##_name) = { \
67 .name = STRINGIFY(_name), \
68 .clock = (clock_ptr), \
69 }
70#else
71#define PRECISION_TIMING_SHELL_REGISTER(_name, clock_ptr)
72#endif
73
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif /* ZEPHYR_INCLUDE_ZEPHYR_PRECISION_TIMING_PRECISION_TIMING_SHELL_H_ */
Protocol-neutral precision clock operations.
Protocol-neutral precision clock instance.
Definition precision_clock.h:79
Immutable shell registration for a lifetime-static precision clock.
Definition precision_timing_shell.h:33
const struct precision_clock * clock
Clock exposed by this entry.
Definition precision_timing_shell.h:37
const char * name
Shell instance name.
Definition precision_timing_shell.h:35
Iterable sections helpers.