fb11e647
vrobic
reseau statique a...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
/*
* Copyright (C) 2008-2009, 2014 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for
* more details.
*/
#ifndef ARM7_COMMON_H_
#define ARM7_COMMON_H_
/**
* @defgroup cpu_arm7_common ARM7 CPU common
* @brief Common implementations and headers for ARM based micro-controllers
* @ingroup cpu
* @{
*/
/**
* @file
* @brief ARM7 CPU common declarations
*
* @author Freie Universität Berlin, Computer Systems & Telematics
*
*/
#include "bitarithm.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name PCONP Constants
* @{
*/
#define PCTIM0 (BIT1)
#define PCTIM1 (BIT2)
#define PCUART0 (BIT3)
#define PCUART1 (BIT4)
#define PCPWM1 (BIT6)
#define PCI2C0 (BIT7)
#define PCSPI (BIT8)
#define PCRTC (BIT9)
#define PCSSP1 (BIT10)
#define PCEMC (BIT11)
#define PCAD (BIT12)
#define PCAN1 (BIT13)
#define PCAN2 (BIT14)
#define PCI2C1 (BIT19)
#define PCSSP0 (BIT21)
#define PCTIM2 (BIT22)
#define PCTIM3 (BIT23)
#define PCUART2 (BIT24)
#define PCUART3 (BIT25)
#define PCI2C2 (BIT26)
#define PCI2S (BIT27)
#define PCSDC (BIT28)
#define PCGPDMA (BIT29)
#define PCENET (BIT30)
#define PCUSB (BIT31)
/** @} */
/**
* @name PCON Constants
* @{
*/
#define PM0 (BIT0)
#define PM1 (BIT1)
#define BODPDM (BIT2)
#define BOGD (BIT3)
#define BORD (BIT4)
#define PM2 (BIT7)
#define PM_IDLE (PM0)
#define PM_SLEEP (PM2|PM0)
#define PM_POWERDOWN (PM1)
/** @} */
/**
* @name Timer Symbols
* @{
*/
#define MR0I (BIT0)
#define MR0R (BIT1)
#define MR0S (BIT2)
#define MR1I (BIT3)
#define MR1R (BIT4)
#define MR1S (BIT5)
#define MR2I (BIT6)
#define MR2R (BIT7)
#define MR2S (BIT8)
#define MR3I (BIT9)
#define MR3R (BIT10)
#define MR3S (BIT11)
/** @} */
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* ARM7_COMMON_H_ */
|