This is an automated email from the ASF dual-hosted git repository.

kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 82c1446d7a874b99ce1cef0f04d1d56202857cb4
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Tue Sep 15 10:34:06 2026 +0200

    mcu/stm32h5: Set HSI divider
    
    STM32_CLOCK_HSIDIV was present in syscfg but never used.
    Now HSI divider can be changed previously it was set
    to 2 and HSI speed was limited to 32 MHz.
---
 hw/mcu/stm/stm32h5xx/src/clock_stm32h5xx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/mcu/stm/stm32h5xx/src/clock_stm32h5xx.c 
b/hw/mcu/stm/stm32h5xx/src/clock_stm32h5xx.c
index 57215de8e..33ced9a8f 100644
--- a/hw/mcu/stm/stm32h5xx/src/clock_stm32h5xx.c
+++ b/hw/mcu/stm/stm32h5xx/src/clock_stm32h5xx.c
@@ -113,6 +113,8 @@ SystemClock_Config(void)
         LL_RCC_HSI48_Enable();
     }
 
+    LL_RCC_HSI_SetDivider(MYNEWT_VAL_STM32_CLOCK_HSIDIV);
+
     LL_RCC_SetAHBPrescaler(MYNEWT_VAL_STM32_CLOCK_AHB_DIVIDER);
     LL_RCC_SetAPB1Prescaler(MYNEWT_VAL_STM32_CLOCK_APB1_DIVIDER);
     LL_RCC_SetAPB2Prescaler(MYNEWT_VAL_STM32_CLOCK_APB2_DIVIDER);

Reply via email to