aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/platforms/STM32/hal_lld_f103.h4
-rw-r--r--os/hal/platforms/STM32/hal_lld_f105_f107.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/platforms/STM32/hal_lld_f103.h b/os/hal/platforms/STM32/hal_lld_f103.h
index 5149725ea..b58a6778e 100644
--- a/os/hal/platforms/STM32/hal_lld_f103.h
+++ b/os/hal/platforms/STM32/hal_lld_f103.h
@@ -336,8 +336,8 @@
#endif
/* AHB frequency check.*/
-#if STM32_HPRE > 72000000
-#error "STM32_HPRE exceeding maximum frequency (72MHz)"
+#if STM32_HCLK > 72000000
+#error "STM32_HCLK exceeding maximum frequency (72MHz)"
#endif
/**
diff --git a/os/hal/platforms/STM32/hal_lld_f105_f107.h b/os/hal/platforms/STM32/hal_lld_f105_f107.h
index 54b39de71..d68166ba0 100644
--- a/os/hal/platforms/STM32/hal_lld_f105_f107.h
+++ b/os/hal/platforms/STM32/hal_lld_f105_f107.h
@@ -429,8 +429,8 @@
#endif
/* AHB frequency check.*/
-#if STM32_HPRE > 72000000
-#error "STM32_HPRE exceeding maximum frequency (72MHz)"
+#if STM32_HCLK > 72000000
+#error "STM32_HCLK exceeding maximum frequency (72MHz)"
#endif
/**