14class Uart_dummy :
public Uart
17 explicit Uart_dummy() {}
18 explicit Uart_dummy(
unsigned ) {}
19 bool startup(Io_register_block
const *)
override {
return true; }
21 bool change_mode(Transfer_mode, Baud_rate)
override {
return true; }
22 inline void out_char(
char )
const {}
23 int write(
char const * ,
unsigned long ,
24 bool =
true)
const override
27 int char_avail()
const override {
return false; }
28 int get_char(
bool =
true)
const override {
return 0; }
virtual void shutdown()=0
Terminate the UART driver.
virtual int char_avail() const =0
Check if there is at least one character available for reading from the UART.
L4 low-level kernel interface.