Loading...
Searching...
No Matches
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#pragma once
10
17
25
26#include "bitarithm.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
36#define PCTIM0 (BIT1)
37#define PCTIM1 (BIT2)
38#define PCUART0 (BIT3)
39#define PCUART1 (BIT4)
40#define PCPWM1 (BIT6)
41#define PCI2C0 (BIT7)
42#define PCSPI (BIT8)
43#define PCRTC (BIT9)
44#define PCSSP1 (BIT10)
45#define PCEMC (BIT11)
46#define PCAD (BIT12)
47#define PCAN1 (BIT13)
48#define PCAN2 (BIT14)
49#define PCI2C1 (BIT19)
50#define PCSSP0 (BIT21)
51#define PCTIM2 (BIT22)
52#define PCTIM3 (BIT23)
53#define PCUART2 (BIT24)
54#define PCUART3 (BIT25)
55#define PCI2C2 (BIT26)
56#define PCI2S (BIT27)
57#define PCSDC (BIT28)
58#define PCGPDMA (BIT29)
59#define PCENET (BIT30)
60#define PCUSB (BIT31)
62
67#define PM0 (BIT0)
68#define PM1 (BIT1)
69#define BODPDM (BIT2)
70#define BOGD (BIT3)
71#define BORD (BIT4)
72#define PM2 (BIT7)
73
74#define PM_IDLE (PM0)
75#define PM_SLEEP (PM2|PM0)
76#define PM_POWERDOWN (PM1)
77#define PM_DEEP_POWERDOWN (PM2|PM1)
79
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)
97
98#ifdef __cplusplus
99}
100#endif
101
Helper functions for bit arithmetic.