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 94dfc88507bd057b0dc266689bcc29d04f710749 Author: Jerzy Kasenberg <[email protected]> AuthorDate: Tue Sep 15 10:39:41 2026 +0200 mcu/stm32h503: Update mcu_cli stm32h503 has even less peripherals then stm32h523. This exclude code that would not build for this MCU. Signed-off-by: Jerzy Kasenberg <[email protected]> --- hw/mcu/stm/stm32h5xx/mcu_cli/src/mcu_cli.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hw/mcu/stm/stm32h5xx/mcu_cli/src/mcu_cli.c b/hw/mcu/stm/stm32h5xx/mcu_cli/src/mcu_cli.c index 0c881a53f..c697f2b08 100644 --- a/hw/mcu/stm/stm32h5xx/mcu_cli/src/mcu_cli.c +++ b/hw/mcu/stm/stm32h5xx/mcu_cli/src/mcu_cli.c @@ -221,21 +221,28 @@ print_ahb2_peripherals(struct streamer *streamer, bool all) #endif } +#if defined(RCC_AHB4ENR_SDMMC1EN) +static const char bus_width[4] = "148?"; + uint32_t sdmmc_sck_freq(uint32_t f, SDMMC_TypeDef *sdmmc) { uint32_t div = ((sdmmc->CLKCR & SDMMC_CLKCR_CLKDIV_Msk) >> SDMMC_CLKCR_CLKDIV_Pos) * 2; if (div == 0) div = 1; return f / div; } +#endif static void print_ahb4_peripherals(struct streamer *streamer, bool all) { char buf[20]; char buf1[20]; - static const char bus_width[4] = "148?"; uint32_t freq; + (void)freq; + (void)buf; + (void)buf1; + #if defined(RCC_AHB4ENR_OTFDEC1EN) if (all || RCC->AHB4ENR & RCC_AHB4ENR_OTFDEC1EN) { streamer_printf(streamer, " OTFDEC1 %s\n", on_off_state(RCC->AHB4ENR & RCC_AHB4ENR_OTFDEC1EN)); @@ -448,7 +455,10 @@ print_apb1_peripherals(struct streamer *streamer, bool all) #endif } +#ifdef RCC_APB2ENR_SAI1EN static const char *sai_clk_src[] = {"pll1_q_ck", "pll2_p_ck", "pll3_p_ck", "AUDIOCLK", "per_ck"}; +#endif + static const char *usb_clk_src[] = {"---", "pll1_q_ck", "pll3_q_ck", "hsi48_ker_ck"}; static void
