13#include <l4/drivers/of.h>
17class Uart_of :
public Uart,
public L4_drivers::Of
23 Uart_of() : Of(), _serial(0) {}
24 explicit Uart_of(
unsigned ) : Of(), _serial(0) {}
25 bool startup(Io_register_block
const *)
override;
27 bool change_mode(Transfer_mode m, Baud_rate r)
override;
29 void out_char(
char c)
const;
30 int write(
char const *s,
unsigned long count,
31 bool blocking =
true)
const override;
34 int get_char(
bool blocking =
true)
const override;
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.