arm7_common.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2008-2009 Freie Universität Berlin
3  * SPDX-FileCopyrightText: 2014 Freie Universität Berlin
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
24 #include "bitarithm.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 #define PCTIM0 (BIT1)
35 #define PCTIM1 (BIT2)
36 #define PCUART0 (BIT3)
37 #define PCUART1 (BIT4)
38 #define PCPWM1 (BIT6)
39 #define PCI2C0 (BIT7)
40 #define PCSPI (BIT8)
41 #define PCRTC (BIT9)
42 #define PCSSP1 (BIT10)
43 #define PCEMC (BIT11)
44 #define PCAD (BIT12)
45 #define PCAN1 (BIT13)
46 #define PCAN2 (BIT14)
47 #define PCI2C1 (BIT19)
48 #define PCSSP0 (BIT21)
49 #define PCTIM2 (BIT22)
50 #define PCTIM3 (BIT23)
51 #define PCUART2 (BIT24)
52 #define PCUART3 (BIT25)
53 #define PCI2C2 (BIT26)
54 #define PCI2S (BIT27)
55 #define PCSDC (BIT28)
56 #define PCGPDMA (BIT29)
57 #define PCENET (BIT30)
58 #define PCUSB (BIT31)
65 #define PM0 (BIT0)
66 #define PM1 (BIT1)
67 #define BODPDM (BIT2)
68 #define BOGD (BIT3)
69 #define BORD (BIT4)
70 #define PM2 (BIT7)
71 
72 #define PM_IDLE (PM0)
73 #define PM_SLEEP (PM2|PM0)
74 #define PM_POWERDOWN (PM1)
75 #define PM_DEEP_POWERDOWN (PM2|PM1)
82 #define MR0I (BIT0)
83 #define MR0R (BIT1)
84 #define MR0S (BIT2)
85 #define MR1I (BIT3)
86 #define MR1R (BIT4)
87 #define MR1S (BIT5)
88 #define MR2I (BIT6)
89 #define MR2R (BIT7)
90 #define MR2S (BIT8)
91 #define MR3I (BIT9)
92 #define MR3R (BIT10)
93 #define MR3S (BIT11)
96 #ifdef __cplusplus
97 }
98 #endif
99 
Helper functions for bit arithmetic.