From b28dad90fb7c3774d0adbb3899a8c211e7c72a79 Mon Sep 17 00:00:00 2001 From: Jerzy Kasenberg Date: Mon, 30 Oct 2023 07:52:57 +0100 Subject: [PATCH] hw/mcu/stm32h7: Remove STM32F4/7 specific code This remove function call to HAL_PWREx_EnableOverDrive() that is only available in F4 and F7 and not H7. --- hw/mcu/stm/stm32h7xx/src/clock_stm32h7xx.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/hw/mcu/stm/stm32h7xx/src/clock_stm32h7xx.c b/hw/mcu/stm/stm32h7xx/src/clock_stm32h7xx.c index 9611691cbd..9fc69eadbe 100644 --- a/hw/mcu/stm/stm32h7xx/src/clock_stm32h7xx.c +++ b/hw/mcu/stm/stm32h7xx/src/clock_stm32h7xx.c @@ -174,16 +174,6 @@ SystemClock_Config(void) assert(0); } -#if MYNEWT_VAL(STM32_CLOCK_ENABLE_OVERDRIVE) - /* - * Activate the Over-Drive mode - */ - status = HAL_PWREx_EnableOverDrive(); - if (status != HAL_OK) { - assert(0); - } -#endif - /* * Select PLL as system clock source and configure the HCLK, PCLK1 and * PCLK2 clocks dividers. HSI and HSE are also valid system clock sources,