RTC. APB1 clock check moved to rtc_lld.h
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4019 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
fc972f48d6
commit
4769c8ec62
|
@ -87,6 +87,10 @@
|
||||||
#define RTC_USE_INTERRUPTS FALSE
|
#define RTC_USE_INTERRUPTS FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if STM32_PCLK1 < (STM32_RTCCLK * 7)
|
||||||
|
#error "STM32_PCLK1 frequency is too low to handle RTC without ugly workaround"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver data structures and types. */
|
/* Driver data structures and types. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -1103,9 +1103,6 @@
|
||||||
#if STM32_PCLK1 > STM32_PCLK1_MAX
|
#if STM32_PCLK1 > STM32_PCLK1_MAX
|
||||||
#error "STM32_PCLK1 exceeding maximum frequency (STM32_PCLK1_MAX)"
|
#error "STM32_PCLK1 exceeding maximum frequency (STM32_PCLK1_MAX)"
|
||||||
#endif
|
#endif
|
||||||
#if STM32_PCLK1 < (STM32_RTCCLK * 7)
|
|
||||||
#error "STM32_PCLK1 frequency is too low to handle RTC without ugly workaround"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief APB2 frequency.
|
* @brief APB2 frequency.
|
||||||
|
|
Loading…
Reference in New Issue