diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/platforms/LPC11xx/hal_lld.h | 3 | ||||
-rw-r--r-- | os/hal/platforms/LPC13xx/hal_lld.h | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/os/hal/platforms/LPC11xx/hal_lld.h b/os/hal/platforms/LPC11xx/hal_lld.h index 521029139..15e9f85e8 100644 --- a/os/hal/platforms/LPC11xx/hal_lld.h +++ b/os/hal/platforms/LPC11xx/hal_lld.h @@ -183,9 +183,8 @@ /**
* @brief AHB clock.
*/
-#if (LPC11xx_SYSCLK <= 50000000) || defined(__DOXYGEN__)
#define LPC11xx_SYSCLK (LPC11xx_MAINCLK / LPC11xx_SYSABHCLK_DIV)
-#else
+#if LPC11xx_SYSCLK > 50000000
#error "AHB clock frequency out of the acceptable range (50MHz max)"
#endif
diff --git a/os/hal/platforms/LPC13xx/hal_lld.h b/os/hal/platforms/LPC13xx/hal_lld.h index fee051aee..abe15ada5 100644 --- a/os/hal/platforms/LPC13xx/hal_lld.h +++ b/os/hal/platforms/LPC13xx/hal_lld.h @@ -183,10 +183,9 @@ /**
* @brief AHB clock.
*/
-#if (LPC13xx_SYSCLK <= 50000000) || defined(__DOXYGEN__)
#define LPC13xx_SYSCLK (LPC13xx_MAINCLK / LPC13xx_SYSABHCLK_DIV)
-#else
-#error "AHB clock frequency out of the acceptable range (50MHz max)"
+#if LPC13xx_SYSCLK > 72000000
+#error "AHB clock frequency out of the acceptable range (72MHz max)"
#endif
/**
|