mirror of https://github.com/ARMmbed/mbed-os.git
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.pull/4278/head
parent
ed1daf62b2
commit
5fdf630396
|
@ -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"],
|
||||
|
|
Loading…
Reference in New Issue