Removed even more redundant checks.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14313 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
d8c2249c10
commit
e337e4c345
|
@ -592,21 +592,6 @@
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* Board files sanity checks.
|
|
||||||
*/
|
|
||||||
#if !defined(STM32_LSECLK)
|
|
||||||
#error "STM32_LSECLK not defined in board.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(STM32_LSEDRV)
|
|
||||||
#error "STM32_LSEDRV not defined in board.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(STM32_HSECLK)
|
|
||||||
#error "STM32_HSECLK not defined in board.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Voltage related limits.*/
|
/* Voltage related limits.*/
|
||||||
#if (STM32_VOS == STM32_VOS_RANGE0) || defined(__DOXYGEN__)
|
#if (STM32_VOS == STM32_VOS_RANGE0) || defined(__DOXYGEN__)
|
||||||
/**
|
/**
|
||||||
|
@ -816,7 +801,8 @@
|
||||||
/*
|
/*
|
||||||
* Platform HSI16-related checks.
|
* Platform HSI16-related checks.
|
||||||
*/
|
*/
|
||||||
#if !STM32_HSI16_ENABLED
|
#if STM32_HSI16_ENABLED
|
||||||
|
#else /* !STM32_HSI16_ENABLED */
|
||||||
|
|
||||||
#if STM32_SW == STM32_SW_HSI16
|
#if STM32_SW == STM32_SW_HSI16
|
||||||
#error "HSI16 not enabled, required by STM32_SW"
|
#error "HSI16 not enabled, required by STM32_SW"
|
||||||
|
@ -940,7 +926,8 @@
|
||||||
/*
|
/*
|
||||||
* Platform HSE-related checks.
|
* Platform HSE-related checks.
|
||||||
*/
|
*/
|
||||||
#if !STM32_HSE_ENABLED
|
#if STM32_HSE_ENABLED
|
||||||
|
#else /* !STM32_HSE_ENABLED */
|
||||||
|
|
||||||
#if STM32_SW == STM32_SW_HSE
|
#if STM32_SW == STM32_SW_HSE
|
||||||
#error "HSE not enabled, required by STM32_SW"
|
#error "HSE not enabled, required by STM32_SW"
|
||||||
|
@ -999,7 +986,8 @@
|
||||||
/*
|
/*
|
||||||
* Platform LSI-related checks.
|
* Platform LSI-related checks.
|
||||||
*/
|
*/
|
||||||
#if !STM32_LSI_ENABLED
|
#if STM32_LSI_ENABLED
|
||||||
|
#else /* !STM32_LSI_ENABLED */
|
||||||
|
|
||||||
#if HAL_USE_RTC && (STM32_RTCSEL == STM32_RTCSEL_LSI)
|
#if HAL_USE_RTC && (STM32_RTCSEL == STM32_RTCSEL_LSI)
|
||||||
#error "LSI not enabled, required by STM32_RTCSEL"
|
#error "LSI not enabled, required by STM32_RTCSEL"
|
||||||
|
@ -1018,7 +1006,9 @@
|
||||||
/*
|
/*
|
||||||
* Platform LSE-related checks.
|
* Platform LSE-related checks.
|
||||||
*/
|
*/
|
||||||
#if !STM32_LSE_ENABLED
|
#if STM32_LSE_ENABLED
|
||||||
|
#else /* !STM32_LSE_ENABLED */
|
||||||
|
|
||||||
#if STM32_RTCSEL == STM32_RTCSEL_LSE
|
#if STM32_RTCSEL == STM32_RTCSEL_LSE
|
||||||
#error "LSE not enabled, required by STM32_RTCSEL"
|
#error "LSE not enabled, required by STM32_RTCSEL"
|
||||||
#endif
|
#endif
|
||||||
|
@ -1034,6 +1024,7 @@
|
||||||
#if STM32_MSIPLL_ENABLED == TRUE
|
#if STM32_MSIPLL_ENABLED == TRUE
|
||||||
#error "LSE not enabled, required by STM32_MSIPLL_ENABLED"
|
#error "LSE not enabled, required by STM32_MSIPLL_ENABLED"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* !STM32_LSE_ENABLED */
|
#endif /* !STM32_LSE_ENABLED */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue