From 8f0724600864946edc38fa5db1fbca41987e2b1e Mon Sep 17 00:00:00 2001 From: jeromecoutant Date: Wed, 18 Nov 2020 18:01:45 +0100 Subject: [PATCH] STM32F0: targets.json update to create MCU sub families --- targets/targets.json | 62 ++++++++++++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 22 deletions(-) diff --git a/targets/targets.json b/targets/targets.json index 985026d6ee..815ec3b48a 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -1218,68 +1218,86 @@ "FLASH" ] }, - "NUCLEO_F070RB": { + "MCU_STM32F070xB": { "inherits": [ "MCU_STM32F0" ], - "supported_form_factors": [ - "ARDUINO", - "MORPHO" - ], + "public": false, "extra_labels_add": [ "STM32F070xB" ], "macros_add": [ "STM32F070xB" + ] + }, + "NUCLEO_F070RB": { + "inherits": [ + "MCU_STM32F070xB" + ], + "supported_form_factors": [ + "ARDUINO", + "MORPHO" ], "detect_code": [ "0755" ], "device_name": "STM32F070RB" }, - "NUCLEO_F072RB": { + "MCU_STM32F072xB": { "inherits": [ "MCU_STM32F0" ], - "supported_form_factors": [ - "ARDUINO", - "MORPHO" - ], + "public": false, "extra_labels_add": [ "STM32F072xB" ], "macros_add": [ "STM32F072xB" ], + "device_has_add": [ + "ANALOGOUT", + "CAN" + ] + }, + "NUCLEO_F072RB": { + "inherits": [ + "MCU_STM32F072xB" + ], + "supported_form_factors": [ + "ARDUINO", + "MORPHO" + ], "detect_code": [ "0730" ], - "device_has_add": [ - "ANALOGOUT", - "CAN" - ], "device_name": "STM32F072RB" }, - "NUCLEO_F091RC": { + "MCU_STM32F091xC": { "inherits": [ "MCU_STM32F0" ], - "supported_form_factors": [ - "ARDUINO", - "MORPHO" - ], + "public": false, "extra_labels_add": [ "STM32F091xC" ], "macros_add": [ "STM32F091xC" ], - "detect_code": [ - "0750" - ], "device_has_add": [ "ANALOGOUT", "CAN" + ] + }, + "NUCLEO_F091RC": { + "inherits": [ + "MCU_STM32F091xC" + ], + "supported_form_factors": [ + "ARDUINO", + "MORPHO" + ], + "detect_code": [ + "0750" ], "device_name": "STM32F091RC" },