Skip to content

Commit b2733e9

Browse files
author
Bogdan Marinescu
committed
Added preliminary support for nRF51822 as a target
No actual files for the target, just the target definition for now, so it can't be compiled yet.
1 parent 5b6faea commit b2733e9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

workspace_tools/targets.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,16 @@ def __init__(self):
303303

304304
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM"]
305305

306+
class nRF51822(Target):
307+
def __init__(self):
308+
Target.__init__(self)
309+
310+
self.core = "Cortex-M0"
311+
312+
self.extra_labels = ["NORDIC"]
313+
314+
self.supported_toolchains = ["ARM"]
315+
306316
# Get a single instance for each target
307317
TARGETS = [
308318
LPC2368(),
@@ -322,7 +332,8 @@ def __init__(self):
322332
LPC1114(),
323333
LPC11C24(),
324334
LPC11U35_401(),
325-
LPC4088_EA()
335+
LPC4088_EA(),
336+
nRF51822()
326337
]
327338

328339
# Map each target name to its unique instance

0 commit comments

Comments
 (0)