drivers/counter: stm32: Provide STM32 RTC driver using counter API
Provides a STM32 RTC driver using new counter API. Driver does not support wrap related functions (set, get, ..) Fixes #11373 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
7809970c8a
commit
458226e1f7
13 changed files with 450 additions and 4 deletions
|
@ -253,6 +253,7 @@
|
|||
#define CONFIG_RTC_0_IRQ_PRI DT_ST_STM32_RTC_40002800_IRQ_0_PRIORITY
|
||||
#define DT_RTC_0_IRQ DT_ST_STM32_RTC_40002800_IRQ_0
|
||||
#define CONFIG_RTC_0_NAME DT_ST_STM32_RTC_40002800_LABEL
|
||||
#define DT_RTC_0_NAME DT_ST_STM32_RTC_40002800_LABEL
|
||||
#define CONFIG_RTC_PRESCALER DT_ST_STM32_RTC_40002800_PRESCALER
|
||||
|
||||
#define DT_WDT_0_NAME DT_ST_STM32_WATCHDOG_0_LABEL
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
#include <stm32f3xx_ll_iwdg.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_RTC_STM32
|
||||
#if defined(CONFIG_RTC_STM32) || defined(CONFIG_COUNTER_RTC_STM32)
|
||||
#include <stm32f3xx_ll_rtc.h>
|
||||
#include <stm32f3xx_ll_exti.h>
|
||||
#include <stm32f3xx_ll_pwr.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue