RTEMS
5.0.0
bsps
arm
include
bsp
arm-pl050-regs.h
Go to the documentation of this file.
1
9
/*
10
* Copyright (c) 2013 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_PL050_REGS_H
24
#define LIBBSP_ARM_SHARED_ARM_PL050_REGS_H
25
26
#include <
bsp/utility.h
>
27
28
typedef
struct
{
29
uint32_t kmicr;
30
#define PL050_KMICR_KMITYPE BSP_BIT32(5)
31
#define PL050_KMICR_KMIRXINTREN BSP_BIT32(4)
32
#define PL050_KMICR_KMITXINTREN BSP_BIT32(3)
33
#define PL050_KMICR_KMIEN BSP_BIT32(2)
34
#define PL050_KMICR_FKMID BSP_BIT32(1)
35
#define PL050_KMICR_FKMIC BSP_BIT32(0)
36
uint32_t kmistat;
37
#define PL050_KMISTAT_TXEMPTY BSP_BIT32(6)
38
#define PL050_KMISTAT_TXBUSY BSP_BIT32(5)
39
#define PL050_KMISTAT_RXFULL BSP_BIT32(4)
40
#define PL050_KMISTAT_RXBUSY BSP_BIT32(3)
41
#define PL050_KMISTAT_RXPARITY BSP_BIT32(2)
42
#define PL050_KMISTAT_KMIC BSP_BIT32(1)
43
#define PL050_KMISTAT_KMID BSP_BIT32(0)
44
uint32_t kmidata;
45
#define PL050_KMIDATA_KMIDATA(val) BSP_FLD32(val, 0, 7)
46
#define PL050_KMIDATA_KMIDATA_GET(reg) BSP_FLD32GET(reg, 0, 7)
47
#define PL050_KMIDATA_KMIDATA_SET(reg, val) BSP_FLD32SET(reg, val, 0, 7)
48
uint32_t kmiclkdiv;
49
#define PL050_KMICLKDIV_KMICLKDIV(val) BSP_FLD32(val, 0, 3)
50
#define PL050_KMICLKDIV_KMICLKDIV_GET(reg) BSP_FLD32GET(reg, 0, 3)
51
#define PL050_KMICLKDIV_KMICLKDIV_SET(reg, val) BSP_FLD32SET(reg, val, 0, 3)
52
uint32_t kmiir;
53
#define PL050_KMIIR_KMITXINTR BSP_BIT32(1)
54
#define PL050_KMIIR_KMIRXINTR BSP_BIT32(0)
55
}
pl050
;
56
57
#endif
/* LIBBSP_ARM_SHARED_ARM_PL050_REGS_H */
utility.h
Utility macros.
pl050
Definition:
arm-pl050-regs.h:28
Generated by
1.8.13