4.115
Last change
on this file since 991fdb33 was
116ef2e9,
checked in by Sebastian Huber <sebastian.huber@…>, on 10/13/14 at 13:19:12
|
bsps/arm: Convert PL011 and PL050 console drivers
Use Termios device API.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup arm_shared |
---|
5 | * |
---|
6 | * @brief ARM PL011 Support Package |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2013-2014 embedded brains GmbH. All rights reserved. |
---|
11 | * |
---|
12 | * embedded brains GmbH |
---|
13 | * Dornierstr. 4 |
---|
14 | * 82178 Puchheim |
---|
15 | * Germany |
---|
16 | * <info@embedded-brains.de> |
---|
17 | * |
---|
18 | * The license and distribution terms for this file may be |
---|
19 | * found in the file LICENSE in this distribution or at |
---|
20 | * http://www.rtems.org/license/LICENSE. |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef LIBBSP_ARM_SHARED_ARM_PL011_H |
---|
24 | #define LIBBSP_ARM_SHARED_ARM_PL011_H |
---|
25 | |
---|
26 | #include <rtems/termiostypes.h> |
---|
27 | |
---|
28 | #include <bsp/arm-pl011-regs.h> |
---|
29 | |
---|
30 | #ifdef __cplusplus |
---|
31 | extern "C" { |
---|
32 | #endif /* __cplusplus */ |
---|
33 | |
---|
34 | typedef struct { |
---|
35 | rtems_termios_device_context base; |
---|
36 | volatile pl011 *regs; |
---|
37 | rtems_vector_number irq; |
---|
38 | uint32_t initial_baud; |
---|
39 | } arm_pl011_context; |
---|
40 | |
---|
41 | bool arm_pl011_probe(rtems_termios_device_context *base); |
---|
42 | |
---|
43 | void arm_pl011_write_polled(rtems_termios_device_context *base, char c); |
---|
44 | |
---|
45 | extern const rtems_termios_device_handler arm_pl011_fns; |
---|
46 | |
---|
47 | #ifdef __cplusplus |
---|
48 | } |
---|
49 | #endif /* __cplusplus */ |
---|
50 | |
---|
51 | #endif /* LIBBSP_ARM_SHARED_ARM_PL011_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.