From 9c8110166abc70a22c1afa8b5d6148c1e599cc20 Mon Sep 17 00:00:00 2001 From: Jean-Claude Wippler Date: Wed, 13 Mar 2024 20:46:36 +0100 Subject: [PATCH] add consistent set of STM32xx defines to all boards --- boards/acsip_s76s.json | 2 +- boards/adafruit_feather_f405.json | 2 +- boards/afroflight_f103cb.json | 2 +- boards/agafia_sg0.json | 2 +- boards/armstrap_eagle1024.json | 2 +- boards/armstrap_eagle2048.json | 2 +- boards/armstrap_eagle512.json | 2 +- boards/b96b_aerocore2.json | 2 +- boards/b96b_argonkey.json | 2 +- boards/b96b_f446ve.json | 2 +- boards/b96b_neonkey.json | 2 +- boards/blackpill_f401cc.json | 2 +- boards/blackpill_f401ce.json | 2 +- boards/blackpill_f411ce.json | 2 +- boards/btt_ebb42_v1_1.json | 2 +- boards/bw_swan_r5.json | 2 +- boards/cicada_l082cz.json | 2 +- boards/cloud_jam_l4.json | 2 +- boards/coreboard_f401rc.json | 2 +- boards/cricket_l082cz.json | 2 +- boards/demo_f030f4.json | 2 +- boards/devebox_h743vitx.json | 2 +- boards/devebox_h750vbtx.json | 2 +- boards/disco_b_g431b_esc1.json | 2 +- boards/disco_b_u585i_iot02a.json | 2 +- boards/disco_f030r8.json | 2 +- boards/disco_f051r8.json | 2 +- boards/disco_f072rb.json | 2 +- boards/disco_f100rb.json | 2 +- boards/disco_f334c8.json | 2 +- boards/disco_f401vc.json | 2 +- boards/disco_f412zg.json | 2 +- boards/disco_f413zh.json | 2 +- boards/disco_f723ie.json | 2 +- boards/disco_f746ng.json | 2 +- boards/disco_f750n8.json | 2 +- boards/disco_f769ni.json | 2 +- boards/disco_g031j6.json | 2 +- boards/disco_g071rb.json | 2 +- boards/disco_h735ig.json | 2 +- boards/disco_h747xi.json | 2 +- boards/disco_l053c8.json | 2 +- boards/disco_l072cz_lrwan1.json | 2 +- boards/disco_l100rc.json | 2 +- boards/disco_l475vg_iot01a.json | 2 +- boards/disco_l476vg.json | 2 +- boards/disco_l496ag.json | 2 +- boards/disco_l4s5i_iot01a.json | 2 +- boards/econode_l082cz.json | 2 +- boards/electrosmith_daisy.json | 2 +- boards/electrosmith_daisy_patch_sm.json | 2 +- boards/electrosmith_daisy_petal_sm.json | 2 +- boards/elektor_f072c8.json | 2 +- boards/elektor_f072cb.json | 2 +- boards/elmo_f411re.json | 2 +- boards/eval_f072vb.json | 2 +- boards/eval_l073z.json | 2 +- boards/fysetc_s6.json | 2 +- boards/genericSTM32F401CB.json | 2 +- boards/genericSTM32F401CC.json | 2 +- boards/genericSTM32F401CD.json | 2 +- boards/genericSTM32F401CE.json | 2 +- boards/genericSTM32F401RB.json | 2 +- boards/genericSTM32F401RC.json | 2 +- boards/genericSTM32F401RD.json | 2 +- boards/genericSTM32F401RE.json | 2 +- boards/genericSTM32F405RG.json | 2 +- boards/genericSTM32F410C8.json | 2 +- boards/genericSTM32F410CB.json | 2 +- boards/genericSTM32F410R8.json | 2 +- boards/genericSTM32F410RB.json | 2 +- boards/genericSTM32F411CC.json | 2 +- boards/genericSTM32F411CE.json | 2 +- boards/genericSTM32F411RC.json | 2 +- boards/genericSTM32F411RE.json | 2 +- boards/genericSTM32F412CE.json | 2 +- boards/genericSTM32F412CG.json | 2 +- boards/genericSTM32F412RE.json | 2 +- boards/genericSTM32F412RG.json | 2 +- boards/genericSTM32F413CG.json | 2 +- boards/genericSTM32F413CH.json | 2 +- boards/genericSTM32F413RG.json | 2 +- boards/genericSTM32F413RH.json | 2 +- boards/genericSTM32F415RG.json | 2 +- boards/genericSTM32F417VE.json | 2 +- boards/genericSTM32F417VG.json | 2 +- boards/genericSTM32F423CH.json | 2 +- boards/genericSTM32F423RH.json | 2 +- boards/genericSTM32F446RC.json | 2 +- boards/genericSTM32F446RE.json | 2 +- boards/genericSTM32G431CB.json | 2 +- boards/genericSTM32H750VB.json | 2 +- boards/gnat_l082cz.json | 2 +- boards/grasshopper_l082cz.json | 2 +- boards/hy_tinystm103tb.json | 2 +- boards/leafony_ap03.json | 2 +- boards/lora_e5_dev_board.json | 2 +- boards/lora_e5_mini.json | 2 +- boards/malyanm200_f070cb.json | 2 +- boards/malyanm200_f103cb.json | 2 +- boards/malyanm300_f070cb.json | 2 +- boards/maple.json | 2 +- boards/maple_mini_b20.json | 2 +- boards/maple_mini_origin.json | 2 +- boards/maple_ret6.json | 2 +- boards/microduino32_flash.json | 2 +- boards/mkr_sharky.json | 2 +- boards/mote_l152rc.json | 2 +- boards/mts_mdot_f411re.json | 2 +- boards/mxchip_az3166.json | 2 +- boards/netduino2plus.json | 2 +- boards/nicla_vision.json | 2 +- boards/nicla_vision_m4.json | 2 +- boards/nucleo_f030r8.json | 2 +- boards/nucleo_f031k6.json | 2 +- boards/nucleo_f042k6.json | 2 +- boards/nucleo_f070rb.json | 2 +- boards/nucleo_f072rb.json | 2 +- boards/nucleo_f091rc.json | 2 +- boards/nucleo_f103rb.json | 2 +- boards/nucleo_f207zg.json | 2 +- boards/nucleo_f302r8.json | 2 +- boards/nucleo_f303k8.json | 2 +- boards/nucleo_f303re.json | 2 +- boards/nucleo_f303ze.json | 2 +- boards/nucleo_f334r8.json | 2 +- boards/nucleo_f410rb.json | 2 +- boards/nucleo_f411re.json | 2 +- boards/nucleo_f412zg.json | 2 +- boards/nucleo_f413zh.json | 2 +- boards/nucleo_f429zi.json | 2 +- boards/nucleo_f439zi.json | 2 +- boards/nucleo_f446re.json | 2 +- boards/nucleo_f722ze.json | 2 +- boards/nucleo_f746zg.json | 2 +- boards/nucleo_f756zg.json | 2 +- boards/nucleo_f767zi.json | 2 +- boards/nucleo_g031k8.json | 2 +- boards/nucleo_g070rb.json | 2 +- boards/nucleo_g071rb.json | 2 +- boards/nucleo_g0b1re.json | 2 +- boards/nucleo_g431kb.json | 2 +- boards/nucleo_g431rb.json | 2 +- boards/nucleo_g474re.json | 2 +- boards/nucleo_h723zg.json | 2 +- boards/nucleo_h743zi.json | 2 +- boards/nucleo_h745zi_q.json | 2 +- boards/nucleo_h753zi.json | 2 +- boards/nucleo_l010rb.json | 2 +- boards/nucleo_l011k4.json | 2 +- boards/nucleo_l031k6.json | 2 +- boards/nucleo_l053r8.json | 2 +- boards/nucleo_l073rz.json | 2 +- boards/nucleo_l152re.json | 2 +- boards/nucleo_l412kb.json | 2 +- boards/nucleo_l412rb_p.json | 2 +- boards/nucleo_l432kc.json | 2 +- boards/nucleo_l433rc_p.json | 2 +- boards/nucleo_l452re.json | 2 +- boards/nucleo_l476rg.json | 2 +- boards/nucleo_l486rg.json | 2 +- boards/nucleo_l496zg.json | 2 +- boards/nucleo_l496zg_p.json | 2 +- boards/nucleo_l4r5zi.json | 2 +- boards/nucleo_l552ze_q.json | 2 +- boards/nucleo_u575zi_q.json | 2 +- boards/nucleo_wb55rg_p.json | 2 +- boards/nucleo_wl55jc.json | 2 +- boards/olimex_f103.json | 2 +- boards/olimexino.json | 2 +- boards/olimexino_stm32f3.json | 2 +- boards/opta.json | 2 +- boards/opta_m4.json | 2 +- boards/piconomix_px_her0.json | 2 +- boards/portenta_h7_m4.json | 2 +- boards/portenta_h7_m7.json | 2 +- boards/pybstick26_duino.json | 2 +- boards/pybstick26_lite.json | 2 +- boards/pybstick26_pro.json | 2 +- boards/pybstick26_std.json | 2 +- boards/rak811_tracker.json | 2 +- boards/rak811_tracker_32.json | 2 +- boards/remram_v1.json | 2 +- boards/rhf76_052.json | 2 +- boards/rhombio_l476dmw1k.json | 2 +- boards/rumba32_f446ve.json | 2 +- boards/sakuraio_evb_01.json | 2 +- boards/seeedArchMax.json | 2 +- boards/silica_sensor_node.json | 2 +- boards/sparkfun_micromod_f405.json | 2 +- boards/steval_fcu001v1.json | 2 +- boards/steval_mksboxv1.json | 2 +- boards/stm32f4stamp.json | 2 +- boards/thunder_pack.json | 2 +- boards/thunder_pack_f411.json | 2 +- boards/ublox_c030_r410m.json | 2 +- boards/vake_v1.json | 2 +- boards/weact_mini_h743vitx.json | 2 +- boards/weact_mini_h750vbtx.json | 2 +- boards/wio_3g.json | 2 +- boards/wraith32_v1.json | 2 +- boards/xdot_l151cc.json | 2 +- 202 files changed, 202 insertions(+), 202 deletions(-) diff --git a/boards/acsip_s76s.json b/boards/acsip_s76s.json index 04a5e579..29eed4f0 100644 --- a/boards/acsip_s76s.json +++ b/boards/acsip_s76s.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32L073xx", + "extra_flags": "-DSTM32L0 -DSTM32L073xx", "f_cpu": "32000000L", "framework_extra_flags": { "arduino": "-D__CORTEX_SC=0 -DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/adafruit_feather_f405.json b/boards/adafruit_feather_f405.json index da7e3db6..454f99a6 100644 --- a/boards/adafruit_feather_f405.json +++ b/boards/adafruit_feather_f405.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F405xx", + "extra_flags": "-DSTM32F4 -DSTM32F405xx", "f_cpu": "168000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/afroflight_f103cb.json b/boards/afroflight_f103cb.json index 7100031e..d0a9c9de 100644 --- a/boards/afroflight_f103cb.json +++ b/boards/afroflight_f103cb.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m3", - "extra_flags": "-DSTM32F1xx -DSTM32F103xB", + "extra_flags": "-DSTM32F1 -DSTM32F1xx -DSTM32F103xB", "f_cpu": "72000000L", "mcu": "stm32f103cbt6", "product_line": "STM32F103xB", diff --git a/boards/agafia_sg0.json b/boards/agafia_sg0.json index 0d137b48..65d5c70e 100644 --- a/boards/agafia_sg0.json +++ b/boards/agafia_sg0.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32G0xx -DSTM32G071xx", + "extra_flags": "-DSTM32G0 -DSTM32G0xx -DSTM32G071xx", "f_cpu": "64000000L", "framework_extra_flags": { "arduino": "-D__CORTEX_SC=0" diff --git a/boards/armstrap_eagle1024.json b/boards/armstrap_eagle1024.json index ed96cea6..4d51e157 100644 --- a/boards/armstrap_eagle1024.json +++ b/boards/armstrap_eagle1024.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F40_41xxx -DSTM32F417xx", + "extra_flags": "-DSTM32F4 -DSTM32F40_41xxx -DSTM32F417xx", "f_cpu": "168000000L", "mcu": "stm32f417vgt6", "product_line": "STM32F417xx", diff --git a/boards/armstrap_eagle2048.json b/boards/armstrap_eagle2048.json index 5e1eecff..b99848f7 100644 --- a/boards/armstrap_eagle2048.json +++ b/boards/armstrap_eagle2048.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F427_437xx -DSTM32F427xx", + "extra_flags": "-DSTM32F4 -DSTM32F427_437xx -DSTM32F427xx", "f_cpu": "168000000L", "mcu": "stm32f427vit6", "product_line": "STM32F427xx", diff --git a/boards/armstrap_eagle512.json b/boards/armstrap_eagle512.json index fca39bf4..61c6ce00 100644 --- a/boards/armstrap_eagle512.json +++ b/boards/armstrap_eagle512.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F40_41xxx -DSTM32F407xx", + "extra_flags": "-DSTM32F4 -DSTM32F40_41xxx -DSTM32F407xx", "f_cpu": "168000000L", "mcu": "stm32f407vet6", "product_line": "STM32F407xx", diff --git a/boards/b96b_aerocore2.json b/boards/b96b_aerocore2.json index 2c4360c3..868aee25 100644 --- a/boards/b96b_aerocore2.json +++ b/boards/b96b_aerocore2.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F427_437xx -DSTM32F427xx", + "extra_flags": "-DSTM32F4 -DSTM32F427_437xx -DSTM32F427xx", "f_cpu": "168000000L", "mcu": "stm32f427vit6", "product_line": "STM32F427xx", diff --git a/boards/b96b_argonkey.json b/boards/b96b_argonkey.json index 329cebf0..9907576a 100644 --- a/boards/b96b_argonkey.json +++ b/boards/b96b_argonkey.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F412Cx", + "extra_flags": "-DSTM32F4 -DSTM32F412Cx", "f_cpu": "100000000L", "mcu": "stm32f412cg", "product_line": "STM32F412Cx", diff --git a/boards/b96b_f446ve.json b/boards/b96b_f446ve.json index 95f36685..d8ab402e 100644 --- a/boards/b96b_f446ve.json +++ b/boards/b96b_f446ve.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F446xx", + "extra_flags": "-DSTM32F4 -DSTM32F446xx", "f_cpu": "168000000L", "mcu": "stm32f446vet6", "product_line": "STM32F446xx", diff --git a/boards/b96b_neonkey.json b/boards/b96b_neonkey.json index 2e279a4b..0de8c5de 100644 --- a/boards/b96b_neonkey.json +++ b/boards/b96b_neonkey.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F411xE", + "extra_flags": "-DSTM32F4 -DSTM32F411xE", "f_cpu": "100000000L", "mcu": "stm32f411ce", "product_line": "STM32F411xE", diff --git a/boards/blackpill_f401cc.json b/boards/blackpill_f401cc.json index b52f9fe2..6c4a8230 100644 --- a/boards/blackpill_f401cc.json +++ b/boards/blackpill_f401cc.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F4xx -DSTM32F401xC", + "extra_flags": "-DSTM32F4 -DSTM32F4xx -DSTM32F401xC", "f_cpu": "84000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/blackpill_f401ce.json b/boards/blackpill_f401ce.json index ccb69347..0ef0b4f6 100644 --- a/boards/blackpill_f401ce.json +++ b/boards/blackpill_f401ce.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F4xx -DSTM32F401xE", + "extra_flags": "-DSTM32F4 -DSTM32F4xx -DSTM32F401xE", "f_cpu": "84000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/blackpill_f411ce.json b/boards/blackpill_f411ce.json index 05d49847..b5c8fab6 100644 --- a/boards/blackpill_f411ce.json +++ b/boards/blackpill_f411ce.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F4xx -DSTM32F411xE", + "extra_flags": "-DSTM32F4 -DSTM32F4xx -DSTM32F411xE", "f_cpu": "100000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/btt_ebb42_v1_1.json b/boards/btt_ebb42_v1_1.json index 6d2a76fa..ddf51ad6 100644 --- a/boards/btt_ebb42_v1_1.json +++ b/boards/btt_ebb42_v1_1.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32G0xx -DSTM32G0B1xx", + "extra_flags": "-DSTM32G0 -DSTM32G0xx -DSTM32G0B1xx", "f_cpu": "64000000L", "framework_extra_flags": { "arduino": "-D__CORTEX_SC=0 -DARDUINO_EBB42_V1_1" diff --git a/boards/bw_swan_r5.json b/boards/bw_swan_r5.json index 276c260f..9ab5ef44 100644 --- a/boards/bw_swan_r5.json +++ b/boards/bw_swan_r5.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32L4xx -DSTM32L4R5xx", + "extra_flags": "-DSTM32L4 -DSTM32L4xx -DSTM32L4R5xx", "f_cpu": "120000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/cicada_l082cz.json b/boards/cicada_l082cz.json index 9d91367a..69a5224b 100644 --- a/boards/cicada_l082cz.json +++ b/boards/cicada_l082cz.json @@ -2,7 +2,7 @@ "build": { "cpu": "cortex-m0plus", "core": "stm32l0", - "extra_flags": "-DARDUINO_STM32L0_CICADA", + "extra_flags": "-DSTM32L0 -DARDUINO_STM32L0_CICADA", "f_cpu": "32000000L", "hwids": [ [ diff --git a/boards/cloud_jam_l4.json b/boards/cloud_jam_l4.json index 21213afa..71b69e11 100644 --- a/boards/cloud_jam_l4.json +++ b/boards/cloud_jam_l4.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32L476xx", + "extra_flags": "-DSTM32L4 -DSTM32L476xx", "f_cpu": "80000000L", "mcu": "stm32l476rgt6", "product_line": "STM32L476xx" diff --git a/boards/coreboard_f401rc.json b/boards/coreboard_f401rc.json index 3067f514..fce008fa 100644 --- a/boards/coreboard_f401rc.json +++ b/boards/coreboard_f401rc.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F4xx -DSTM32F401xC", + "extra_flags": "-DSTM32F4 -DSTM32F4xx -DSTM32F401xC", "f_cpu": "84000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/cricket_l082cz.json b/boards/cricket_l082cz.json index 8a680079..41be604c 100644 --- a/boards/cricket_l082cz.json +++ b/boards/cricket_l082cz.json @@ -2,7 +2,7 @@ "build": { "cpu": "cortex-m0plus", "core": "stm32l0", - "extra_flags": "-DARDUINO_STM32L0_CRICKET", + "extra_flags": "-DSTM32L0 -DARDUINO_STM32L0_CRICKET", "f_cpu": "32000000L", "hwids": [ [ diff --git a/boards/demo_f030f4.json b/boards/demo_f030f4.json index 8b0e3feb..2efe41c8 100644 --- a/boards/demo_f030f4.json +++ b/boards/demo_f030f4.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0", - "extra_flags": "-DSTM32F030x6", + "extra_flags": "-DSTM32F0 -DSTM32F030x6", "f_cpu": "48000000L", "mcu": "stm32f030f4p6", "product_line": "STM32F030x6", diff --git a/boards/devebox_h743vitx.json b/boards/devebox_h743vitx.json index c1039665..0ff32cdc 100644 --- a/boards/devebox_h743vitx.json +++ b/boards/devebox_h743vitx.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32H7xx -DSTM32H743xx", + "extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H743xx", "f_cpu": "480000000L", "framework_extra_flags": { "arduino": "-DARDUINO_DevEBoxH743VITX -DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/devebox_h750vbtx.json b/boards/devebox_h750vbtx.json index e307fbde..fb482c05 100644 --- a/boards/devebox_h750vbtx.json +++ b/boards/devebox_h750vbtx.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32H7xx -DSTM32H750xx", + "extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H750xx", "f_cpu": "480000000L", "framework_extra_flags": { "arduino": "-DARDUINO_DevEBoxH750VBTX -DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/disco_b_g431b_esc1.json b/boards/disco_b_g431b_esc1.json index e8ccc193..990b672f 100644 --- a/boards/disco_b_g431b_esc1.json +++ b/boards/disco_b_g431b_esc1.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32G4xx -DSTM32G431xx", + "extra_flags": "-DSTM32G4 -DSTM32G4xx -DSTM32G431xx", "f_cpu": "170000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/disco_b_u585i_iot02a.json b/boards/disco_b_u585i_iot02a.json index 6dcd9702..43aa231a 100644 --- a/boards/disco_b_u585i_iot02a.json +++ b/boards/disco_b_u585i_iot02a.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m33", - "extra_flags": "-DSTM32U5xx -DSTM32U585xx", + "extra_flags": "-DSTM32U5 -DSTM32U5xx -DSTM32U585xx", "f_cpu": "160000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/disco_f030r8.json b/boards/disco_f030r8.json index 09733c07..2732ae84 100644 --- a/boards/disco_f030r8.json +++ b/boards/disco_f030r8.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0", - "extra_flags": "-DSTM32F030x8", + "extra_flags": "-DSTM32F0 -DSTM32F030x8", "f_cpu": "48000000L", "mcu": "stm32f030r8t6", "product_line": "STM32F030x8", diff --git a/boards/disco_f051r8.json b/boards/disco_f051r8.json index db300249..e4da5535 100644 --- a/boards/disco_f051r8.json +++ b/boards/disco_f051r8.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0", - "extra_flags": "-DSTM32F051x8", + "extra_flags": "-DSTM32F0 -DSTM32F051x8", "f_cpu": "48000000L", "mcu": "stm32f051r8t6", "product_line": "STM32F051x8", diff --git a/boards/disco_f072rb.json b/boards/disco_f072rb.json index 2839e0c0..e3393ac0 100644 --- a/boards/disco_f072rb.json +++ b/boards/disco_f072rb.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0", - "extra_flags": "-DSTM32F072xB", + "extra_flags": "-DSTM32F0 -DSTM32F072xB", "f_cpu": "48000000L", "mcu": "stm32f072rbt6", "product_line": "STM32F072xB", diff --git a/boards/disco_f100rb.json b/boards/disco_f100rb.json index 8379458e..baacf5dd 100644 --- a/boards/disco_f100rb.json +++ b/boards/disco_f100rb.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m3", - "extra_flags": "-DSTM32F100xB", + "extra_flags": "-DSTM32F1 -DSTM32F100xB", "f_cpu": "24000000L", "mcu": "stm32f100rbt6", "product_line": "STM32F100xB", diff --git a/boards/disco_f334c8.json b/boards/disco_f334c8.json index 0bc1fe7a..71eb1192 100644 --- a/boards/disco_f334c8.json +++ b/boards/disco_f334c8.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F334x8", + "extra_flags": "-DSTM32F3 -DSTM32F334x8", "f_cpu": "72000000L", "mcu": "stm32f334c8t6", "product_line": "STM32F334x8" diff --git a/boards/disco_f401vc.json b/boards/disco_f401vc.json index dbba157e..481aaf12 100644 --- a/boards/disco_f401vc.json +++ b/boards/disco_f401vc.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F401xC", + "extra_flags": "-DSTM32F4 -DSTM32F401xC", "f_cpu": "84000000L", "mcu": "stm32f401vct6", "product_line": "STM32F401xC" diff --git a/boards/disco_f412zg.json b/boards/disco_f412zg.json index f89b4afa..374f22a0 100644 --- a/boards/disco_f412zg.json +++ b/boards/disco_f412zg.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F412Zx", + "extra_flags": "-DSTM32F4 -DSTM32F412Zx", "f_cpu": "100000000L", "mcu": "stm32f412zgt6", "product_line": "STM32F412Zx", diff --git a/boards/disco_f413zh.json b/boards/disco_f413zh.json index dbbecdbc..56deeb66 100644 --- a/boards/disco_f413zh.json +++ b/boards/disco_f413zh.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F413xx", + "extra_flags": "-DSTM32F4 -DSTM32F413xx", "f_cpu": "100000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/disco_f723ie.json b/boards/disco_f723ie.json index f2d6cb19..c5f4ab97 100644 --- a/boards/disco_f723ie.json +++ b/boards/disco_f723ie.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m7", - "extra_flags": "-DSTM32F723xx", + "extra_flags": "-DSTM32F7 -DSTM32F723xx", "f_cpu": "216000000L", "mcu": "stm32f723iek6", "product_line": "STM32F723xx", diff --git a/boards/disco_f746ng.json b/boards/disco_f746ng.json index 282b2811..80c5ed82 100644 --- a/boards/disco_f746ng.json +++ b/boards/disco_f746ng.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m7", - "extra_flags": "-DSTM32F746xx", + "extra_flags": "-DSTM32F7 -DSTM32F746xx", "f_cpu": "216000000L", "mcu": "stm32f746ngh6", "product_line": "STM32F746xx", diff --git a/boards/disco_f750n8.json b/boards/disco_f750n8.json index 3ebda593..f1c0fef1 100644 --- a/boards/disco_f750n8.json +++ b/boards/disco_f750n8.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m7", - "extra_flags": "-DSTM32F750xx", + "extra_flags": "-DSTM32F7 -DSTM32F750xx", "f_cpu": "216000000L", "mcu": "stm32f750n8h6", "product_line": "STM32F750xx" diff --git a/boards/disco_f769ni.json b/boards/disco_f769ni.json index 71a4da11..72230311 100644 --- a/boards/disco_f769ni.json +++ b/boards/disco_f769ni.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m7", - "extra_flags": "-DSTM32F769xx", + "extra_flags": "-DSTM32F7 -DSTM32F769xx", "f_cpu": "216000000L", "mcu": "stm32f769nih6", "product_line": "STM32F769xx", diff --git a/boards/disco_g031j6.json b/boards/disco_g031j6.json index 4cbf8c21..5b9b1096 100644 --- a/boards/disco_g031j6.json +++ b/boards/disco_g031j6.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32G0xx -DSTM32G031xx", + "extra_flags": "-DSTM32G0 -DSTM32G0xx -DSTM32G031xx", "f_cpu": "64000000L", "framework_extra_flags": { "arduino": "-D__CORTEX_SC=0" diff --git a/boards/disco_g071rb.json b/boards/disco_g071rb.json index 591aea4c..8a00b5ed 100644 --- a/boards/disco_g071rb.json +++ b/boards/disco_g071rb.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32G0xx -DSTM32G071xx", + "extra_flags": "-DSTM32G0 -DSTM32G0xx -DSTM32G071xx", "f_cpu": "64000000L", "mcu": "stm32g071rbt6", "product_line": "STM32G071xx", diff --git a/boards/disco_h735ig.json b/boards/disco_h735ig.json index ca52d7b6..db98b881 100644 --- a/boards/disco_h735ig.json +++ b/boards/disco_h735ig.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m7", - "extra_flags": "-DSTM32H7xx -DSTM32H735xx", + "extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H735xx", "f_cpu": "550000000L", "mcu": "stm32h735igk6", "product_line": "STM32H735xx", diff --git a/boards/disco_h747xi.json b/boards/disco_h747xi.json index c54ce4bc..75d2239d 100644 --- a/boards/disco_h747xi.json +++ b/boards/disco_h747xi.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m7", - "extra_flags": "-DSTM32H7xx -DSTM32H747xx", + "extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H747xx", "f_cpu": "400000000L", "mcu": "stm32h747xih6", "product_line": "STM32H747xx", diff --git a/boards/disco_l053c8.json b/boards/disco_l053c8.json index 0dc50ec0..ed6f00f8 100644 --- a/boards/disco_l053c8.json +++ b/boards/disco_l053c8.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32L053xx", + "extra_flags": "-DSTM32L0 -DSTM32L053xx", "f_cpu": "32000000L", "mcu": "stm32l053c8t6", "product_line": "STM32L053xx" diff --git a/boards/disco_l072cz_lrwan1.json b/boards/disco_l072cz_lrwan1.json index e6c30014..cb7b688e 100644 --- a/boards/disco_l072cz_lrwan1.json +++ b/boards/disco_l072cz_lrwan1.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32L072xx", + "extra_flags": "-DSTM32L0 -DSTM32L072xx", "f_cpu": "32000000L", "framework_extra_flags": { "arduino": "-D__CORTEX_SC=0 -DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/disco_l100rc.json b/boards/disco_l100rc.json index 2527e050..faf545cb 100644 --- a/boards/disco_l100rc.json +++ b/boards/disco_l100rc.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m3", - "extra_flags": "-DSTM32L100xC", + "extra_flags": "-DSTM32L1 -DSTM32L100xC", "f_cpu": "32000000L", "mcu": "stm32l100rct6", "product_line": "STM32L100xC" diff --git a/boards/disco_l475vg_iot01a.json b/boards/disco_l475vg_iot01a.json index d84d1729..748e38c2 100644 --- a/boards/disco_l475vg_iot01a.json +++ b/boards/disco_l475vg_iot01a.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32L475xx", + "extra_flags": "-DSTM32L4 -DSTM32L475xx", "f_cpu": "80000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/disco_l476vg.json b/boards/disco_l476vg.json index a24ed47e..e3366ead 100644 --- a/boards/disco_l476vg.json +++ b/boards/disco_l476vg.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32L476xx", + "extra_flags": "-DSTM32L4 -DSTM32L476xx", "f_cpu": "80000000L", "mcu": "stm32l476vgt6", "product_line": "STM32L476xx", diff --git a/boards/disco_l496ag.json b/boards/disco_l496ag.json index 7246ff0b..892a43f6 100644 --- a/boards/disco_l496ag.json +++ b/boards/disco_l496ag.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32L496xx", + "extra_flags": "-DSTM32L4 -DSTM32L496xx", "f_cpu": "80000000L", "mcu": "stm32l496agi6", "product_line": "STM32L496xx", diff --git a/boards/disco_l4s5i_iot01a.json b/boards/disco_l4s5i_iot01a.json index 67960cc5..f9e049b8 100644 --- a/boards/disco_l4s5i_iot01a.json +++ b/boards/disco_l4s5i_iot01a.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32L4xx -DSTM32L4S5xx", + "extra_flags": "-DSTM32L4 -DSTM32L4xx -DSTM32L4S5xx", "f_cpu": "80000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/econode_l082cz.json b/boards/econode_l082cz.json index 09877642..6b52137d 100644 --- a/boards/econode_l082cz.json +++ b/boards/econode_l082cz.json @@ -2,7 +2,7 @@ "build": { "cpu": "cortex-m0plus", "core": "stm32l0", - "extra_flags": "-DARDUINO_STM32L0_GRASSHOPPER", + "extra_flags": "-DSTM32L0 -DARDUINO_STM32L0_GRASSHOPPER", "f_cpu": "32000000L", "hwids": [ [ diff --git a/boards/electrosmith_daisy.json b/boards/electrosmith_daisy.json index 11a0ff8e..7b354d7e 100644 --- a/boards/electrosmith_daisy.json +++ b/boards/electrosmith_daisy.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32H7xx -DSTM32H750xx", + "extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H750xx", "f_cpu": "400000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/electrosmith_daisy_patch_sm.json b/boards/electrosmith_daisy_patch_sm.json index 550c8426..50d72e66 100644 --- a/boards/electrosmith_daisy_patch_sm.json +++ b/boards/electrosmith_daisy_patch_sm.json @@ -6,7 +6,7 @@ }, "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32H7xx -DSTM32H750xx", + "extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H750xx", "f_cpu": "400000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/electrosmith_daisy_petal_sm.json b/boards/electrosmith_daisy_petal_sm.json index 8cd885af..5ef1160b 100644 --- a/boards/electrosmith_daisy_petal_sm.json +++ b/boards/electrosmith_daisy_petal_sm.json @@ -6,7 +6,7 @@ }, "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32H7xx -DSTM32H750xx", + "extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H750xx", "f_cpu": "400000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/elektor_f072c8.json b/boards/elektor_f072c8.json index f380d81b..ca03d74d 100644 --- a/boards/elektor_f072c8.json +++ b/boards/elektor_f072c8.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m0", - "extra_flags": "-DSTM32F072xB", + "extra_flags": "-DSTM32F0 -DSTM32F072xB", "f_cpu": "48000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/elektor_f072cb.json b/boards/elektor_f072cb.json index 0aa827da..04af7d04 100644 --- a/boards/elektor_f072cb.json +++ b/boards/elektor_f072cb.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m0", - "extra_flags": "-DSTM32F072xB", + "extra_flags": "-DSTM32F0 -DSTM32F072xB", "f_cpu": "48000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/elmo_f411re.json b/boards/elmo_f411re.json index 5f97a450..2da674d6 100644 --- a/boards/elmo_f411re.json +++ b/boards/elmo_f411re.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F411xE", + "extra_flags": "-DSTM32F4 -DSTM32F411xE", "f_cpu": "100000000L", "mcu": "stm32f411ret6", "product_line": "STM32F411xE" diff --git a/boards/eval_f072vb.json b/boards/eval_f072vb.json index 6f85f9b8..3cd23683 100644 --- a/boards/eval_f072vb.json +++ b/boards/eval_f072vb.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0", - "extra_flags": "-DSTM32F072xB", + "extra_flags": "-DSTM32F0 -DSTM32F072xB", "f_cpu": "48000000L", "mcu": "stm32f072vbt6", "product_line": "STM32F072xB", diff --git a/boards/eval_l073z.json b/boards/eval_l073z.json index 6c054864..a9858f3b 100644 --- a/boards/eval_l073z.json +++ b/boards/eval_l073z.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32L073xx", + "extra_flags": "-DSTM32L0 -DSTM32L073xx", "f_cpu": "32000000L", "mcu": "stm32l073vzt6", "product_line": "STM32L073xx" diff --git a/boards/fysetc_s6.json b/boards/fysetc_s6.json index 13b7fb63..d0dc499a 100644 --- a/boards/fysetc_s6.json +++ b/boards/fysetc_s6.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F446xx", + "extra_flags": "-DSTM32F4 -DSTM32F446xx", "f_cpu": "168000000L", "flash_offset": "0x10000", "framework_extra_flags": { diff --git a/boards/genericSTM32F401CB.json b/boards/genericSTM32F401CB.json index f7ce8298..2513d4d9 100644 --- a/boards/genericSTM32F401CB.json +++ b/boards/genericSTM32F401CB.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F401xC -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F401xC -DSTM32F4xx", "f_cpu": "84000000L", "mcu": "stm32f401cbu6", "product_line": "STM32F401xC", diff --git a/boards/genericSTM32F401CC.json b/boards/genericSTM32F401CC.json index f1fa823e..0b9b2ae5 100644 --- a/boards/genericSTM32F401CC.json +++ b/boards/genericSTM32F401CC.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F401xC -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F401xC -DSTM32F4xx", "f_cpu": "84000000L", "mcu": "stm32f401ccu6", "product_line": "STM32F401xC", diff --git a/boards/genericSTM32F401CD.json b/boards/genericSTM32F401CD.json index 01d577c9..4903f410 100644 --- a/boards/genericSTM32F401CD.json +++ b/boards/genericSTM32F401CD.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F401xE -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F401xE -DSTM32F4xx", "f_cpu": "84000000L", "mcu": "stm32f401cdu6", "product_line": "STM32F401xE", diff --git a/boards/genericSTM32F401CE.json b/boards/genericSTM32F401CE.json index de35ed1f..a161667a 100644 --- a/boards/genericSTM32F401CE.json +++ b/boards/genericSTM32F401CE.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F401xE -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F401xE -DSTM32F4xx", "f_cpu": "84000000L", "mcu": "stm32f401ceu6", "product_line": "STM32F401xE", diff --git a/boards/genericSTM32F401RB.json b/boards/genericSTM32F401RB.json index 5d0ef5cf..763ec644 100644 --- a/boards/genericSTM32F401RB.json +++ b/boards/genericSTM32F401RB.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F401xC -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F401xC -DSTM32F4xx", "f_cpu": "84000000L", "mcu": "stm32f401rbt6", "product_line": "STM32F401xC", diff --git a/boards/genericSTM32F401RC.json b/boards/genericSTM32F401RC.json index 84f57d4e..a806bb98 100644 --- a/boards/genericSTM32F401RC.json +++ b/boards/genericSTM32F401RC.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F401xC -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F401xC -DSTM32F4xx", "f_cpu": "84000000L", "mcu": "stm32f401rct6", "product_line": "STM32F401xC", diff --git a/boards/genericSTM32F401RD.json b/boards/genericSTM32F401RD.json index 6cda713e..c1adae5b 100644 --- a/boards/genericSTM32F401RD.json +++ b/boards/genericSTM32F401RD.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F401xE -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F401xE -DSTM32F4xx", "f_cpu": "84000000L", "mcu": "stm32f401rdt6", "product_line": "STM32F401xE", diff --git a/boards/genericSTM32F401RE.json b/boards/genericSTM32F401RE.json index 60305cd5..14caeb5a 100644 --- a/boards/genericSTM32F401RE.json +++ b/boards/genericSTM32F401RE.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F401xE -DSTM32F4xx -DARDUINO_GENERIC_F401RE", + "extra_flags": "-DSTM32F4 -DSTM32F401xE -DSTM32F4xx -DARDUINO_GENERIC_F401RE", "f_cpu": "84000000L", "mcu": "stm32f401ret6", "product_line": "STM32F401xE", diff --git a/boards/genericSTM32F405RG.json b/boards/genericSTM32F405RG.json index d200d282..ad45a908 100644 --- a/boards/genericSTM32F405RG.json +++ b/boards/genericSTM32F405RG.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F405xx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F405xx -DSTM32F4xx", "f_cpu": "168000000L", "mcu": "stm32f405rgt6", "product_line": "STM32F405xx", diff --git a/boards/genericSTM32F410C8.json b/boards/genericSTM32F410C8.json index e71781ce..53790af5 100644 --- a/boards/genericSTM32F410C8.json +++ b/boards/genericSTM32F410C8.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F410Cx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F410Cx -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f410c8t6", "product_line": "STM32F410Cx", diff --git a/boards/genericSTM32F410CB.json b/boards/genericSTM32F410CB.json index 56f49ca1..1b220c70 100644 --- a/boards/genericSTM32F410CB.json +++ b/boards/genericSTM32F410CB.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F410Cx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F410Cx -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f410cbt6", "product_line": "STM32F410Cx", diff --git a/boards/genericSTM32F410R8.json b/boards/genericSTM32F410R8.json index 0d60888b..ca6d9d33 100644 --- a/boards/genericSTM32F410R8.json +++ b/boards/genericSTM32F410R8.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F410Rx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F410Rx -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f410r8t6", "product_line": "STM32F410Rx", diff --git a/boards/genericSTM32F410RB.json b/boards/genericSTM32F410RB.json index 5e7ee8d1..77f92ce7 100644 --- a/boards/genericSTM32F410RB.json +++ b/boards/genericSTM32F410RB.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F410Rx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F410Rx -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f410rbt6", "product_line": "STM32F410Rx", diff --git a/boards/genericSTM32F411CC.json b/boards/genericSTM32F411CC.json index 5ed36418..a7dafb5b 100644 --- a/boards/genericSTM32F411CC.json +++ b/boards/genericSTM32F411CC.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F411xE -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F411xE -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f411ccu6", "product_line": "STM32F411xE", diff --git a/boards/genericSTM32F411CE.json b/boards/genericSTM32F411CE.json index 8b44cbbd..c9d4bb96 100644 --- a/boards/genericSTM32F411CE.json +++ b/boards/genericSTM32F411CE.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F411xE -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F411xE -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f411ceu6", "product_line": "STM32F411xE", diff --git a/boards/genericSTM32F411RC.json b/boards/genericSTM32F411RC.json index dd9e8211..298791e5 100644 --- a/boards/genericSTM32F411RC.json +++ b/boards/genericSTM32F411RC.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F411xE -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F411xE -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f411rct6", "product_line": "STM32F411xE", diff --git a/boards/genericSTM32F411RE.json b/boards/genericSTM32F411RE.json index ea0b8752..3999aff7 100644 --- a/boards/genericSTM32F411RE.json +++ b/boards/genericSTM32F411RE.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F411xE -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F411xE -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f411ret6", "product_line": "STM32F411xE", diff --git a/boards/genericSTM32F412CE.json b/boards/genericSTM32F412CE.json index 0c75aa65..dfd684d8 100644 --- a/boards/genericSTM32F412CE.json +++ b/boards/genericSTM32F412CE.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F412Cx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F412Cx -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f412ceu6", "product_line": "STM32F412Cx", diff --git a/boards/genericSTM32F412CG.json b/boards/genericSTM32F412CG.json index efe24b20..e5d140b5 100644 --- a/boards/genericSTM32F412CG.json +++ b/boards/genericSTM32F412CG.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F412Cx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F412Cx -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f412cgu6", "product_line": "STM32F412Cx", diff --git a/boards/genericSTM32F412RE.json b/boards/genericSTM32F412RE.json index 1baf0ba8..0a6af916 100644 --- a/boards/genericSTM32F412RE.json +++ b/boards/genericSTM32F412RE.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F412Rx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F412Rx -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f412ret6", "product_line": "STM32F412Rx", diff --git a/boards/genericSTM32F412RG.json b/boards/genericSTM32F412RG.json index e734f368..68c1dcc2 100644 --- a/boards/genericSTM32F412RG.json +++ b/boards/genericSTM32F412RG.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F412Rx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F412Rx -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f412rgt6", "product_line": "STM32F412Rx", diff --git a/boards/genericSTM32F413CG.json b/boards/genericSTM32F413CG.json index c277ac76..b05f2142 100644 --- a/boards/genericSTM32F413CG.json +++ b/boards/genericSTM32F413CG.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F413xx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F413xx -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f413cgu6", "product_line": "STM32F413xx", diff --git a/boards/genericSTM32F413CH.json b/boards/genericSTM32F413CH.json index c43a16e8..7e0f2cf9 100644 --- a/boards/genericSTM32F413CH.json +++ b/boards/genericSTM32F413CH.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F413xx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F413xx -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f413chu6", "product_line": "STM32F413xx", diff --git a/boards/genericSTM32F413RG.json b/boards/genericSTM32F413RG.json index 9ea5c19d..33953d4b 100644 --- a/boards/genericSTM32F413RG.json +++ b/boards/genericSTM32F413RG.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F413xx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F413xx -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f413rgt6", "product_line": "STM32F413xx", diff --git a/boards/genericSTM32F413RH.json b/boards/genericSTM32F413RH.json index 76c1dd90..4486d32c 100644 --- a/boards/genericSTM32F413RH.json +++ b/boards/genericSTM32F413RH.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F413xx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F413xx -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f413rht6", "product_line": "STM32F413xx", diff --git a/boards/genericSTM32F415RG.json b/boards/genericSTM32F415RG.json index 48c5c69e..cca0121b 100644 --- a/boards/genericSTM32F415RG.json +++ b/boards/genericSTM32F415RG.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F415xx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F415xx -DSTM32F4xx", "f_cpu": "168000000L", "mcu": "stm32f415rgt6", "product_line": "STM32F415xx", diff --git a/boards/genericSTM32F417VE.json b/boards/genericSTM32F417VE.json index 54a75605..4878cb3b 100644 --- a/boards/genericSTM32F417VE.json +++ b/boards/genericSTM32F417VE.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F417xx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F417xx -DSTM32F4xx", "f_cpu": "168000000L", "mcu": "stm32f417vet6", "product_line": "STM32F417xx", diff --git a/boards/genericSTM32F417VG.json b/boards/genericSTM32F417VG.json index 9082b42e..70f6037b 100644 --- a/boards/genericSTM32F417VG.json +++ b/boards/genericSTM32F417VG.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F417xx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F417xx -DSTM32F4xx", "f_cpu": "168000000L", "mcu": "stm32f417vgt6", "product_line": "STM32F417xx", diff --git a/boards/genericSTM32F423CH.json b/boards/genericSTM32F423CH.json index 9952aa62..a8703f1d 100644 --- a/boards/genericSTM32F423CH.json +++ b/boards/genericSTM32F423CH.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F423xx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F423xx -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f423chu6", "product_line": "STM32F423xx", diff --git a/boards/genericSTM32F423RH.json b/boards/genericSTM32F423RH.json index 310da1c0..b707cb1d 100644 --- a/boards/genericSTM32F423RH.json +++ b/boards/genericSTM32F423RH.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F423xx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F423xx -DSTM32F4xx", "f_cpu": "100000000L", "mcu": "stm32f423rht6", "product_line": "STM32F423xx", diff --git a/boards/genericSTM32F446RC.json b/boards/genericSTM32F446RC.json index 1c837bf4..bfcadf03 100644 --- a/boards/genericSTM32F446RC.json +++ b/boards/genericSTM32F446RC.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F446xx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F446xx -DSTM32F4xx", "f_cpu": "180000000L", "mcu": "stm32f446rct6", "product_line": "STM32F446xx", diff --git a/boards/genericSTM32F446RE.json b/boards/genericSTM32F446RE.json index a72b5014..db9a4d2a 100644 --- a/boards/genericSTM32F446RE.json +++ b/boards/genericSTM32F446RE.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F446xx -DSTM32F4xx", + "extra_flags": "-DSTM32F4 -DSTM32F446xx -DSTM32F4xx", "f_cpu": "180000000L", "mcu": "stm32f446ret6", "product_line": "STM32F446xx", diff --git a/boards/genericSTM32G431CB.json b/boards/genericSTM32G431CB.json index 68593b9e..34729087 100644 --- a/boards/genericSTM32G431CB.json +++ b/boards/genericSTM32G431CB.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32G4xx -DSTM32G431xx", + "extra_flags": "-DSTM32G4 -DSTM32G4xx -DSTM32G431xx", "f_cpu": "170000000L", "mcu": "stm32g431cbu6", "product_line": "STM32G431xx", diff --git a/boards/genericSTM32H750VB.json b/boards/genericSTM32H750VB.json index aa4c1d9d..bde26ac1 100644 --- a/boards/genericSTM32H750VB.json +++ b/boards/genericSTM32H750VB.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32H7xx -DSTM32H750xx", + "extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H750xx", "f_cpu": "480000000L", "mcu": "stm32h750vbt6", "product_line": "STM32H750xx", diff --git a/boards/gnat_l082cz.json b/boards/gnat_l082cz.json index f109063c..aa3e9426 100644 --- a/boards/gnat_l082cz.json +++ b/boards/gnat_l082cz.json @@ -2,7 +2,7 @@ "build": { "cpu": "cortex-m0plus", "core": "stm32l0", - "extra_flags": "-DARDUINO_STM32L0_GNAT", + "extra_flags": "-DSTM32L0 -DARDUINO_STM32L0_GNAT", "f_cpu": "32000000L", "hwids": [ [ diff --git a/boards/grasshopper_l082cz.json b/boards/grasshopper_l082cz.json index 1f5bca4b..64001026 100644 --- a/boards/grasshopper_l082cz.json +++ b/boards/grasshopper_l082cz.json @@ -2,7 +2,7 @@ "build": { "cpu": "cortex-m0plus", "core": "stm32l0", - "extra_flags": "-DARDUINO_STM32L0_GRASSHOPPER", + "extra_flags": "-DSTM32L0 -DARDUINO_STM32L0_GRASSHOPPER", "f_cpu": "32000000L", "hwids": [ [ diff --git a/boards/hy_tinystm103tb.json b/boards/hy_tinystm103tb.json index 5ee75214..80a66aae 100644 --- a/boards/hy_tinystm103tb.json +++ b/boards/hy_tinystm103tb.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m3", - "extra_flags": "-DSTM32F103xB", + "extra_flags": "-DSTM32F1 -DSTM32F103xB", "f_cpu": "72000000L", "hwids": [ [ diff --git a/boards/leafony_ap03.json b/boards/leafony_ap03.json index a3f31cb5..f9230db5 100644 --- a/boards/leafony_ap03.json +++ b/boards/leafony_ap03.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32L452xx", + "extra_flags": "-DSTM32L4 -DSTM32L452xx", "f_cpu": "80000000L", "mcu": "stm32l452ret6", "product_line": "STM32L452xx", diff --git a/boards/lora_e5_dev_board.json b/boards/lora_e5_dev_board.json index 92b6cc2b..72a0bf4d 100644 --- a/boards/lora_e5_dev_board.json +++ b/boards/lora_e5_dev_board.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32WLxx -DSTM32WLE5xx", + "extra_flags": "-DSTM32WL -DSTM32WLxx -DSTM32WLE5xx", "f_cpu": "48000000L", "framework_extra_flags": { "arduino": "-DUSE_CM4_STARTUP_FILE -DARDUINO_GENERIC_WLE5JCIX" diff --git a/boards/lora_e5_mini.json b/boards/lora_e5_mini.json index a4031775..edd04f50 100644 --- a/boards/lora_e5_mini.json +++ b/boards/lora_e5_mini.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32WLxx -DSTM32WLE5xx", + "extra_flags": "-DSTM32WL -DSTM32WLxx -DSTM32WLE5xx", "f_cpu": "48000000L", "mcu": "stm32wle5jc", "product_line": "STM32WLE5xx", diff --git a/boards/malyanm200_f070cb.json b/boards/malyanm200_f070cb.json index c98afd49..c0a64961 100644 --- a/boards/malyanm200_f070cb.json +++ b/boards/malyanm200_f070cb.json @@ -5,7 +5,7 @@ "variant_h": "variant_MALYANMx00_F070CB.h" }, "cpu": "cortex-m0", - "extra_flags": "-DSTM32F070xB", + "extra_flags": "-DSTM32F0 -DSTM32F070xB", "f_cpu": "48000000L", "flash_offset": "0x2000", "framework_extra_flags": { diff --git a/boards/malyanm200_f103cb.json b/boards/malyanm200_f103cb.json index 1440aad9..fed978cc 100644 --- a/boards/malyanm200_f103cb.json +++ b/boards/malyanm200_f103cb.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m3", - "extra_flags": "-DSTM32F103xB", + "extra_flags": "-DSTM32F1 -DSTM32F103xB", "f_cpu": "72000000L", "flash_offset": "0x2000", "framework_extra_flags": { diff --git a/boards/malyanm300_f070cb.json b/boards/malyanm300_f070cb.json index b7bc3b0b..db5e43f5 100644 --- a/boards/malyanm300_f070cb.json +++ b/boards/malyanm300_f070cb.json @@ -5,7 +5,7 @@ "variant_h": "variant_MALYANMx00_F070CB.h" }, "cpu": "cortex-m0", - "extra_flags": "-DSTM32F070xB", + "extra_flags": "-DSTM32F0 -DSTM32F070xB", "f_cpu": "48000000L", "flash_offset": "0x2000", "framework_extra_flags": { diff --git a/boards/maple.json b/boards/maple.json index 2e5698d9..c0c80d33 100644 --- a/boards/maple.json +++ b/boards/maple.json @@ -2,7 +2,7 @@ "build": { "core": "maple", "cpu": "cortex-m3", - "extra_flags": "-DSTM32F103xB -DARDUINO_MAPLE_REV3 -DMCU_STM32F103RB", + "extra_flags": "-DSTM32F1 -DSTM32F103xB -DARDUINO_MAPLE_REV3 -DMCU_STM32F103RB", "f_cpu": "72000000L", "hwids": [ [ diff --git a/boards/maple_mini_b20.json b/boards/maple_mini_b20.json index cddea1e7..41f342be 100644 --- a/boards/maple_mini_b20.json +++ b/boards/maple_mini_b20.json @@ -2,7 +2,7 @@ "build": { "core": "maple", "cpu": "cortex-m3", - "extra_flags": "-DSTM32F103xB", + "extra_flags": "-DSTM32F1 -DSTM32F103xB", "f_cpu": "72000000L", "hwids": [ [ diff --git a/boards/maple_mini_origin.json b/boards/maple_mini_origin.json index 898c62fb..c6365c8c 100644 --- a/boards/maple_mini_origin.json +++ b/boards/maple_mini_origin.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m3", - "extra_flags": "-DSTM32F103xB", + "extra_flags": "-DSTM32F1 -DSTM32F103xB", "f_cpu": "72000000L", "framework_extra_flags": { "arduino": "-DARDUINO_MAPLEMINI_F103CB" diff --git a/boards/maple_ret6.json b/boards/maple_ret6.json index 1b87feba..be3b56b1 100644 --- a/boards/maple_ret6.json +++ b/boards/maple_ret6.json @@ -2,7 +2,7 @@ "build": { "core": "maple", "cpu": "cortex-m3", - "extra_flags": "-DSTM32F103xE", + "extra_flags": "-DSTM32F1 -DSTM32F103xE", "f_cpu": "72000000L", "hwids": [ [ diff --git a/boards/microduino32_flash.json b/boards/microduino32_flash.json index 0b65e7e7..1581dc9b 100644 --- a/boards/microduino32_flash.json +++ b/boards/microduino32_flash.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m3", - "extra_flags": "-DSTM32F103xB", + "extra_flags": "-DSTM32F1 -DSTM32F103xB", "f_cpu": "72000000L", "hwids": [ [ diff --git a/boards/mkr_sharky.json b/boards/mkr_sharky.json index 6b0d5ff8..0440c3a5 100644 --- a/boards/mkr_sharky.json +++ b/boards/mkr_sharky.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32WBxx -DSTM32WB55xx", + "extra_flags": "-DSTM32WB -DSTM32WBxx -DSTM32WB55xx", "f_cpu": "64000000L", "mcu": "stm32wb55cg", "variant": "STM32WBxx/WB55C(C-E-G)U" diff --git a/boards/mote_l152rc.json b/boards/mote_l152rc.json index 32bde526..8e2a790f 100644 --- a/boards/mote_l152rc.json +++ b/boards/mote_l152rc.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m3", - "extra_flags": "-DSTM32L152xC", + "extra_flags": "-DSTM32L1 -DSTM32L152xC", "f_cpu": "32000000L", "mcu": "stm32l152rc", "product_line": "STM32L152xC" diff --git a/boards/mts_mdot_f411re.json b/boards/mts_mdot_f411re.json index e9fe3997..ff4c9266 100644 --- a/boards/mts_mdot_f411re.json +++ b/boards/mts_mdot_f411re.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F411xE", + "extra_flags": "-DSTM32F4 -DSTM32F411xE", "f_cpu": "100000000L", "mcu": "stm32f411ret6", "product_line": "STM32F411xE" diff --git a/boards/mxchip_az3166.json b/boards/mxchip_az3166.json index e99a3380..50e590ee 100644 --- a/boards/mxchip_az3166.json +++ b/boards/mxchip_az3166.json @@ -2,7 +2,7 @@ "build": { "core": "arduino", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F412Zx -DARDUINO_MXCHIP_AZ3166 -DARDUINO_ARCH_STM32F4", + "extra_flags": "-DSTM32F4 -DSTM32F412Zx -DARDUINO_MXCHIP_AZ3166 -DARDUINO_ARCH_STM32F4", "f_cpu": "100000000L", "arduino": { "ldscript": "AZ3166.ld" diff --git a/boards/netduino2plus.json b/boards/netduino2plus.json index 97abe5f5..efd432ee 100644 --- a/boards/netduino2plus.json +++ b/boards/netduino2plus.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F405xx", + "extra_flags": "-DSTM32F4 -DSTM32F405xx", "f_cpu": "168000000L", "hwids": [ [ diff --git a/boards/nicla_vision.json b/boards/nicla_vision.json index d4db89a1..c8ff7e26 100644 --- a/boards/nicla_vision.json +++ b/boards/nicla_vision.json @@ -4,7 +4,7 @@ "ldscript": "linker_script.ld", "flash_layout": "50_50" }, - "extra_flags": "-DARDUINO_NICLA_VISION", + "extra_flags": "-DSTM32H7 -DARDUINO_NICLA_VISION", "core": "arduino", "cpu": "cortex-m7", "f_cpu": "480000000L", diff --git a/boards/nicla_vision_m4.json b/boards/nicla_vision_m4.json index c5ef06e5..feb797d6 100644 --- a/boards/nicla_vision_m4.json +++ b/boards/nicla_vision_m4.json @@ -4,7 +4,7 @@ "ldscript": "linker_script.ld", "flash_layout": "50_50" }, - "extra_flags": "-DARDUINO_PORTENTA_H7_M4 -DNVISION_PINS", + "extra_flags": "-DSTM32H7 -DARDUINO_PORTENTA_H7_M4 -DNVISION_PINS", "core": "arduino", "cpu": "cortex-m4", "f_cpu": "480000000L", diff --git a/boards/nucleo_f030r8.json b/boards/nucleo_f030r8.json index 8b22e6d0..bdbcb101 100644 --- a/boards/nucleo_f030r8.json +++ b/boards/nucleo_f030r8.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m0", - "extra_flags": "-DSTM32F030x8", + "extra_flags": "-DSTM32F0 -DSTM32F030x8", "f_cpu": "48000000L", "mcu": "stm32f030r8t6", "product_line": "STM32F030x8", diff --git a/boards/nucleo_f031k6.json b/boards/nucleo_f031k6.json index 8cef5ec0..7490b7cc 100644 --- a/boards/nucleo_f031k6.json +++ b/boards/nucleo_f031k6.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m0", - "extra_flags": "-DSTM32F031x6", + "extra_flags": "-DSTM32F0 -DSTM32F031x6", "f_cpu": "48000000L", "mcu": "stm32f031k6t6", "product_line": "STM32F031x6", diff --git a/boards/nucleo_f042k6.json b/boards/nucleo_f042k6.json index cae95edf..f16a5010 100644 --- a/boards/nucleo_f042k6.json +++ b/boards/nucleo_f042k6.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0", - "extra_flags": "-DSTM32F042x6", + "extra_flags": "-DSTM32F0 -DSTM32F042x6", "f_cpu": "48000000L", "mcu": "stm32f042k6t6", "product_line": "STM32F042x6", diff --git a/boards/nucleo_f070rb.json b/boards/nucleo_f070rb.json index 2bc2a535..db197141 100644 --- a/boards/nucleo_f070rb.json +++ b/boards/nucleo_f070rb.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0", - "extra_flags": "-DSTM32F070xB", + "extra_flags": "-DSTM32F0 -DSTM32F070xB", "f_cpu": "48000000L", "mcu": "stm32f070rbt6", "product_line": "STM32F070xB" diff --git a/boards/nucleo_f072rb.json b/boards/nucleo_f072rb.json index df3c7514..f1f0cce5 100644 --- a/boards/nucleo_f072rb.json +++ b/boards/nucleo_f072rb.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m0", - "extra_flags": "-DSTM32F072xB", + "extra_flags": "-DSTM32F0 -DSTM32F072xB", "f_cpu": "48000000L", "mcu": "stm32f072rbt6", "product_line": "STM32F072xB", diff --git a/boards/nucleo_f091rc.json b/boards/nucleo_f091rc.json index 1ddcfdcc..164a56af 100644 --- a/boards/nucleo_f091rc.json +++ b/boards/nucleo_f091rc.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m0", - "extra_flags": "-DSTM32F091xC", + "extra_flags": "-DSTM32F0 -DSTM32F091xC", "f_cpu": "48000000L", "mcu": "stm32f091rct6", "product_line": "STM32F091xC", diff --git a/boards/nucleo_f103rb.json b/boards/nucleo_f103rb.json index 5875df07..0f89f66b 100644 --- a/boards/nucleo_f103rb.json +++ b/boards/nucleo_f103rb.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m3", - "extra_flags": "-DSTM32F103xB", + "extra_flags": "-DSTM32F1 -DSTM32F103xB", "f_cpu": "72000000L", "mcu": "stm32f103rbt6", "product_line": "STM32F103xB", diff --git a/boards/nucleo_f207zg.json b/boards/nucleo_f207zg.json index 030cb1c9..a4e5276a 100644 --- a/boards/nucleo_f207zg.json +++ b/boards/nucleo_f207zg.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m3", - "extra_flags": "-DSTM32F207xx", + "extra_flags": "-DSTM32F2 -DSTM32F207xx", "f_cpu": "120000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/nucleo_f302r8.json b/boards/nucleo_f302r8.json index 7bdabd0b..0ea3777c 100644 --- a/boards/nucleo_f302r8.json +++ b/boards/nucleo_f302r8.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F302x8", + "extra_flags": "-DSTM32F3 -DSTM32F302x8", "f_cpu": "72000000L", "mcu": "stm32f302r8t6", "product_line": "STM32F302x8", diff --git a/boards/nucleo_f303k8.json b/boards/nucleo_f303k8.json index 7f55b3c4..6f0542f6 100644 --- a/boards/nucleo_f303k8.json +++ b/boards/nucleo_f303k8.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F303x8", + "extra_flags": "-DSTM32F3 -DSTM32F303x8", "f_cpu": "72000000L", "mcu": "stm32f303k8t6", "product_line": "STM32F303x8", diff --git a/boards/nucleo_f303re.json b/boards/nucleo_f303re.json index fa6c895e..ad42c807 100644 --- a/boards/nucleo_f303re.json +++ b/boards/nucleo_f303re.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F303xE", + "extra_flags": "-DSTM32F3 -DSTM32F303xE", "f_cpu": "72000000L", "mcu": "stm32f303ret6", "product_line": "STM32F303xE", diff --git a/boards/nucleo_f303ze.json b/boards/nucleo_f303ze.json index fcc1a45f..1bd16a78 100644 --- a/boards/nucleo_f303ze.json +++ b/boards/nucleo_f303ze.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F303xE", + "extra_flags": "-DSTM32F3 -DSTM32F303xE", "f_cpu": "72000000L", "mcu": "stm32f303zet6", "product_line": "STM32F303xE" diff --git a/boards/nucleo_f334r8.json b/boards/nucleo_f334r8.json index 4175ed1b..f1f91d9e 100644 --- a/boards/nucleo_f334r8.json +++ b/boards/nucleo_f334r8.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F334x8", + "extra_flags": "-DSTM32F3 -DSTM32F334x8", "f_cpu": "72000000L", "mcu": "stm32f334r8t6", "product_line": "STM32F334x8" diff --git a/boards/nucleo_f410rb.json b/boards/nucleo_f410rb.json index b60be8b3..c5d797ef 100644 --- a/boards/nucleo_f410rb.json +++ b/boards/nucleo_f410rb.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F410Rx", + "extra_flags": "-DSTM32F4 -DSTM32F410Rx", "f_cpu": "100000000L", "mcu": "stm32f410rbt6", "product_line": "STM32F410Rx" diff --git a/boards/nucleo_f411re.json b/boards/nucleo_f411re.json index a4363dad..402d4d7d 100644 --- a/boards/nucleo_f411re.json +++ b/boards/nucleo_f411re.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F411xE", + "extra_flags": "-DSTM32F4 -DSTM32F411xE", "f_cpu": "100000000L", "mcu": "stm32f411ret6", "product_line": "STM32F411xE", diff --git a/boards/nucleo_f412zg.json b/boards/nucleo_f412zg.json index b7493853..5e2a47e5 100644 --- a/boards/nucleo_f412zg.json +++ b/boards/nucleo_f412zg.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F412Zx", + "extra_flags": "-DSTM32F4 -DSTM32F412Zx", "f_cpu": "100000000L", "mcu": "stm32f412zgt6", "product_line": "STM32F412Zx" diff --git a/boards/nucleo_f413zh.json b/boards/nucleo_f413zh.json index 3da24c36..9c562501 100644 --- a/boards/nucleo_f413zh.json +++ b/boards/nucleo_f413zh.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F413xx", + "extra_flags": "-DSTM32F4 -DSTM32F413xx", "f_cpu": "100000000L", "mcu": "stm32f413zht6", "product_line": "STM32F413xx" diff --git a/boards/nucleo_f429zi.json b/boards/nucleo_f429zi.json index 62f4408d..47b9f0d1 100644 --- a/boards/nucleo_f429zi.json +++ b/boards/nucleo_f429zi.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F429xx", + "extra_flags": "-DSTM32F4 -DSTM32F429xx", "f_cpu": "180000000L", "mcu": "stm32f429zit6", "product_line": "STM32F429xx", diff --git a/boards/nucleo_f439zi.json b/boards/nucleo_f439zi.json index 6ce4fb30..b5ecb98a 100644 --- a/boards/nucleo_f439zi.json +++ b/boards/nucleo_f439zi.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F439xx", + "extra_flags": "-DSTM32F4 -DSTM32F439xx", "f_cpu": "180000000L", "mcu": "stm32f439zit6", "product_line": "STM32F439xx" diff --git a/boards/nucleo_f446re.json b/boards/nucleo_f446re.json index 2d01c21e..8e96c367 100644 --- a/boards/nucleo_f446re.json +++ b/boards/nucleo_f446re.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F446xx", + "extra_flags": "-DSTM32F4 -DSTM32F446xx", "f_cpu": "180000000L", "mcu": "stm32f446ret6", "product_line": "STM32F446xx", diff --git a/boards/nucleo_f722ze.json b/boards/nucleo_f722ze.json index c53ee722..6add3099 100644 --- a/boards/nucleo_f722ze.json +++ b/boards/nucleo_f722ze.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m7", - "extra_flags": "-DSTM32F722xx", + "extra_flags": "-DSTM32F7 -DSTM32F722xx", "f_cpu": "216000000L", "mcu": "stm32f722zet6", "product_line": "STM32F722xx", diff --git a/boards/nucleo_f746zg.json b/boards/nucleo_f746zg.json index ea1f30dc..6e827ae6 100644 --- a/boards/nucleo_f746zg.json +++ b/boards/nucleo_f746zg.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32F746xx", + "extra_flags": "-DSTM32F7 -DSTM32F746xx", "f_cpu": "216000000L", "mcu": "stm32f746zgt6", "product_line": "STM32F746xx", diff --git a/boards/nucleo_f756zg.json b/boards/nucleo_f756zg.json index eea9437a..08939522 100644 --- a/boards/nucleo_f756zg.json +++ b/boards/nucleo_f756zg.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32F756xx", + "extra_flags": "-DSTM32F7 -DSTM32F756xx", "f_cpu": "216000000L", "mcu": "stm32f756zg", "product_line": "STM32F756xx", diff --git a/boards/nucleo_f767zi.json b/boards/nucleo_f767zi.json index 757e0176..63118d00 100644 --- a/boards/nucleo_f767zi.json +++ b/boards/nucleo_f767zi.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32F767xx", + "extra_flags": "-DSTM32F7 -DSTM32F767xx", "f_cpu": "216000000L", "mcu": "stm32f767zit6", "product_line": "STM32F767xx", diff --git a/boards/nucleo_g031k8.json b/boards/nucleo_g031k8.json index ce48047d..7fe6ac97 100644 --- a/boards/nucleo_g031k8.json +++ b/boards/nucleo_g031k8.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32G0xx -DSTM32G031xx", + "extra_flags": "-DSTM32G0 -DSTM32G0xx -DSTM32G031xx", "f_cpu": "64000000L", "framework_extra_flags": { "arduino": "-D__CORTEX_SC=0" diff --git a/boards/nucleo_g070rb.json b/boards/nucleo_g070rb.json index ce217143..569e253a 100644 --- a/boards/nucleo_g070rb.json +++ b/boards/nucleo_g070rb.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32G0xx -DSTM32G070xx", + "extra_flags": "-DSTM32G0 -DSTM32G0xx -DSTM32G070xx", "f_cpu": "64000000L", "framework_extra_flags": { "arduino": "-D__CORTEX_SC=0" diff --git a/boards/nucleo_g071rb.json b/boards/nucleo_g071rb.json index 0314b280..687e543e 100644 --- a/boards/nucleo_g071rb.json +++ b/boards/nucleo_g071rb.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32G0xx -DSTM32G071xx", + "extra_flags": "-DSTM32G0 -DSTM32G0xx -DSTM32G071xx", "f_cpu": "64000000L", "framework_extra_flags": { "arduino": "-D__CORTEX_SC=0" diff --git a/boards/nucleo_g0b1re.json b/boards/nucleo_g0b1re.json index 671c318e..df3ca590 100644 --- a/boards/nucleo_g0b1re.json +++ b/boards/nucleo_g0b1re.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32G0xx -DSTM32G0B1xx", + "extra_flags": "-DSTM32G0 -DSTM32G0xx -DSTM32G0B1xx", "f_cpu": "64000000L", "framework_extra_flags": { "arduino": "-D__CORTEX_SC=0" diff --git a/boards/nucleo_g431kb.json b/boards/nucleo_g431kb.json index 5bb3b6e5..1cb791a8 100644 --- a/boards/nucleo_g431kb.json +++ b/boards/nucleo_g431kb.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32G4xx -DSTM32G431xx", + "extra_flags": "-DSTM32G4 -DSTM32G4xx -DSTM32G431xx", "f_cpu": "170000000L", "mcu": "stm32g431kbt6", "product_line": "STM32G431xx", diff --git a/boards/nucleo_g431rb.json b/boards/nucleo_g431rb.json index e5103c5e..07d4625d 100644 --- a/boards/nucleo_g431rb.json +++ b/boards/nucleo_g431rb.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32G4xx -DSTM32G431xx", + "extra_flags": "-DSTM32G4 -DSTM32G4xx -DSTM32G431xx", "f_cpu": "170000000L", "mcu": "stm32g431rbt6", "product_line": "STM32G431xx", diff --git a/boards/nucleo_g474re.json b/boards/nucleo_g474re.json index c33fe4c8..7d8dd619 100644 --- a/boards/nucleo_g474re.json +++ b/boards/nucleo_g474re.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32G4xx -DSTM32G474xx", + "extra_flags": "-DSTM32G4 -DSTM32G4xx -DSTM32G474xx", "f_cpu": "170000000L", "mcu": "stm32g474ret6", "product_line": "STM32G474xx", diff --git a/boards/nucleo_h723zg.json b/boards/nucleo_h723zg.json index ef714850..0ea4b216 100644 --- a/boards/nucleo_h723zg.json +++ b/boards/nucleo_h723zg.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32H7xx -DSTM32H723xx", + "extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H723xx", "f_cpu": "550000000L", "mcu": "stm32h723zgt6", "product_line": "STM32H723xx", diff --git a/boards/nucleo_h743zi.json b/boards/nucleo_h743zi.json index e1e39839..257d5b50 100644 --- a/boards/nucleo_h743zi.json +++ b/boards/nucleo_h743zi.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32H7xx -DSTM32H743xx", + "extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H743xx", "f_cpu": "400000000L", "mcu": "stm32h743zit6", "product_line": "STM32H743xx", diff --git a/boards/nucleo_h745zi_q.json b/boards/nucleo_h745zi_q.json index 245ffdfc..49db6834 100644 --- a/boards/nucleo_h745zi_q.json +++ b/boards/nucleo_h745zi_q.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32H7xx -DSTM32H745xx", + "extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H745xx", "f_cpu": "480000000L", "mcu": "stm32h745zit6", "product_line": "STM32H745xx", diff --git a/boards/nucleo_h753zi.json b/boards/nucleo_h753zi.json index 6d72b706..6eef662a 100644 --- a/boards/nucleo_h753zi.json +++ b/boards/nucleo_h753zi.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32H7xx -DSTM32H753xx", + "extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H753xx", "f_cpu": "400000000L", "mcu": "stm32h753zit6", "product_line": "STM32H753xx" diff --git a/boards/nucleo_l010rb.json b/boards/nucleo_l010rb.json index f47cde53..46b5d413 100644 --- a/boards/nucleo_l010rb.json +++ b/boards/nucleo_l010rb.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32L010xB", + "extra_flags": "-DSTM32L0 -DSTM32L010xB", "f_cpu": "32000000L", "framework_extra_flags": { "arduino": "-D__CORTEX_SC=0" diff --git a/boards/nucleo_l011k4.json b/boards/nucleo_l011k4.json index 7110a8fa..bd3ad389 100644 --- a/boards/nucleo_l011k4.json +++ b/boards/nucleo_l011k4.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32L011xx", + "extra_flags": "-DSTM32L0 -DSTM32L011xx", "f_cpu": "32000000L", "mcu": "stm32l011k4t6", "product_line": "STM32L011xx" diff --git a/boards/nucleo_l031k6.json b/boards/nucleo_l031k6.json index aa17d0bc..7b7ce2e9 100644 --- a/boards/nucleo_l031k6.json +++ b/boards/nucleo_l031k6.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32L031xx", + "extra_flags": "-DSTM32L0 -DSTM32L031xx", "f_cpu": "32000000L", "mcu": "stm32l031k6t6", "product_line": "STM32L031xx", diff --git a/boards/nucleo_l053r8.json b/boards/nucleo_l053r8.json index 239da4d9..90fe1b6b 100644 --- a/boards/nucleo_l053r8.json +++ b/boards/nucleo_l053r8.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32L053xx", + "extra_flags": "-DSTM32L0 -DSTM32L053xx", "f_cpu": "32000000L", "framework_extra_flags": { "arduino": "-D__CORTEX_SC=0" diff --git a/boards/nucleo_l073rz.json b/boards/nucleo_l073rz.json index 94450295..4f4174a3 100644 --- a/boards/nucleo_l073rz.json +++ b/boards/nucleo_l073rz.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32L073xx", + "extra_flags": "-DSTM32L0 -DSTM32L073xx", "f_cpu": "32000000L", "framework_extra_flags": { "arduino": "-D__CORTEX_SC=0 -DARDUINO_NUCLEO_L073RZ" diff --git a/boards/nucleo_l152re.json b/boards/nucleo_l152re.json index 0fb85861..b8a053d7 100644 --- a/boards/nucleo_l152re.json +++ b/boards/nucleo_l152re.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m3", - "extra_flags": "-DSTM32L152xE", + "extra_flags": "-DSTM32L1 -DSTM32L152xE", "f_cpu": "32000000L", "mcu": "stm32l152ret6", "product_line": "STM32L152xE", diff --git a/boards/nucleo_l412kb.json b/boards/nucleo_l412kb.json index 451220f9..496cf812 100644 --- a/boards/nucleo_l412kb.json +++ b/boards/nucleo_l412kb.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32L412xx", + "extra_flags": "-DSTM32L4 -DSTM32L412xx", "f_cpu": "80000000L", "mcu": "stm32l412kbu6", "product_line": "STM32L412xx", diff --git a/boards/nucleo_l412rb_p.json b/boards/nucleo_l412rb_p.json index 95b7ad0a..79879b60 100644 --- a/boards/nucleo_l412rb_p.json +++ b/boards/nucleo_l412rb_p.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32L412xx", + "extra_flags": "-DSTM32L4 -DSTM32L412xx", "f_cpu": "80000000L", "mcu": "stm32l412rbt6p", "product_line": "STM32L412xx" diff --git a/boards/nucleo_l432kc.json b/boards/nucleo_l432kc.json index 2e9cc0e2..37b37cab 100644 --- a/boards/nucleo_l432kc.json +++ b/boards/nucleo_l432kc.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32L432xx", + "extra_flags": "-DSTM32L4 -DSTM32L432xx", "f_cpu": "80000000L", "mcu": "stm32l432kcu6", "product_line": "STM32L432xx", diff --git a/boards/nucleo_l433rc_p.json b/boards/nucleo_l433rc_p.json index c9b0e663..3b57ab5b 100644 --- a/boards/nucleo_l433rc_p.json +++ b/boards/nucleo_l433rc_p.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32L433xx", + "extra_flags": "-DSTM32L4 -DSTM32L433xx", "f_cpu": "80000000L", "mcu": "stm32l433rc", "product_line": "STM32L433xx", diff --git a/boards/nucleo_l452re.json b/boards/nucleo_l452re.json index 2fcbc5bc..a14bd6cc 100644 --- a/boards/nucleo_l452re.json +++ b/boards/nucleo_l452re.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32L452xx", + "extra_flags": "-DSTM32L4 -DSTM32L452xx", "f_cpu": "80000000L", "mcu": "stm32l452ret6", "product_line": "STM32L452xx", diff --git a/boards/nucleo_l476rg.json b/boards/nucleo_l476rg.json index d1f1078f..2dffadf8 100644 --- a/boards/nucleo_l476rg.json +++ b/boards/nucleo_l476rg.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32L476xx", + "extra_flags": "-DSTM32L4 -DSTM32L476xx", "f_cpu": "80000000L", "mcu": "stm32l476rgt6", "product_line": "STM32L476xx", diff --git a/boards/nucleo_l486rg.json b/boards/nucleo_l486rg.json index 8b9ca5ea..7a9dcb2e 100644 --- a/boards/nucleo_l486rg.json +++ b/boards/nucleo_l486rg.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32L486xx", + "extra_flags": "-DSTM32L4 -DSTM32L486xx", "f_cpu": "80000000L", "mcu": "stm32l486rgt6", "product_line": "STM32L486xx" diff --git a/boards/nucleo_l496zg.json b/boards/nucleo_l496zg.json index f7809c69..7d4c978e 100644 --- a/boards/nucleo_l496zg.json +++ b/boards/nucleo_l496zg.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32L496xx", + "extra_flags": "-DSTM32L4 -DSTM32L496xx", "f_cpu": "80000000L", "mcu": "stm32l496zgt6", "product_line": "STM32L496xx", diff --git a/boards/nucleo_l496zg_p.json b/boards/nucleo_l496zg_p.json index 3d48e0ef..6d31ff16 100644 --- a/boards/nucleo_l496zg_p.json +++ b/boards/nucleo_l496zg_p.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32L496xx", + "extra_flags": "-DSTM32L4 -DSTM32L496xx", "f_cpu": "80000000L", "mcu": "stm32l496zgt6p", "product_line": "STM32L496xx", diff --git a/boards/nucleo_l4r5zi.json b/boards/nucleo_l4r5zi.json index 8c9ec749..4894e7ca 100644 --- a/boards/nucleo_l4r5zi.json +++ b/boards/nucleo_l4r5zi.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32L4R5xx", + "extra_flags": "-DSTM32L4 -DSTM32L4R5xx", "f_cpu": "120000000L", "mcu": "stm32l4r5zit6", "product_line": "STM32L4R5xx", diff --git a/boards/nucleo_l552ze_q.json b/boards/nucleo_l552ze_q.json index 6adbd057..491377a8 100644 --- a/boards/nucleo_l552ze_q.json +++ b/boards/nucleo_l552ze_q.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m33", - "extra_flags": "-DSTM32L552xx", + "extra_flags": "-DSTM32L5 -DSTM32L552xx", "f_cpu": "80000000L", "mcu": "stm32l552zet6", "product_line": "STM32L552xx", diff --git a/boards/nucleo_u575zi_q.json b/boards/nucleo_u575zi_q.json index 05237460..ed2d669c 100644 --- a/boards/nucleo_u575zi_q.json +++ b/boards/nucleo_u575zi_q.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m33", - "extra_flags": "-DSTM32U5xx -DSTM32U575xx", + "extra_flags": "-DSTM32U5 -DSTM32U5xx -DSTM32U575xx", "f_cpu": "160000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/nucleo_wb55rg_p.json b/boards/nucleo_wb55rg_p.json index 05a82838..480cf6bb 100644 --- a/boards/nucleo_wb55rg_p.json +++ b/boards/nucleo_wb55rg_p.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32WB55xx", + "extra_flags": "-DSTM32WB -DSTM32WB55xx", "f_cpu": "64000000L", "mcu": "stm32wb55rg", "product_line": "STM32WB55xx", diff --git a/boards/nucleo_wl55jc.json b/boards/nucleo_wl55jc.json index 8c1f0665..d63ea28a 100644 --- a/boards/nucleo_wl55jc.json +++ b/boards/nucleo_wl55jc.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32WLxx -DSTM32WLE5xx", + "extra_flags": "-DSTM32WL -DSTM32WLxx -DSTM32WLE5xx", "f_cpu": "48000000L", "framework_extra_flags": { "arduino": "-DUSE_CM4_STARTUP_FILE" diff --git a/boards/olimex_f103.json b/boards/olimex_f103.json index 5388ecab..06a02c9f 100644 --- a/boards/olimex_f103.json +++ b/boards/olimex_f103.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m3", - "extra_flags": "-DSTM32F103xB", + "extra_flags": "-DSTM32F1 -DSTM32F103xB", "f_cpu": "72000000L", "mcu": "stm32f103rbt6", "product_line": "STM32F103xB", diff --git a/boards/olimexino.json b/boards/olimexino.json index eb176925..4ccdd6fa 100644 --- a/boards/olimexino.json +++ b/boards/olimexino.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m3", - "extra_flags": "-DSTM32F103xB", + "extra_flags": "-DSTM32F1 -DSTM32F103xB", "f_cpu": "72000000L", "mcu": "stm32f103rbt6", "variant": "STM32F1xx/F103R(8-B)T", diff --git a/boards/olimexino_stm32f3.json b/boards/olimexino_stm32f3.json index 98762412..9697334a 100644 --- a/boards/olimexino_stm32f3.json +++ b/boards/olimexino_stm32f3.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m3", - "extra_flags": "-DSTM32F303xC", + "extra_flags": "-DSTM32F3 -DSTM32F303xC", "f_cpu": "72000000L", "mcu": "stm32f303rct6", "variant": "STM32F3xx/F303R(B-C)T", diff --git a/boards/opta.json b/boards/opta.json index 525e3006..c6e28249 100644 --- a/boards/opta.json +++ b/boards/opta.json @@ -4,7 +4,7 @@ "ldscript": "linker_script.ld", "flash_layout": "50_50" }, - "extra_flags": "-DARDUINO_OPTA", + "extra_flags": "-DSTM32H7 -DARDUINO_OPTA", "core": "arduino", "cpu": "cortex-m7", "f_cpu": "480000000L", diff --git a/boards/opta_m4.json b/boards/opta_m4.json index 58d684ac..64f2936b 100644 --- a/boards/opta_m4.json +++ b/boards/opta_m4.json @@ -4,7 +4,7 @@ "ldscript": "linker_script.ld", "flash_layout": "50_50" }, - "extra_flags": "-DARDUINO_OPTA -DOPTA_PINS", + "extra_flags": "-DSTM32H7 -DARDUINO_OPTA -DOPTA_PINS", "core": "arduino", "cpu": "cortex-m4", "f_cpu": "480000000L", diff --git a/boards/piconomix_px_her0.json b/boards/piconomix_px_her0.json index 89b6d10a..ef060dd1 100644 --- a/boards/piconomix_px_her0.json +++ b/boards/piconomix_px_her0.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32L072xx", + "extra_flags": "-DSTM32L0 -DSTM32L072xx", "f_cpu": "32000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS -D__CORTEX_SC=0" diff --git a/boards/portenta_h7_m4.json b/boards/portenta_h7_m4.json index d06e5ff3..060f9d5b 100644 --- a/boards/portenta_h7_m4.json +++ b/boards/portenta_h7_m4.json @@ -4,7 +4,7 @@ "ldscript": "linker_script.ld", "flash_layout": "50_50" }, - "extra_flags": "-DARDUINO_PORTENTA_H7_M4 -DPORTENTA_H7_PINS", + "extra_flags": "-DSTM32H7 -DARDUINO_PORTENTA_H7_M4 -DPORTENTA_H7_PINS", "core": "arduino", "cpu": "cortex-m4", "f_cpu": "480000000L", diff --git a/boards/portenta_h7_m7.json b/boards/portenta_h7_m7.json index b6d17b48..630bab4e 100644 --- a/boards/portenta_h7_m7.json +++ b/boards/portenta_h7_m7.json @@ -4,7 +4,7 @@ "ldscript": "linker_script.ld", "flash_layout": "50_50" }, - "extra_flags": "-DARDUINO_PORTENTA_H7_M7", + "extra_flags": "-DSTM32H7 -DARDUINO_PORTENTA_H7_M7", "core": "arduino", "cpu": "cortex-m7", "f_cpu": "480000000L", diff --git a/boards/pybstick26_duino.json b/boards/pybstick26_duino.json index dcce1167..d2ec40d5 100644 --- a/boards/pybstick26_duino.json +++ b/boards/pybstick26_duino.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m0", - "extra_flags": "-DSTM32F072xB", + "extra_flags": "-DSTM32F0 -DSTM32F072xB", "f_cpu": "48000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/pybstick26_lite.json b/boards/pybstick26_lite.json index 154d055e..eae76993 100644 --- a/boards/pybstick26_lite.json +++ b/boards/pybstick26_lite.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F4xx -DSTM32F401xE", + "extra_flags": "-DSTM32F4 -DSTM32F4xx -DSTM32F401xE", "f_cpu": "84000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/pybstick26_pro.json b/boards/pybstick26_pro.json index 8e7ff1bb..a449c6d8 100644 --- a/boards/pybstick26_pro.json +++ b/boards/pybstick26_pro.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F412Rx", + "extra_flags": "-DSTM32F4 -DSTM32F412Rx", "f_cpu": "100000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/pybstick26_std.json b/boards/pybstick26_std.json index d784c6f4..4bebfbe4 100644 --- a/boards/pybstick26_std.json +++ b/boards/pybstick26_std.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F4xx -DSTM32F411xE", + "extra_flags": "-DSTM32F4 -DSTM32F4xx -DSTM32F411xE", "f_cpu": "100000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/rak811_tracker.json b/boards/rak811_tracker.json index e9a68eec..7566a855 100644 --- a/boards/rak811_tracker.json +++ b/boards/rak811_tracker.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m3", - "extra_flags": "-DSTM32L151xB", + "extra_flags": "-DSTM32L1 -DSTM32L151xB", "f_cpu": "32000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/rak811_tracker_32.json b/boards/rak811_tracker_32.json index a6551453..0c860ca8 100644 --- a/boards/rak811_tracker_32.json +++ b/boards/rak811_tracker_32.json @@ -4,7 +4,7 @@ "variant_h": "variant_RAK811_TRACKER.h" }, "cpu": "cortex-m3", - "extra_flags": "-DSTM32L151xB", + "extra_flags": "-DSTM32L1 -DSTM32L151xB", "f_cpu": "32000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/remram_v1.json b/boards/remram_v1.json index 76463edf..3283a4e8 100644 --- a/boards/remram_v1.json +++ b/boards/remram_v1.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m7", - "extra_flags": "-DSTM32F765xx", + "extra_flags": "-DSTM32F7 -DSTM32F765xx", "f_cpu": "216000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/rhf76_052.json b/boards/rhf76_052.json index 49336fc9..ff9f841f 100644 --- a/boards/rhf76_052.json +++ b/boards/rhf76_052.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32L0xx -DSTM32L051xx", + "extra_flags": "-DSTM32L0 -DSTM32L0xx -DSTM32L051xx", "f_cpu": "32000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS -D__CORTEX_SC=0" diff --git a/boards/rhombio_l476dmw1k.json b/boards/rhombio_l476dmw1k.json index d646bd45..2497151b 100644 --- a/boards/rhombio_l476dmw1k.json +++ b/boards/rhombio_l476dmw1k.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32L476xx", + "extra_flags": "-DSTM32L4 -DSTM32L476xx", "f_cpu": "80000000L", "mcu": "stm32l476vgt6", "product_line": "STM32L476xx" diff --git a/boards/rumba32_f446ve.json b/boards/rumba32_f446ve.json index 70c1b21a..c1b9b46c 100644 --- a/boards/rumba32_f446ve.json +++ b/boards/rumba32_f446ve.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F446xx", + "extra_flags": "-DSTM32F4 -DSTM32F446xx", "f_cpu": "180000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/sakuraio_evb_01.json b/boards/sakuraio_evb_01.json index e4a5b21b..81f02127 100644 --- a/boards/sakuraio_evb_01.json +++ b/boards/sakuraio_evb_01.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F411xE", + "extra_flags": "-DSTM32F4 -DSTM32F411xE", "f_cpu": "100000000L", "mcu": "stm32f411ret6", "product_line": "STM32F411xE" diff --git a/boards/seeedArchMax.json b/boards/seeedArchMax.json index c289be3c..244b4e08 100644 --- a/boards/seeedArchMax.json +++ b/boards/seeedArchMax.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F407xx", + "extra_flags": "-DSTM32F4 -DSTM32F407xx", "f_cpu": "168000000L", "mcu": "stm32f407vet6", "product_line": "STM32F407xx" diff --git a/boards/silica_sensor_node.json b/boards/silica_sensor_node.json index cbcd60fe..9a6f22ab 100644 --- a/boards/silica_sensor_node.json +++ b/boards/silica_sensor_node.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32L476xx", + "extra_flags": "-DSTM32L4 -DSTM32L476xx", "f_cpu": "80000000L", "mcu": "stm32l476jg", "product_line": "STM32L476xx" diff --git a/boards/sparkfun_micromod_f405.json b/boards/sparkfun_micromod_f405.json index 917088e0..7d3468b7 100644 --- a/boards/sparkfun_micromod_f405.json +++ b/boards/sparkfun_micromod_f405.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F405xx", + "extra_flags": "-DSTM32F4 -DSTM32F405xx", "f_cpu": "168000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS -DARDUINO_MICROMOD_F405" diff --git a/boards/steval_fcu001v1.json b/boards/steval_fcu001v1.json index f2b24513..53fda045 100644 --- a/boards/steval_fcu001v1.json +++ b/boards/steval_fcu001v1.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F4xx -DSTM32F401xC", + "extra_flags": "-DSTM32F4 -DSTM32F4xx -DSTM32F401xC", "f_cpu": "84000000L", "mcu": "stm32f401ccu6", "product_line": "STM32F401xC" diff --git a/boards/steval_mksboxv1.json b/boards/steval_mksboxv1.json index 66e17f5c..12de6a93 100644 --- a/boards/steval_mksboxv1.json +++ b/boards/steval_mksboxv1.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32L4xx -DSTM32L4R9xx", + "extra_flags": "-DSTM32L4 -DSTM32L4xx -DSTM32L4R9xx", "f_cpu": "120000000L", "mcu": "stm32l4r9zi", "product_line": "STM32L4R9xx", diff --git a/boards/stm32f4stamp.json b/boards/stm32f4stamp.json index 96fac05e..66e59abb 100644 --- a/boards/stm32f4stamp.json +++ b/boards/stm32f4stamp.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F405xx", + "extra_flags": "-DSTM32F4 -DSTM32F405xx", "f_cpu": "168000000L", "hwids": [ [ diff --git a/boards/thunder_pack.json b/boards/thunder_pack.json index 62848841..1e2f27d4 100644 --- a/boards/thunder_pack.json +++ b/boards/thunder_pack.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0plus", - "extra_flags": "-DSTM32L072xx -DARDUINO_THUNDERPACK_L072", + "extra_flags": "-DSTM32L0 -DSTM32L072xx -DARDUINO_THUNDERPACK_L072", "f_cpu": "32000000L", "framework_extra_flags": { "arduino": "-D__CORTEX_SC=0 -DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/thunder_pack_f411.json b/boards/thunder_pack_f411.json index d014e6b2..c2c18745 100644 --- a/boards/thunder_pack_f411.json +++ b/boards/thunder_pack_f411.json @@ -2,7 +2,7 @@ "build": { "core": "stm32", "cpu": "cortex-m4", - "extra_flags": "-DSTM32F4xx -DSTM32F411xE", + "extra_flags": "-DSTM32F4 -DSTM32F4xx -DSTM32F411xE", "f_cpu": "100000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/ublox_c030_r410m.json b/boards/ublox_c030_r410m.json index ec6fdbd6..d2d7cf3d 100644 --- a/boards/ublox_c030_r410m.json +++ b/boards/ublox_c030_r410m.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F437xx", + "extra_flags": "-DSTM32F4 -DSTM32F437xx", "f_cpu": "180000000L", "mcu": "stm32f437vg" }, diff --git a/boards/vake_v1.json b/boards/vake_v1.json index cf1cf79e..5e19f87c 100644 --- a/boards/vake_v1.json +++ b/boards/vake_v1.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F446xx", + "extra_flags": "-DSTM32F4 -DSTM32F446xx", "f_cpu": "180000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/weact_mini_h743vitx.json b/boards/weact_mini_h743vitx.json index b5fdf1e1..d731d61b 100644 --- a/boards/weact_mini_h743vitx.json +++ b/boards/weact_mini_h743vitx.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32H7xx -DSTM32H743xx", + "extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H743xx", "f_cpu": "480000000L", "framework_extra_flags": { "arduino": "-DARDUINO_WeActMiniH743VITX -DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/weact_mini_h750vbtx.json b/boards/weact_mini_h750vbtx.json index 7c58c100..a845c163 100644 --- a/boards/weact_mini_h750vbtx.json +++ b/boards/weact_mini_h750vbtx.json @@ -5,7 +5,7 @@ }, "core": "stm32", "cpu": "cortex-m7", - "extra_flags": "-DSTM32H7xx -DSTM32H750xx", + "extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H750xx", "f_cpu": "480000000L", "framework_extra_flags": { "arduino": "-DARDUINO_WeActMiniH750VBTX -DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/wio_3g.json b/boards/wio_3g.json index 8172a411..7551f038 100644 --- a/boards/wio_3g.json +++ b/boards/wio_3g.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m4", - "extra_flags": "-DSTM32F439xx", + "extra_flags": "-DSTM32F4 -DSTM32F439xx", "f_cpu": "180000000L", "mcu": "stm32f439vi", "product_line": "STM32F439xx" diff --git a/boards/wraith32_v1.json b/boards/wraith32_v1.json index 3f393f95..1ffb6817 100644 --- a/boards/wraith32_v1.json +++ b/boards/wraith32_v1.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m0", - "extra_flags": "-DSTM32F051x8", + "extra_flags": "-DSTM32F0 -DSTM32F051x8", "f_cpu": "48000000L", "framework_extra_flags": { "arduino": "-DCUSTOM_PERIPHERAL_PINS" diff --git a/boards/xdot_l151cc.json b/boards/xdot_l151cc.json index 2237c450..ff0daca9 100644 --- a/boards/xdot_l151cc.json +++ b/boards/xdot_l151cc.json @@ -1,7 +1,7 @@ { "build": { "cpu": "cortex-m3", - "extra_flags": "-DSTM32L151xC", + "extra_flags": "-DSTM32L1 -DSTM32L151xC", "f_cpu": "32000000L", "mcu": "stm32l151ccu6", "product_line": "STM32L151xC"