Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
shell_rtt.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Makaio GmbH
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_SHELL_SHELL_RTT_H_
14#define ZEPHYR_INCLUDE_SHELL_SHELL_RTT_H_
15
16#include <zephyr/shell/shell.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
23extern const struct shell_transport_api shell_rtt_transport_api;
24
25struct shell_rtt {
27 struct k_timer timer;
28 void *context;
29};
31
38
44#define SHELL_RTT_DEFINE(_name) \
45 static struct shell_rtt _name##_shell_rtt; \
46 struct shell_transport _name = { \
47 .api = &shell_rtt_transport_api, \
48 .ctx = (struct shell_rtt *)&_name##_shell_rtt \
49 }
50
59const struct shell *shell_backend_rtt_get_ptr(void);
60
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif /* ZEPHYR_INCLUDE_SHELL_SHELL_RTT_H_ */
void(* shell_transport_handler_t)(enum shell_transport_evt evt, void *context)
Shell transport event handler callback.
Definition shell.h:831
const struct shell * shell_backend_rtt_get_ptr(void)
Function provides pointer to shell rtt backend instance.
Header file for the shell subsystem.
Unified shell transport interface.
Definition shell.h:864
Shell instance internals.
Definition shell.h:1129