From f0e860ed98f53f647b3edd4605e315f377fdd285 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 15 May 2021 12:33:47 +0000 Subject: [PATCH] Renamed in hal_lld_clock_check_tree(). git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14376 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/STM32G4xx/hal_lld.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/os/hal/ports/STM32/STM32G4xx/hal_lld.c b/os/hal/ports/STM32/STM32G4xx/hal_lld.c index ac89d56c9..809e036f2 100644 --- a/os/hal/ports/STM32/STM32G4xx/hal_lld.c +++ b/os/hal/ports/STM32/STM32G4xx/hal_lld.c @@ -216,7 +216,7 @@ __STATIC_INLINE void bd_init(void) { * * @notapi */ -bool hal_clock_check_tree(const halclkcfg_t *ccp) { +bool hal_lld_clock_check_tree(const halclkcfg_t *ccp) { static const uint32_t hprediv[16] = {1U, 1U, 1U, 1U, 1U, 1U, 1U, 1U, 2U, 4U, 8U, 16U, 64U, 128U, 256U, 512U}; static const uint32_t pprediv[16] = {1U, 1U, 1U, 1U, 2U, 4U, 8U, 16U}; @@ -516,7 +516,7 @@ bool hal_lld_clock_raw_switch(const halclkcfg_t *ccp) { void hal_lld_init(void) { #if defined(HAL_LLD_USE_CLOCK_MANAGEMENT) - if (hal_clock_check_tree(&hal_clkcfg_default)) { + if (hal_lld_clock_check_tree(&hal_clkcfg_default)) { osalSysHalt("clkcfg"); } #endif @@ -683,7 +683,7 @@ void stm32_clock_init(void) { */ bool hal_lld_clock_switch_mode(const halclkcfg_t *ccp) { - if (hal_clock_check_tree(ccp)) { + if (hal_lld_clock_check_tree(ccp)) { return true; }