14class Uart_pl011 :
public Uart
18 Uart_pl011(
unsigned freq) : _freq(freq) {}
19 bool startup(Io_register_block
const *)
override;
21 bool change_mode(Transfer_mode m, Baud_rate r)
override;
23 void wait_tx_done()
const;
24 inline void out_char(
char c)
const;
25 int write(
char const *s,
unsigned long count,
26 bool blocking =
true)
const override;
28 bool enable_rx_irq(
bool enable)
override;
30 int get_char(
bool blocking =
true)
const override;
33 void set_rate(Baud_rate r);
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.