]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/drivers-frst/uart/include/uart_sa1000.h
Some minor fixes.
[l4.git] / l4 / pkg / drivers-frst / uart / include / uart_sa1000.h
1 /*
2  * (c) 2008-2012 Adam Lackorznynski <adam@os.inf.tu-dresden.de>
3  *               Alexander Warg <alexander.warg@os.inf.tu-dresden.de>
4  *     economic rights: Technische Universität Dresden (Germany)
5  *
6  * This file is part of TUD:OS and distributed under the terms of the
7  * GNU General Public License 2.
8  * Please see the COPYING-GPL-2 file for details.
9  */
10 #ifndef __L4_CXX_UART_SA1000_H__
11 #define __L4_CXX_UART_SA1000_H__
12
13 #include "uart_base.h"
14
15 namespace L4
16 {
17   class Uart_sa1000 : public Uart
18   {
19   public:
20     bool startup(Io_register_block const *);
21     void shutdown();
22     bool change_mode(Transfer_mode m, Baud_rate r);
23     int get_char(bool blocking = true) const;
24     int char_avail() const;
25     inline void out_char(char c) const;
26     int write(char const *s, unsigned long count) const;
27   };
28 };
29
30 #endif