--- bsps/arm/stm32h7/start/bspstarthooks.c | 2 +- spec/build/bsps/arm/stm32h7/grp.yml | 2 ++ spec/build/bsps/arm/stm32h7/optpwrsupply.yml | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 spec/build/bsps/arm/stm32h7/optpwrsupply.yml
diff --git a/bsps/arm/stm32h7/start/bspstarthooks.c b/bsps/arm/stm32h7/start/bspstarthooks.c index dcd4b0bef2..ef26af5eba 100644 --- a/bsps/arm/stm32h7/start/bspstarthooks.c +++ b/bsps/arm/stm32h7/start/bspstarthooks.c @@ -43,7 +43,7 @@ void HAL_MspInit(void) static void init_power(void) { - HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY); + HAL_PWREx_ConfigSupply(STM32H7_PWR_SUPPLY); __HAL_PWR_VOLTAGESCALING_CONFIG(stm32h7_config_pwr_regulator_voltagescaling); while (!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) { diff --git a/spec/build/bsps/arm/stm32h7/grp.yml b/spec/build/bsps/arm/stm32h7/grp.yml index 5e26a3e072..7b001e3701 100644 --- a/spec/build/bsps/arm/stm32h7/grp.yml +++ b/spec/build/bsps/arm/stm32h7/grp.yml @@ -79,6 +79,8 @@ links: uid: optmemsrambackupsz - role: build-dependency uid: optprintkinstance +- role: build-dependency + uid: optpwrsupply - role: build-dependency uid: optusart3gpiopins - role: build-dependency diff --git a/spec/build/bsps/arm/stm32h7/optpwrsupply.yml b/spec/build/bsps/arm/stm32h7/optpwrsupply.yml new file mode 100644 index 0000000000..d7eeb63906 --- /dev/null +++ b/spec/build/bsps/arm/stm32h7/optpwrsupply.yml @@ -0,0 +1,19 @@ +actions: +- get-string: null +- define-unquoted: null +build-type: option +default: PWR_LDO_SUPPLY +default-by-variant: +- value: PWR_DIRECT_SMPS_SUPPLY + variants: + - arm/stm32h7b3i-dk +enabled-by: true +format: '{}' +links: [] +name: STM32H7_PWR_SUPPLY +description: | + Board power supply mechanism configuration. WARNING: wrong configuration here may result in your board being unaccessible using ST-Link interface! Please consult board datasheet for more information about various power supply options and about how to fix possible misconfiguration. +type: build +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2022 Karel Gardas <karel@functional.vision> -- 2.25.1 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel