ArvernOS
Loading...
Searching...
No Matches
io.h File Reference
#include <stdbool.h>
Include dependency graph for io.h:

Functions

unsigned char arch_getchar (bool blocking)
void arch_screen_putchar (char c)
void arch_serial_putchar (char c)

Detailed Description

Architecture-specific code for input/output. Currently, "input" and "output" are not well-defined, although the functions listed below should be used exclusively by the kernel. Input should be "the thing that sends characters typed by a human to the kernel" and output should be "the thing that sends characters from the kernel to a human".

Function Documentation

◆ arch_getchar()

unsigned char arch_getchar ( bool blocking)

Reads a character from an input.

Parameters
blockingwhether the call to this function should wait for a character or not
Returns
a character

◆ arch_screen_putchar()

void arch_screen_putchar ( char c)

Prints a character to the screen. This function might be a no-op on headless boards.

Parameters
cthe character to print

◆ arch_serial_putchar()

void arch_serial_putchar ( char c)

Prints a character to a serial line.

Parameters
cthe character to print