From 5fdf630396417818d8ea8a1c4476158985d0aaff Mon Sep 17 00:00:00 2001 From: Adam Green Date: Tue, 2 May 2017 08:14:17 -0700 Subject: [PATCH] Inherit Xadow M0 target from LPC11U35_501 targets/targets.json already added MCU_LPC11U35_501 as an extra label but it didn't have LPC11U35_501 (without the MCU_ prefix). Both of these target names are used as folder names to organize files specific to this device. For example the LPC11U35.ld linker script used by GCC_ARM for this target is located in a TARGET_LPC11U35_501 folder. I switched to using inheritance to properly setup the target labels based on @theotherjimmy comments on PR #4252. Everything in the XADOW_M0 targe appears to have been copy/pasted from LPC11U35_501 anyway so inheritance seems to be the best way to set the values of the XADOW_M0 properties. --- targets/targets.json | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/targets/targets.json b/targets/targets.json index 5acd67da12..d3b6cf857b 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -148,15 +148,7 @@ "device_name": "LPC11U35FHI33/501" }, "XADOW_M0": { - "inherits": ["LPCTarget"], - "core": "Cortex-M0", - "default_toolchain": "uARM", - "extra_labels": ["NXP", "LPC11UXX", "MCU_LPC11U35_501"], - "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "GCC_CR", "IAR"], - "device_has": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"], - "default_lib": "small", - "release_versions": ["2"], - "device_name": "LPC11U35FHI33/501" + "inherits": ["LPC11U35_501"] }, "LPC11U35_Y5_MBUG": { "inherits": ["LPCTarget"],