#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <types.h>
#include <timer.h>
#include <sys-uart.h>
#include <uart.h>
|
| void | uart_log_putchar (void *arg, char c) |
| | Writes a single character 'c' to the log output.
|
| |
| int | uart_putchar (int c) |
| | Writes a single character 'c' to the UART output.
|
| |
| int | uart_puts (const char *s) |
| | Writes the null-terminated string 's' to the UART output.
|
| |
| int | uart_getchar (void) |
| | Reads a single character from the UART input.
|
| |
| char | get_uart_input (void) |
| | Waits for and returns a single character from the UART input.
|
| |
| int | tstc () |
| | Tests whether a character is waiting in the UART input buffer.
|
| |
| int | puts (const char *s) |
| | Writes the null-terminated string 's' to the standard output.
|
| |
◆ get_uart_input()
| char get_uart_input |
( |
void |
| ) |
|
Waits for and returns a single character from the UART input.
- Returns
- The character that was read.
◆ puts()
| int puts |
( |
const char * |
s | ) |
|
Writes the null-terminated string 's' to the standard output.
- Parameters
-
| s | The string to be written. |
- Returns
- The number of characters written, excluding the terminating null byte.
◆ tstc()
Tests whether a character is waiting in the UART input buffer.
- Returns
- 1 if a character is waiting, 0 otherwise.
◆ uart_getchar()
| int uart_getchar |
( |
void |
| ) |
|
Reads a single character from the UART input.
- Returns
- The character that was read.
◆ uart_log_putchar()
| void uart_log_putchar |
( |
void * |
arg, |
|
|
char |
c |
|
) |
| |
Writes a single character 'c' to the log output.
- Parameters
-
| arg | A pointer to optional arguments. |
| c | The character to be written. |
◆ uart_putchar()
| int uart_putchar |
( |
int |
c | ) |
|
Writes a single character 'c' to the UART output.
- Parameters
-
| c | The character to be written. |
- Returns
- The character that was written.
◆ uart_puts()
| int uart_puts |
( |
const char * |
s | ) |
|
Writes the null-terminated string 's' to the UART output.
- Parameters
-
| s | The string to be written. |
- Returns
- The number of characters written, excluding the terminating null byte.
◆ uart_dbg