Skip to content

Commit 60f37b4

Browse files
committed
There is only an LPC4088 target
1 parent 64952d4 commit 60f37b4

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

workspace_tools/targets.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import os
2727
import shutil
2828

29+
2930
class Target:
3031
def __init__(self):
3132
# ARM Core
@@ -51,6 +52,7 @@ def get_labels(self):
5152
def init_hooks(self, hook, toolchain_name):
5253
pass
5354

55+
5456
class LPC2368(Target):
5557
def __init__(self):
5658
Target.__init__(self)
@@ -168,16 +170,11 @@ def __init__(self):
168170
self.extra_labels = ['NXP', 'LPC408X']
169171

170172
self.supported_toolchains = ["ARM", "GCC_CR", "GCC_ARM"]
171-
172-
# Use this target to generate the custom binary image for LPC4088 EA boards
173-
class LPC4088_EA(LPC4088):
174-
def __init__(self):
175-
LPC4088.__init__(self)
176-
173+
177174
def init_hooks(self, hook, toolchain_name):
178175
if toolchain_name in ['ARM_STD', 'ARM_MICRO']:
179176
hook.hook_add_binary("post", self.binary_hook)
180-
177+
181178
@staticmethod
182179
def binary_hook(t_self, elf, binf):
183180
if not os.path.isdir(binf):
@@ -206,6 +203,7 @@ def binary_hook(t_self, elf, binf):
206203
os.rename(binf + '.temp', binf)
207204
t_self.debug("Generated custom binary file (internal flash + SPIFI)")
208205

206+
209207
class LPC4330_M4(Target):
210208
def __init__(self):
211209
Target.__init__(self)
@@ -293,26 +291,29 @@ def __init__(self):
293291

294292
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM"]
295293

294+
296295
class LPC11U35_401(Target):
297296
def __init__(self):
298297
Target.__init__(self)
299-
298+
300299
self.core = "Cortex-M0"
301-
300+
302301
self.extra_labels = ['NXP', 'LPC11UXX']
303-
302+
304303
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM"]
305304

305+
306306
class nRF51822(Target):
307307
def __init__(self):
308308
Target.__init__(self)
309-
309+
310310
self.core = "Cortex-M0"
311-
311+
312312
self.extra_labels = ["NORDIC"]
313-
313+
314314
self.supported_toolchains = ["ARM"]
315315

316+
316317
# Get a single instance for each target
317318
TARGETS = [
318319
LPC2368(),
@@ -332,7 +333,6 @@ def __init__(self):
332333
LPC1114(),
333334
LPC11C24(),
334335
LPC11U35_401(),
335-
LPC4088_EA(),
336336
nRF51822()
337337
]
338338

@@ -344,4 +344,4 @@ def __init__(self):
344344
TARGET_NAMES = TARGET_MAP.keys()
345345

346346
# Some targets with different name have the same exporters
347-
EXPORT_MAP = {"LPC4088_EA": "LPC4088"}
347+
EXPORT_MAP = {}

0 commit comments

Comments
 (0)