]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/drivers-frst/uart/src/uart_dummy.cc
update
[l4.git] / l4 / pkg / drivers-frst / uart / src / uart_dummy.cc
1 /*
2  * (c) 2009-2012 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(Io_register_block const *)
14   { return true; }
15
16   void Uart_dummy::shutdown()
17   {}
18
19   bool Uart_dummy::change_mode(Transfer_mode, Baud_rate)
20   { return true; }
21
22   int Uart_dummy::get_char(bool /*blocking*/) const
23   { return 0; }
24
25   int Uart_dummy::char_avail() const
26   { return false; }
27
28   void Uart_dummy::out_char(char c) const
29   { (void)c; }
30
31   int Uart_dummy::write(char const *s, unsigned long count) const
32   { (void)s; (void)count; return 0; }
33 };