Skip to content

Commit a638feb

Browse files
committed
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.
1 parent 12ca90e commit a638feb

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

targets/targets.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,7 @@
148148
"device_name": "LPC11U35FHI33/501"
149149
},
150150
"XADOW_M0": {
151-
"inherits": ["LPCTarget"],
152-
"core": "Cortex-M0",
153-
"default_toolchain": "uARM",
154-
"extra_labels": ["NXP", "LPC11UXX", "MCU_LPC11U35_501"],
155-
"supported_toolchains": ["ARM", "uARM", "GCC_ARM", "GCC_CR", "IAR"],
156-
"device_has": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"],
157-
"default_lib": "small",
158-
"release_versions": ["2"],
159-
"device_name": "LPC11U35FHI33/501"
151+
"inherits": ["LPC11U35_501"]
160152
},
161153
"LPC11U35_Y5_MBUG": {
162154
"inherits": ["LPCTarget"],

0 commit comments

Comments
 (0)