1 #ifndef L4_CXX_UART_OF_H__
2 #define L4_CXX_UART_OF_H__
11 class Uart_of : public Uart, public Of
17 Uart_of(unsigned long prom)
18 : Uart(0, 0), Of(prom), _serial(0) {}
19 bool startup(unsigned long base);
22 bool enable_rx_irq(bool enable = true);
23 bool enable_tx_irq(bool enable = true);
24 bool change_mode(Transfer_mode m, Baud_rate r);
25 int get_char(bool blocking = true) const;
26 int char_avail() const;
27 void out_char(char c) const;
28 int write(char const *s, unsigned long count) const;