|
HomeCore 0.1.3 (07b5544)
Bare-metal personal computer firmware for Cortex-M
|
Direct access, outside the VFS, to the device named by chosen.console.
More...
Data Structures | |
| struct | console_ops_t |
| Console operations a serial driver provides. More... | |
| struct | console_t |
| A console: driver operations bound to one device instance. More... | |
Functions | |
| bool | console_ready (void) |
| Report whether the console device has been initialized. | |
| void | console_flush (void) |
| Wait until all written console output has been transmitted. | |
Variables | |
| const console_t | dt_console |
Console chosen by the device description; generated in devicetree.c. | |
Direct access, outside the VFS, to the device named by chosen.console.
The generated device description defines dt_console, which pairs a driver's console operations with the chosen device instance. The board interface's board_uart_* functions and panic paths use it, so boards contain no UART code. Every operation is valid only after dt_init() has initialized the device; check console_ready() on paths that can run earlier.
| bool console_ready | ( | void | ) |
Report whether the console device has been initialized.
true after dt_init() has initialized the chosen console device.