aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/platforms/STM32/hal_lld_f103.h4
-rw-r--r--os/hal/platforms/STM32/hal_lld_f105_f107.h4
-rw-r--r--readme.txt1
3 files changed, 5 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
/**
diff --git a/readme.txt b/readme.txt
index aded26ed0..2a16c4158 100644
--- a/readme.txt
+++ b/readme.txt
@@ -62,6 +62,7 @@
*****************************************************************************
*** 2.1.2 ***
+- FIX: Fixed wrong check on STM32_HCLK (bug 3044758)(backported to 2.0.3).
- FIX: Fixed wrong condition check in STM32 PWM driver (bug 3041414)
(backported in 2.0.3).
- FIX: Corrupted IRQ stack in Cortex-Mx port (bug 3041117)(backported to