]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/drivers/uart/src/uart_dummy.cc
ac78461c86c0bc6c404f3819c960052118f04dd4
[l4.git] / l4 / pkg / drivers / uart / src / uart_dummy.cc
1 /*
2  * (c) 2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>
3  *     economic rights: Technische Universität Dresden (Germany)
4  *
5  * This file is part of TUD:OS and distributed under the terms of the
6  * GNU General Public License 2.
7  * Please see the COPYING-GPL-2 file for details.
8  */
9 #include "uart_dummy.h"
10
11 namespace L4
12 {
13   bool Uart_dummy::startup(unsigned long /*base*/)
14   { return true; }
15
16   void Uart_dummy::shutdown()
17   {}
18
19   bool Uart_dummy::enable_rx_irq(bool /*enable*/) 
20   { return true; }
21   bool Uart_dummy::enable_tx_irq(bool /*enable*/) { return false; }
22   bool Uart_dummy::change_mode(Transfer_mode, Baud_rate)
23   { return true; }
24
25   int Uart_dummy::get_char(bool /*blocking*/) const
26   { return 0; }
27
28   int Uart_dummy::char_avail() const 
29   { return false; }
30
31   void Uart_dummy::out_char(char c) const
32   { (void)c; }
33
34   int Uart_dummy::write(char const *s, unsigned long count) const
35   { (void)s; (void)count; return 0; }
36 };