SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
Functions
uart.h File Reference

Go to the source code of this file.

Functions

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.
 
void uart_log_putchar (void *arg, char c)
 Writes a single character 'c' to the log output.
 
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.
 

Function Documentation

◆ 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)
extern

Writes the null-terminated string 's' to the standard output.

Parameters
sThe string to be written.
Returns
The number of characters written, excluding the terminating null byte.

◆ tstc()

int 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
argA pointer to optional arguments.
cThe character to be written.

◆ uart_putchar()

int uart_putchar ( int  c)

Writes a single character 'c' to the UART output.

Parameters
cThe 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
sThe string to be written.
Returns
The number of characters written, excluding the terminating null byte.