mirror of https://github.com/ARMmbed/mbed-os.git
Fix targets.py formatting
parent
27d07f4a1d
commit
d6c658e859
|
@ -28,21 +28,21 @@ class Target:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# ARM Core
|
# ARM Core
|
||||||
self.core = None
|
self.core = None
|
||||||
|
|
||||||
# Is the disk provided by the interface chip of this board virtual?
|
# Is the disk provided by the interface chip of this board virtual?
|
||||||
self.is_disk_virtual = False
|
self.is_disk_virtual = False
|
||||||
|
|
||||||
# list of toolchains that are supported by the mbed SDK for this target
|
# list of toolchains that are supported by the mbed SDK for this target
|
||||||
self.supported_toolchains = None
|
self.supported_toolchains = None
|
||||||
|
|
||||||
# list of extra specific labels
|
# list of extra specific labels
|
||||||
self.extra_labels = []
|
self.extra_labels = []
|
||||||
|
|
||||||
self.name = self.__class__.__name__
|
self.name = self.__class__.__name__
|
||||||
|
|
||||||
def program_cycle_s(self):
|
def program_cycle_s(self):
|
||||||
return 4 if self.is_disk_virtual else 1.5
|
return 4 if self.is_disk_virtual else 1.5
|
||||||
|
|
||||||
def get_labels(self):
|
def get_labels(self):
|
||||||
return [self.name, CORE_LABELS[self.core]] + self.extra_labels
|
return [self.name, CORE_LABELS[self.core]] + self.extra_labels
|
||||||
|
|
||||||
|
@ -50,157 +50,162 @@ class Target:
|
||||||
class LPC2368(Target):
|
class LPC2368(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
|
||||||
self.core = "ARM7TDMI-S"
|
self.core = "ARM7TDMI-S"
|
||||||
|
|
||||||
self.extra_labels = ['NXP', 'LPC23XX']
|
self.extra_labels = ['NXP', 'LPC23XX']
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM"]
|
self.supported_toolchains = ["ARM"]
|
||||||
|
|
||||||
|
|
||||||
class LPC1768(Target):
|
class LPC1768(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
|
||||||
self.core = "Cortex-M3"
|
self.core = "Cortex-M3"
|
||||||
|
|
||||||
self.extra_labels = ['NXP', 'LPC176X']
|
self.extra_labels = ['NXP', 'LPC176X']
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM", "GCC_CS", "GCC_CR", "IAR"]
|
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM", "GCC_CS", "GCC_CR", "IAR"]
|
||||||
|
|
||||||
|
|
||||||
class LPC11U24(Target):
|
class LPC11U24(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
|
||||||
self.core = "Cortex-M0"
|
self.core = "Cortex-M0"
|
||||||
|
|
||||||
self.extra_labels = ['NXP', 'LPC11UXX']
|
self.extra_labels = ['NXP', 'LPC11UXX', 'LPC11U24_401']
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM", "uARM"]
|
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM"]
|
||||||
|
|
||||||
|
|
||||||
class KL05Z(Target):
|
class KL05Z(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
|
||||||
self.core = "Cortex-M0+"
|
self.core = "Cortex-M0+"
|
||||||
|
|
||||||
self.extra_labels = ['Freescale']
|
self.extra_labels = ['Freescale']
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM"]
|
self.supported_toolchains = ["ARM"]
|
||||||
|
|
||||||
self.is_disk_virtual = True
|
self.is_disk_virtual = True
|
||||||
|
|
||||||
|
|
||||||
class KL25Z(Target):
|
class KL25Z(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
|
||||||
self.core = "Cortex-M0+"
|
self.core = "Cortex-M0+"
|
||||||
|
|
||||||
self.extra_labels = ['Freescale']
|
self.extra_labels = ['Freescale']
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM", "GCC_CW_EWL", "GCC_CW_NEWLIB", "GCC_ARM"]
|
self.supported_toolchains = ["ARM", "GCC_CW_EWL", "GCC_CW_NEWLIB", "GCC_ARM"]
|
||||||
|
|
||||||
self.is_disk_virtual = True
|
self.is_disk_virtual = True
|
||||||
|
|
||||||
|
|
||||||
class LPC812(Target):
|
class LPC812(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
|
||||||
self.core = "Cortex-M0+"
|
self.core = "Cortex-M0+"
|
||||||
|
|
||||||
self.extra_labels = ['NXP', 'LPC81X']
|
self.extra_labels = ['NXP', 'LPC81X']
|
||||||
|
|
||||||
self.supported_toolchains = ["uARM"]
|
self.supported_toolchains = ["uARM"]
|
||||||
|
|
||||||
self.is_disk_virtual = True
|
self.is_disk_virtual = True
|
||||||
|
|
||||||
|
|
||||||
class LPC4088(Target):
|
class LPC4088(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
|
||||||
self.core = "Cortex-M4"
|
self.core = "Cortex-M4"
|
||||||
|
|
||||||
self.extra_labels = ['NXP', 'LPC408X']
|
self.extra_labels = ['NXP', 'LPC408X']
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM", "GCC_CR"]
|
self.supported_toolchains = ["ARM", "GCC_CR"]
|
||||||
|
|
||||||
|
|
||||||
class LPC4330_M4(Target):
|
class LPC4330_M4(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
|
||||||
self.core = "Cortex-M4"
|
self.core = "Cortex-M4"
|
||||||
|
|
||||||
self.extra_labels = ['NXP', 'LPC43XX']
|
self.extra_labels = ['NXP', 'LPC43XX']
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM", "GCC_CR", "IAR"]
|
self.supported_toolchains = ["ARM", "GCC_CR", "IAR"]
|
||||||
|
|
||||||
|
|
||||||
class LPC4330_M0(Target):
|
class LPC4330_M0(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
|
||||||
self.core = "Cortex-M0"
|
self.core = "Cortex-M0"
|
||||||
|
|
||||||
self.extra_labels = ['NXP', 'LPC43XX']
|
self.extra_labels = ['NXP', 'LPC43XX']
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM", "GCC_CR", "IAR"]
|
self.supported_toolchains = ["ARM", "GCC_CR", "IAR"]
|
||||||
|
|
||||||
|
|
||||||
class LPC1800(Target):
|
class LPC1800(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
|
||||||
self.core = "Cortex-M3"
|
self.core = "Cortex-M3"
|
||||||
|
|
||||||
self.extra_labels = ['NXP', 'LPC43XX']
|
self.extra_labels = ['NXP', 'LPC43XX']
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM", "GCC_CR", "IAR"]
|
self.supported_toolchains = ["ARM", "GCC_CR", "IAR"]
|
||||||
|
|
||||||
|
|
||||||
class STM32F407(Target):
|
class STM32F407(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
|
||||||
self.core = "Cortex-M4"
|
self.core = "Cortex-M4"
|
||||||
|
|
||||||
self.extra_labels = ['STM', 'STM32F4XX']
|
self.extra_labels = ['STM', 'STM32F4XX']
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM", "GCC_ARM"]
|
self.supported_toolchains = ["ARM", "GCC_ARM"]
|
||||||
|
|
||||||
|
|
||||||
class MBED_MCU(Target):
|
class MBED_MCU(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
|
||||||
self.core = "Cortex-M0+"
|
self.core = "Cortex-M0+"
|
||||||
|
|
||||||
self.extra_labels = ['ARM']
|
self.extra_labels = ['ARM']
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM"]
|
self.supported_toolchains = ["ARM"]
|
||||||
|
|
||||||
|
|
||||||
class LPC1347(Target):
|
class LPC1347(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
|
||||||
self.core = "Cortex-M3"
|
self.core = "Cortex-M3"
|
||||||
|
|
||||||
self.extra_labels = ['NXP', 'LPC13XX']
|
self.extra_labels = ['NXP', 'LPC13XX']
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM", "GCC_ARM"]
|
self.supported_toolchains = ["ARM", "GCC_ARM"]
|
||||||
|
|
||||||
|
|
||||||
class LPC1114(Target):
|
class LPC1114(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Target.__init__(self)
|
Target.__init__(self)
|
||||||
|
|
||||||
self.core = "Cortex-M0"
|
self.core = "Cortex-M0"
|
||||||
|
|
||||||
self.extra_labels = ['NXP', 'LPC11XX']
|
self.extra_labels = ['NXP', 'LPC11XX']
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM"]
|
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM"]
|
||||||
|
|
||||||
|
|
||||||
class LPC11C24(Target):
|
class LPC11C24(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -211,12 +216,14 @@ class LPC11C24(Target):
|
||||||
self.extra_labels = ['NXP', 'LPC11CXX']
|
self.extra_labels = ['NXP', 'LPC11CXX']
|
||||||
|
|
||||||
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM"]
|
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM"]
|
||||||
|
|
||||||
|
|
||||||
# Get a single instance for each target
|
# Get a single instance for each target
|
||||||
TARGETS = [
|
TARGETS = [
|
||||||
LPC2368(),
|
LPC2368(),
|
||||||
LPC1768(),
|
LPC1768(),
|
||||||
LPC11U24(),
|
LPC11U24(),
|
||||||
|
LPC11U24_301(),
|
||||||
KL05Z(),
|
KL05Z(),
|
||||||
KL25Z(),
|
KL25Z(),
|
||||||
LPC812(),
|
LPC812(),
|
||||||
|
@ -225,7 +232,7 @@ TARGETS = [
|
||||||
STM32F407(),
|
STM32F407(),
|
||||||
MBED_MCU(),
|
MBED_MCU(),
|
||||||
LPC1347(),
|
LPC1347(),
|
||||||
LPC1114(),
|
LPC1114(),
|
||||||
LPC11C24()
|
LPC11C24()
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue