oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
Loading...
Searching...
No Matches
console.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2026 Kamil Lulko <kamil.lulko@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 *
6 * This file is part of oveRTOS.
7 */
8
26#ifndef OVE_CONSOLE_H
27#define OVE_CONSOLE_H
28
29#include "ove/types.h"
30#include "ove_config.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#ifdef CONFIG_OVE_CONSOLE
37
50
63
74
86void ove_console_write(const char *buf, unsigned int len);
87
88#else /* !CONFIG_OVE_CONSOLE */
89
90static inline int ove_console_init(void)
91{
93}
94static inline int ove_console_getchar(void)
95{
96 return -1;
97}
98static inline void ove_console_putchar(int c)
99{
100 (void)c;
101}
102static inline void ove_console_write(const char *buf, unsigned int len)
103{
104 (void)buf;
105 (void)len;
106}
107
108#endif /* CONFIG_OVE_CONSOLE */
109
110#ifdef __cplusplus
111}
112#endif
113
/* end of ove_console group */
115
116#endif /* OVE_CONSOLE_H */
int ove_console_init(void)
Initialise the system console hardware.
int ove_console_getchar(void)
Read one character from the console.
void ove_console_write(const char *buf, unsigned int len)
Write a raw byte buffer to the console.
void ove_console_putchar(int c)
Write one character to the console.
@ OVE_ERR_NOT_SUPPORTED
Definition types.h:98