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

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


The following commit(s) were added to refs/heads/master by this push:
     new 6e34478d1 mcu/stm: Enable HSI48 automatically for USB
6e34478d1 is described below

commit 6e34478d1923f1da67f4c9e43d4e60212c1359a3
Author: Wiktor Kwiatkowski <[email protected]>
AuthorDate: Wed Sep 30 15:22:28 2026 +0200

    mcu/stm: Enable HSI48 automatically for USB
    
    HSI48 is now turned on by default when TinyUSB is active,
    so targets no longer need to enable it explicitly.
---
 hw/mcu/stm/stm32h7xx/syscfg.yml | 3 +++
 hw/mcu/stm/stm32u5xx/syscfg.yml | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/hw/mcu/stm/stm32h7xx/syscfg.yml b/hw/mcu/stm/stm32h7xx/syscfg.yml
index 68e893bf7..f3cf1f0c0 100644
--- a/hw/mcu/stm/stm32h7xx/syscfg.yml
+++ b/hw/mcu/stm/stm32h7xx/syscfg.yml
@@ -154,5 +154,8 @@ syscfg.vals:
     MCU_RAM_START: 0x24000000
     MCU_RAM_SIZE: 0x1C000
 
+syscfg.vals.TINYUSB:
+    STM32_CLOCK_HSI48: 1
+
 syscfg.vals.STM32_CLOCK_HSI48:
     STM32_CLOCK_USBSEL: RCC_USBCLKSOURCE_HSI48
diff --git a/hw/mcu/stm/stm32u5xx/syscfg.yml b/hw/mcu/stm/stm32u5xx/syscfg.yml
index 33d27386a..e7a115d65 100644
--- a/hw/mcu/stm/stm32u5xx/syscfg.yml
+++ b/hw/mcu/stm/stm32u5xx/syscfg.yml
@@ -159,3 +159,5 @@ syscfg.defs:
         description: Value read from erased flash.
         value: 0xff
 
+syscfg.vals.TINYUSB:
+    STM32_CLOCK_HSI48: 1

Reply via email to