mirror of https://github.com/ARMmbed/mbed-os.git
There is only an LPC4088 target
parent
64952d4f7e
commit
60f37b4adf
|
@ -26,6 +26,7 @@ CORE_LABELS = {
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
|
||||||
class Target:
|
class Target:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# ARM Core
|
# ARM Core
|
||||||
|
@ -51,6 +52,7 @@ class Target:
|
||||||
def init_hooks(self, hook, toolchain_name):
|
def init_hooks(self, hook, toolchain_name):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class LPC2368(Target):
|
class LPC2368(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
@ -169,11 +171,6 @@ class LPC4088(Target):
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM", "GCC_CR", "GCC_ARM"]
|
self.supported_toolchains = ["ARM", "GCC_CR", "GCC_ARM"]
|
||||||
|
|
||||||
# Use this target to generate the custom binary image for LPC4088 EA boards
|
|
||||||
class LPC4088_EA(LPC4088):
|
|
||||||
def __init__(self):
|
|
||||||
LPC4088.__init__(self)
|
|
||||||
|
|
||||||
def init_hooks(self, hook, toolchain_name):
|
def init_hooks(self, hook, toolchain_name):
|
||||||
if toolchain_name in ['ARM_STD', 'ARM_MICRO']:
|
if toolchain_name in ['ARM_STD', 'ARM_MICRO']:
|
||||||
hook.hook_add_binary("post", self.binary_hook)
|
hook.hook_add_binary("post", self.binary_hook)
|
||||||
|
@ -206,6 +203,7 @@ class LPC4088_EA(LPC4088):
|
||||||
os.rename(binf + '.temp', binf)
|
os.rename(binf + '.temp', binf)
|
||||||
t_self.debug("Generated custom binary file (internal flash + SPIFI)")
|
t_self.debug("Generated custom binary file (internal flash + SPIFI)")
|
||||||
|
|
||||||
|
|
||||||
class LPC4330_M4(Target):
|
class LPC4330_M4(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
@ -293,6 +291,7 @@ class LPC11C24(Target):
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM"]
|
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM"]
|
||||||
|
|
||||||
|
|
||||||
class LPC11U35_401(Target):
|
class LPC11U35_401(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
@ -303,6 +302,7 @@ class LPC11U35_401(Target):
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM"]
|
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM"]
|
||||||
|
|
||||||
|
|
||||||
class nRF51822(Target):
|
class nRF51822(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
@ -313,6 +313,7 @@ class nRF51822(Target):
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM"]
|
self.supported_toolchains = ["ARM"]
|
||||||
|
|
||||||
|
|
||||||
# Get a single instance for each target
|
# Get a single instance for each target
|
||||||
TARGETS = [
|
TARGETS = [
|
||||||
LPC2368(),
|
LPC2368(),
|
||||||
|
@ -332,7 +333,6 @@ TARGETS = [
|
||||||
LPC1114(),
|
LPC1114(),
|
||||||
LPC11C24(),
|
LPC11C24(),
|
||||||
LPC11U35_401(),
|
LPC11U35_401(),
|
||||||
LPC4088_EA(),
|
|
||||||
nRF51822()
|
nRF51822()
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -344,4 +344,4 @@ for t in TARGETS:
|
||||||
TARGET_NAMES = TARGET_MAP.keys()
|
TARGET_NAMES = TARGET_MAP.keys()
|
||||||
|
|
||||||
# Some targets with different name have the same exporters
|
# Some targets with different name have the same exporters
|
||||||
EXPORT_MAP = {"LPC4088_EA": "LPC4088"}
|
EXPORT_MAP = {}
|
||||||
|
|
Loading…
Reference in New Issue