File tree Expand file tree Collapse file tree 4 files changed +284
-0
lines changed
TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52
TARGET_MCU_NRF52832/TARGET_MTB_MURATA_WSM_BL241 Expand file tree Collapse file tree 4 files changed +284
-0
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
+ #ifndef MBED_PINNAMES_H
17
+ #define MBED_PINNAMES_H
18
+
19
+ #include "cmsis.h"
20
+
21
+ #ifdef __cplusplus
22
+ extern "C" {
23
+ #endif
24
+
25
+ typedef enum {
26
+ PIN_INPUT ,
27
+ PIN_OUTPUT
28
+ } PinDirection ;
29
+
30
+ #define PORT_SHIFT 3
31
+
32
+ typedef enum {
33
+ p0 = 0 ,
34
+ p1 = 1 ,
35
+ p2 = 2 ,
36
+ p3 = 3 ,
37
+ p4 = 4 ,
38
+ p5 = 5 ,
39
+ p6 = 6 ,
40
+ p7 = 7 ,
41
+ p8 = 8 ,
42
+ p9 = 9 ,
43
+ p10 = 10 ,
44
+ p11 = 11 ,
45
+ p12 = 12 ,
46
+ p13 = 13 ,
47
+ p14 = 14 ,
48
+ p15 = 15 ,
49
+ p16 = 16 ,
50
+ p17 = 17 ,
51
+ p18 = 18 ,
52
+ p19 = 19 ,
53
+ p20 = 20 ,
54
+ p21 = 21 ,
55
+ p22 = 22 ,
56
+ p23 = 23 ,
57
+ p24 = 24 ,
58
+ p25 = 25 ,
59
+ p26 = 26 ,
60
+ p27 = 27 ,
61
+ p28 = 28 ,
62
+ p29 = 29 ,
63
+ p30 = 30 ,
64
+ p31 = 31 ,
65
+
66
+
67
+ P0_0 = p0 ,
68
+ P0_1 = p1 ,
69
+ P0_2 = p2 ,
70
+ P0_3 = p3 ,
71
+ P0_4 = p4 ,
72
+ P0_5 = p5 ,
73
+ P0_6 = p6 ,
74
+ P0_7 = p7 ,
75
+
76
+ P0_8 = p8 ,
77
+ P0_9 = p9 ,
78
+ P0_10 = p10 ,
79
+ P0_11 = p11 ,
80
+ P0_12 = p12 ,
81
+ P0_13 = p13 ,
82
+ P0_14 = p14 ,
83
+ P0_15 = p15 ,
84
+
85
+ P0_16 = p16 ,
86
+ P0_17 = p17 ,
87
+ P0_18 = p18 ,
88
+ P0_19 = p19 ,
89
+ P0_20 = p20 ,
90
+ P0_21 = p21 ,
91
+ P0_22 = p22 ,
92
+ P0_23 = p23 ,
93
+
94
+ P0_24 = p24 ,
95
+ P0_25 = p25 ,
96
+ P0_26 = p26 ,
97
+ P0_27 = p27 ,
98
+ P0_28 = p28 ,
99
+ P0_29 = p29 ,
100
+ P0_30 = p30 ,
101
+ P0_31 = p31 ,
102
+
103
+ // Module pins. Refer datasheet for pin numbers.
104
+ /*
105
+ SIO_1 = P0_1,
106
+ SIO_2 = P0_2,
107
+ SIO_3 = P0_3,
108
+ SIO_4 = P0_4,
109
+ SIO_5 = P0_5,
110
+ SIO_6 = P0_6,
111
+ SIO_7 = P0_7,
112
+ SIO_8 = P0_8,
113
+ SIO_9 = P0_9, //NFC1
114
+ SIO_10 = P0_10, //NFC2
115
+ SIO_11 = P0_11,
116
+ SIO_12 = P0_12,
117
+ SIO_13 = P0_13,
118
+ SIO_14 = P0_14,
119
+ SIO_15 = P0_15,
120
+ SIO_16 = P0_16,
121
+ SIO_17 = P0_17,
122
+ SIO_18 = P0_18,
123
+ SIO_19 = P0_19,
124
+ SIO_20 = P0_20,
125
+
126
+ SIO_22 = P0_22,
127
+ SIO_23 = P0_23,
128
+ SIO_24 = P0_24,
129
+ SIO_25 = P0_25,
130
+ SIO_26 = P0_26,
131
+ SIO_27 = P0_27,
132
+ SIO_28 = P0_28,
133
+ SIO_29 = P0_29,
134
+ SIO_30 = P0_30,
135
+ SIO_31 = P0_31,
136
+ SIO_0 = P0_0,
137
+ */
138
+
139
+ // Not connected
140
+ NC = (int )0xFFFFFFFF ,
141
+
142
+ //Mbed MTB pin defines.
143
+ P_1 = P0_9 ,
144
+ P_2 = P0_6 ,
145
+ P_3 = P0_0 ,
146
+ P_4 = P0_1 ,
147
+ P_5 = NC ,
148
+ P_6 = NC ,
149
+ P_7 = NC ,
150
+ P_8 = NC ,
151
+ P_9 = P0_2 ,
152
+ P_10 = P0_5 ,
153
+ P_11 = P0_3 ,
154
+ P_12 = P0_4 ,
155
+ P_13 = P0_29 ,
156
+ P_14 = P0_7 ,
157
+ P_15 = P0_8 ,
158
+ // P_16 = SWDIO,
159
+ P_17 = P0_21 ,
160
+ // P_18 = SWDCLK,
161
+ P_19 = NC ,
162
+ P_20 = NC ,
163
+ P_21 = NC ,
164
+ P_22 = P0_18 ,
165
+ P_23 = P0_16 ,
166
+ P_24 = P0_15 ,
167
+ P_25 = P0_14 ,
168
+ P_26 = P0_10 ,
169
+ P_27 = P0_20 ,
170
+ P_28 = P0_17 ,
171
+ P_29 = P0_13 ,
172
+ P_30 = NC ,
173
+ P_31 = NC ,
174
+ P_32 = NC ,
175
+ P_33 = NC ,
176
+ P_34 = NC ,
177
+ P_35 = NC ,
178
+ P_36 = NC ,
179
+ P_37 = NC ,
180
+
181
+ //LEDs
182
+ LED1 = P_22 ,
183
+ /*
184
+ LED2 = SIO_29,
185
+ LED3 = SIO_30,
186
+ LED_RED = LED1,
187
+ LED_GREEN = LED2,
188
+ LED_BLUE = LED3,
189
+ */
190
+
191
+ GP0 = P_23 ,
192
+ //Standardized button name
193
+ BUTTON1 = GP0 ,
194
+
195
+ //Nordic SDK pin names
196
+ RX_PIN_NUMBER = P_15 ,
197
+ TX_PIN_NUMBER = P_2 ,
198
+
199
+ CTS_PIN_NUMBER = P_14 ,
200
+ RTS_PIN_NUMBER = P_10 ,
201
+
202
+ // mBed interface Pins
203
+ USBTX = TX_PIN_NUMBER ,
204
+ USBRX = RX_PIN_NUMBER ,
205
+ STDIO_UART_TX = TX_PIN_NUMBER ,
206
+ STDIO_UART_RX = RX_PIN_NUMBER ,
207
+ STDIO_UART_CTS = CTS_PIN_NUMBER ,
208
+ STDIO_UART_RTS = RTS_PIN_NUMBER ,
209
+
210
+ SPI_MOSI = P_9 ,
211
+ SPI_MISO = P_11 ,
212
+ SPI_NCS = P_22 , //CS for SPIFlash on MTB
213
+ SPI_SCK = P_12 ,
214
+
215
+ I2C_SDA = P_25 ,
216
+ I2C_SCL = P_24 ,
217
+
218
+ //MTB aliases
219
+ AIN0 = P_13 ,
220
+
221
+ } PinName ;
222
+
223
+ typedef enum {
224
+ PullNone = 0 ,
225
+ PullDown = 1 ,
226
+ PullUp = 2 ,
227
+ PullDefault = PullUp
228
+ } PinMode ;
229
+
230
+ #ifdef __cplusplus
231
+ }
232
+ #endif
233
+
234
+ #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
+ #include "objects.h"
22
+
23
+ #endif
Original file line number Diff line number Diff line change 84
84
" NRF52_PAN_64"
85
85
]
86
86
},
87
+ "MTB_MURATA_WSM_BL241" : {
88
+ "target.macros_add" : [
89
+ " CONFIG_GPIO_AS_PINRESET" ,
90
+ " NRF52_PAN_12" ,
91
+ " NRF52_PAN_15" ,
92
+ " NRF52_PAN_20" ,
93
+ " NRF52_PAN_30" ,
94
+ " NRF52_PAN_31" ,
95
+ " NRF52_PAN_36" ,
96
+ " NRF52_PAN_51" ,
97
+ " NRF52_PAN_53" ,
98
+ " NRF52_PAN_54" ,
99
+ " NRF52_PAN_55" ,
100
+ " NRF52_PAN_58" ,
101
+ " NRF52_PAN_62" ,
102
+ " NRF52_PAN_63" ,
103
+ " NRF52_PAN_64"
104
+ ],
105
+ "target.lf_clock_src" : " NRF_LF_SRC_XTAL" ,
106
+ "target.console-uart-flow-control" : null
107
+ },
87
108
"NRF52_DK" : {
88
109
"target.macros_add" : [
89
110
" CONFIG_GPIO_AS_PINRESET" ,
Original file line number Diff line number Diff line change 6349
6349
"release_versions" : [" 5" ],
6350
6350
"device_name" : " nRF52832_xxAA"
6351
6351
},
6352
+ "MTB_MURATA_WSM_BL241" : {
6353
+ "inherits" : [" MCU_NRF52832" ],
6354
+ "release_versions" : [" 5" ],
6355
+ "device_name" : " nRF52832_xxAA" ,
6356
+ "detect_code" : [" 0466" ]
6357
+ },
6352
6358
"DELTA_DFBM_NQ620" : {
6353
6359
"supported_form_factors" : [" ARDUINO" ],
6354
6360
"inherits" : [" MCU_NRF52832" ],
You can’t perform that action at this time.
0 commit comments