drivers/rtc: Enable RTC driver for STM32F3 series

Enable RTC driver for STM32F3 series.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
This commit is contained in:
Yannis Damigos 2018-08-17 20:06:22 +03:00 committed by Kumar Gala
commit 0c1725116a
4 changed files with 13 additions and 2 deletions

View file

@ -15,7 +15,7 @@ config RTC_STM32
select USE_STM32_LL_EXTI
select NEWLIB_LIBC
help
Build RTC driver for STM32 SoCs. Tested on STM32 F4, L4 series.
Build RTC driver for STM32 SoCs. Tested on STM32 F3, F4, L4 series.
choice RTC_STM32_CLOCK_SRC
bool "RTC clock source"

View file

@ -19,7 +19,7 @@
#if defined(CONFIG_SOC_SERIES_STM32L4X)
#define EXTI_LINE LL_EXTI_LINE_18
#elif defined(CONFIG_SOC_SERIES_STM32F4X)
#elif defined(CONFIG_SOC_SERIES_STM32F4X) || defined(CONFIG_SOC_SERIES_STM32F3X)
#define EXTI_LINE LL_EXTI_LINE_17
#endif

View file

@ -110,4 +110,9 @@
#define CONFIG_PWM_STM32_20_DEV_NAME ST_STM32_PWM_40015000_PWM_LABEL
#define CONFIG_PWM_STM32_20_PRESCALER ST_STM32_PWM_40015000_PWM_ST_PRESCALER
#define CONFIG_RTC_0_BASE_ADDRESS ST_STM32_RTC_40002800_BASE_ADDRESS
#define CONFIG_RTC_0_IRQ_PRI ST_STM32_RTC_40002800_IRQ_0_PRIORITY
#define CONFIG_RTC_0_IRQ ST_STM32_RTC_40002800_IRQ_0
#define CONFIG_RTC_0_NAME ST_STM32_RTC_40002800_LABEL
#define CONFIG_RTC_PRESCALER ST_STM32_RTC_40002800_PRESCALER
/* End of SoC Level DTS fixup file */

View file

@ -56,6 +56,12 @@
#include <stm32f3xx_ll_iwdg.h>
#endif
#ifdef CONFIG_RTC_STM32
#include <stm32f3xx_ll_rtc.h>
#include <stm32f3xx_ll_exti.h>
#include <stm32f3xx_ll_pwr.h>
#endif
#endif /* !_ASMLANGUAGE */
#endif /* _STM32F3_SOC_H_ */