drivers/rtc: Enable RTC driver for STM32F4 series
Enable RTC driver for STM32F4 series. Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
This commit is contained in:
parent
73e8454d17
commit
10c763cfbc
6 changed files with 29 additions and 11 deletions
|
@ -72,4 +72,11 @@ config USB_DC_STM32
|
|||
|
||||
endif # USB
|
||||
|
||||
if RTC
|
||||
|
||||
config RTC_STM32
|
||||
def_bool y
|
||||
|
||||
endif # RTC
|
||||
|
||||
endif # SOC_FAMILY_STM32
|
||||
|
|
|
@ -141,4 +141,10 @@
|
|||
#define CONFIG_PWM_STM32_14_DEV_NAME ST_STM32_PWM_40002000_PWM_LABEL
|
||||
#define CONFIG_PWM_STM32_14_PRESCALER ST_STM32_PWM_40002000_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 */
|
||||
|
|
|
@ -59,6 +59,12 @@
|
|||
#include <stm32f4xx_ll_iwdg.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_RTC_STM32
|
||||
#include <stm32f4xx_ll_rtc.h>
|
||||
#include <stm32f4xx_ll_exti.h>
|
||||
#include <stm32f4xx_ll_pwr.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32F4_SOC_H_ */
|
||||
|
|
|
@ -27,11 +27,4 @@ config ENTROPY_STM32_RNG
|
|||
|
||||
endif # ENTROPY_GENERATOR
|
||||
|
||||
if RTC
|
||||
|
||||
config RTC_STM32
|
||||
default y
|
||||
|
||||
endif # RTC
|
||||
|
||||
endif # SOC_SERIES_STM32L4X
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue