arm7_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2009, 2014 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for
6  * more details.
7  */
8 
9 #ifndef ARM7_COMMON_H
10 #define ARM7_COMMON_H
11 
27 #include "bitarithm.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
37 #define PCTIM0 (BIT1)
38 #define PCTIM1 (BIT2)
39 #define PCUART0 (BIT3)
40 #define PCUART1 (BIT4)
41 #define PCPWM1 (BIT6)
42 #define PCI2C0 (BIT7)
43 #define PCSPI (BIT8)
44 #define PCRTC (BIT9)
45 #define PCSSP1 (BIT10)
46 #define PCEMC (BIT11)
47 #define PCAD (BIT12)
48 #define PCAN1 (BIT13)
49 #define PCAN2 (BIT14)
50 #define PCI2C1 (BIT19)
51 #define PCSSP0 (BIT21)
52 #define PCTIM2 (BIT22)
53 #define PCTIM3 (BIT23)
54 #define PCUART2 (BIT24)
55 #define PCUART3 (BIT25)
56 #define PCI2C2 (BIT26)
57 #define PCI2S (BIT27)
58 #define PCSDC (BIT28)
59 #define PCGPDMA (BIT29)
60 #define PCENET (BIT30)
61 #define PCUSB (BIT31)
62 
68 #define PM0 (BIT0)
69 #define PM1 (BIT1)
70 #define BODPDM (BIT2)
71 #define BOGD (BIT3)
72 #define BORD (BIT4)
73 #define PM2 (BIT7)
74 
75 #define PM_IDLE (PM0)
76 #define PM_SLEEP (PM2|PM0)
77 #define PM_POWERDOWN (PM1)
78 
84 #define MR0I (BIT0)
85 #define MR0R (BIT1)
86 #define MR0S (BIT2)
87 #define MR1I (BIT3)
88 #define MR1R (BIT4)
89 #define MR1S (BIT5)
90 #define MR2I (BIT6)
91 #define MR2R (BIT7)
92 #define MR2S (BIT8)
93 #define MR3I (BIT9)
94 #define MR3R (BIT10)
95 #define MR3S (BIT11)
96 
98 #ifdef __cplusplus
99 }
100 #endif
101 
103 #endif /* ARM7_COMMON_H */
Helper functions for bit arithmetic.