SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
uart.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+ */
2
3#ifndef __CLI_UART_H__
4#define __CLI_UART_H__
5
6#ifdef __cplusplus
7extern "C" {
8#endif// __cplusplus
9
16int uart_putchar(int c);
17
24int uart_puts(const char *s);
25
31int uart_getchar(void);
32
38char get_uart_input(void);
39
46void uart_log_putchar(void *arg, char c);
47
53int tstc();
54
61extern int puts(const char *s);
62
63#ifdef __cplusplus
64}
65#endif// __cplusplus
66
67#endif//__CLI_UART_H__
void uart_log_putchar(void *arg, char c)
Writes a single character 'c' to the log output.
Definition uart.c:17
int uart_puts(const char *s)
Writes the null-terminated string 's' to the UART output.
Definition uart.c:39
char get_uart_input(void)
Waits for and returns a single character from the UART input.
Definition uart.c:65
int uart_getchar(void)
Reads a single character from the UART input.
Definition uart.c:52
int puts(const char *s)
Writes the null-terminated string 's' to the standard output.
Definition uart.c:94
int uart_putchar(int c)
Writes a single character 'c' to the UART output.
Definition uart.c:27
int tstc()
Tests whether a character is waiting in the UART input buffer.
Definition uart.c:89