File tree Expand file tree Collapse file tree 6 files changed +532
-2
lines changed
TARGET_MCU_NRF51822/TARGET_VBLUNO51
TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED Expand file tree Collapse file tree 6 files changed +532
-2
lines changed Original file line number Diff line number Diff line change
1
+ /* mbed Microcontroller Library
2
+ * Copyright (c) 2013 Nordic Semiconductor
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ /*
18
+ * PinNames for VBLUno51 board
19
+ */
20
+ #ifndef MBED_PINNAMES_H
21
+ #define MBED_PINNAMES_H
22
+
23
+ #include "cmsis.h"
24
+
25
+ #ifdef __cplusplus
26
+ extern "C" {
27
+ #endif
28
+
29
+ typedef enum {
30
+ PIN_INPUT ,
31
+ PIN_OUTPUT
32
+ } PinDirection ;
33
+
34
+ #define PORT_SHIFT 3
35
+
36
+ typedef enum {
37
+ p0 = 0 ,
38
+ p1 = 1 ,
39
+ p2 = 2 ,
40
+ p3 = 3 ,
41
+ p4 = 4 ,
42
+ p5 = 5 ,
43
+ p6 = 6 ,
44
+ p7 = 7 ,
45
+ p8 = 8 ,
46
+ p9 = 9 ,
47
+ p10 = 10 ,
48
+ p11 = 11 ,
49
+ p12 = 12 ,
50
+ p13 = 13 ,
51
+ p14 = 14 ,
52
+ p15 = 15 ,
53
+ p16 = 16 ,
54
+ p17 = 17 ,
55
+ p18 = 18 ,
56
+ p19 = 19 ,
57
+ p20 = 20 ,
58
+ p21 = 21 ,
59
+ p22 = 22 ,
60
+ p23 = 23 ,
61
+ p24 = 24 ,
62
+ p25 = 25 ,
63
+ p26 = 26 ,
64
+ p27 = 27 ,
65
+ p28 = 28 ,
66
+ p29 = 29 ,
67
+ p30 = 30 ,
68
+
69
+ P0_0 = p0 ,
70
+ P0_1 = p1 ,
71
+ P0_2 = p2 ,
72
+ P0_3 = p3 ,
73
+ P0_4 = p4 ,
74
+ P0_5 = p5 ,
75
+ P0_6 = p6 ,
76
+ P0_7 = p7 ,
77
+
78
+ P0_8 = p8 ,
79
+ P0_9 = p9 ,
80
+ P0_10 = p10 ,
81
+ P0_11 = p11 ,
82
+ P0_12 = p12 ,
83
+ P0_13 = p13 ,
84
+ P0_14 = p14 ,
85
+ P0_15 = p15 ,
86
+
87
+ P0_16 = p16 ,
88
+ P0_17 = p17 ,
89
+ P0_18 = p18 ,
90
+ P0_19 = p19 ,
91
+ P0_20 = p20 ,
92
+ P0_21 = p21 ,
93
+ P0_22 = p22 ,
94
+ P0_23 = p23 ,
95
+
96
+ P0_24 = p24 ,
97
+ P0_25 = p25 ,
98
+ P0_26 = p26 ,
99
+ P0_27 = p27 ,
100
+ P0_28 = p28 ,
101
+ P0_29 = p29 ,
102
+ P0_30 = p30 ,
103
+
104
+ //only for mbed test suite
105
+ LED1 = p7 ,
106
+ LED2 = p9 ,
107
+ LED3 = p16 ,
108
+ LED4 = p17 ,
109
+
110
+ BUTTON1 = p15 ,
111
+ BUTTON2 = p21 ,
112
+ BUTTON3 = p22 ,
113
+ BUTTON4 = p18 ,
114
+
115
+ // mbed-os interface pins
116
+ TX_PIN_NUMBER = p10 ,
117
+ RX_PIN_NUMBER = p11 ,
118
+ RTS_PIN_NUMBER = p12 , //not on Jump
119
+ CTS_PIN_NUMBER = p13 , //not on Jump
120
+
121
+ USBTX = TX_PIN_NUMBER ,
122
+ USBRX = RX_PIN_NUMBER ,
123
+
124
+ SPIS_PSELMOSI = p24 ,
125
+ SPIS_PSELMISO = p25 ,
126
+ SPIS_PSELSS = p23 ,
127
+ SPIS_PSELSCK = p28 ,
128
+
129
+ SPIS_PSELMOSI1 = p24 ,
130
+ SPIS_PSELMISO1 = p25 ,
131
+ SPIS_PSELSS1 = p23 ,
132
+ SPIS_PSELSCK1 = p28 ,
133
+
134
+ SPIS_PSELMOSI0 = p24 ,
135
+ SPIS_PSELMISO0 = p25 ,
136
+ SPIS_PSELSS0 = p23 ,
137
+ SPIS_PSELSCK0 = p28 ,
138
+
139
+ I2C_SDA = p29 ,
140
+ I2C_SCL = p30 ,
141
+ I2C_SDA0 = p29 ,
142
+ I2C_SCL0 = p30 ,
143
+ I2C_SDA1 = p5 ,
144
+ I2C_SCL1 = p6 ,
145
+
146
+ //Adruino interface pins
147
+ D0 = p11 ,
148
+ D1 = p10 ,
149
+ D2 = p20 ,
150
+ D3 = p19 ,
151
+ D4 = p18 ,
152
+ D5 = p17 ,
153
+ D6 = p16 ,
154
+ D7 = p9 ,
155
+ D8 = p21 ,
156
+ D9 = p22 ,
157
+ D10 = p23 ,
158
+ D11 = p24 ,
159
+ D12 = p25 ,
160
+ D13 = p28 ,
161
+ D14 = p1 ,
162
+ D15 = p2 ,
163
+ D16 = p3 ,
164
+ D17 = p4 ,
165
+ D18 = p5 ,
166
+ D19 = p6 ,
167
+ D20 = p29 ,
168
+ D21 = p30 ,
169
+ D22 = p7 ,
170
+ D23 = p15 ,
171
+ D24 = p12 ,
172
+ D25 = p13 ,
173
+
174
+ SS = D10 ,
175
+ MOSI = D11 ,
176
+ MISO = D12 ,
177
+ SCK = D13 ,
178
+
179
+ A0 = D14 ,
180
+ A1 = D15 ,
181
+ A2 = D16 ,
182
+ A3 = D17 ,
183
+ A4 = D18 ,
184
+ A5 = D19 ,
185
+
186
+ SDA0 = D20 ,
187
+ SCL0 = D21 ,
188
+ SDA1 = D18 ,
189
+ SCL1 = D19 ,
190
+ SDA = SDA0 ,
191
+ SCL = SCL0 ,
192
+
193
+ RX = D0 ,
194
+ TX = D1 ,
195
+ RTS = D24 , //not on Jump
196
+ CTS = D25 , //not on Jump
197
+
198
+ LED = D22 , //not on Jump
199
+ BUT = D23 , //not on Jump
200
+
201
+ // Not connected
202
+ NC = (int )0xFFFFFFFF
203
+ } PinName ;
204
+
205
+ typedef enum {
206
+ PullNone = 0 ,
207
+ PullDown = 1 ,
208
+ PullUp = 3 ,
209
+ PullDefault = PullUp
210
+ } PinMode ;
211
+
212
+ #ifdef __cplusplus
213
+ }
214
+ #endif
215
+
216
+ #endif
Original file line number Diff line number Diff line change
1
+ // The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches.
2
+ // Check the 'features' section of the target description in 'targets.json' for more details.
3
+ /* mbed Microcontroller Library
4
+ * Copyright (c) 2006-2013 ARM Limited
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ #ifndef MBED_DEVICE_H
19
+ #define MBED_DEVICE_H
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+ #include "objects.h"
37
+
38
+ #endif
You can’t perform that action at this time.
0 commit comments