Module process_console

Source
Expand description

Implements a text console over the UART that allows a terminal to inspect and control userspace processes.

For a more in-depth documentation check /doc/Process_Console.md

Structs§

Command
ConsoleWriter
KernelAddresses
Data structure to hold addresses about how the kernel is stored in memory on the chip.
ProcessConsole

Constants§

COMMAND_BUF_LEN
Commands can be up to 32 bytes long: since commands themselves are 4-5 characters, limiting arguments to 25 bytes or so seems fine for now.
DEFAULT_COMMAND_HISTORY_LEN
Default size for the history command.
QUEUE_BUF_LEN
Buffer responses are initially held in until copied to the TX buffer and transmitted.
READ_BUF_LEN
Since reads are byte-by-byte, to properly echo what’s typed, we can use a very small read buffer.
WRITE_BUF_LEN
Buffer to hold outgoing data that is passed to the UART hardware.