File tree 4 files changed +13
-2
lines changed
4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ config RTC_STM32
15
15
select USE_STM32_LL_EXTI
16
16
select NEWLIB_LIBC
17
17
help
18
- Build RTC driver for STM32 SoCs. Tested on STM32 F4, L4 series.
18
+ Build RTC driver for STM32 SoCs. Tested on STM32 F3, F4, L4 series.
19
19
20
20
choice RTC_STM32_CLOCK_SRC
21
21
bool "RTC clock source"
Original file line number Diff line number Diff line change 19
19
20
20
#if defined(CONFIG_SOC_SERIES_STM32L4X )
21
21
#define EXTI_LINE LL_EXTI_LINE_18
22
- #elif defined(CONFIG_SOC_SERIES_STM32F4X )
22
+ #elif defined(CONFIG_SOC_SERIES_STM32F4X ) || defined( CONFIG_SOC_SERIES_STM32F3X )
23
23
#define EXTI_LINE LL_EXTI_LINE_17
24
24
#endif
25
25
Original file line number Diff line number Diff line change 110
110
#define CONFIG_PWM_STM32_20_DEV_NAME ST_STM32_PWM_40015000_PWM_LABEL
111
111
#define CONFIG_PWM_STM32_20_PRESCALER ST_STM32_PWM_40015000_PWM_ST_PRESCALER
112
112
113
+ #define CONFIG_RTC_0_BASE_ADDRESS ST_STM32_RTC_40002800_BASE_ADDRESS
114
+ #define CONFIG_RTC_0_IRQ_PRI ST_STM32_RTC_40002800_IRQ_0_PRIORITY
115
+ #define CONFIG_RTC_0_IRQ ST_STM32_RTC_40002800_IRQ_0
116
+ #define CONFIG_RTC_0_NAME ST_STM32_RTC_40002800_LABEL
117
+ #define CONFIG_RTC_PRESCALER ST_STM32_RTC_40002800_PRESCALER
113
118
/* End of SoC Level DTS fixup file */
Original file line number Diff line number Diff line change 56
56
#include <stm32f3xx_ll_iwdg.h>
57
57
#endif
58
58
59
+ #ifdef CONFIG_RTC_STM32
60
+ #include <stm32f3xx_ll_rtc.h>
61
+ #include <stm32f3xx_ll_exti.h>
62
+ #include <stm32f3xx_ll_pwr.h>
63
+ #endif
64
+
59
65
#endif /* !_ASMLANGUAGE */
60
66
61
67
#endif /* _STM32F3_SOC_H_ */
You can’t perform that action at this time.
0 commit comments