You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2021/08/27 06:27:20 UTC
[mynewt-core] 02/02: stm32: Enable ST HAL RTC support in some BSPs
This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 1a1c91635088d4f4f9f2bb35c728e4a5e6a2d819
Author: Jerzy Kasenberg <je...@gmail.com>
AuthorDate: Thu Nov 19 00:08:12 2020 +0100
stm32: Enable ST HAL RTC support in some BSPs
With RTC base tickles sleep there is need to enable
ST HAL RTC support.
---
hw/bsp/black_vet6/include/bsp/stm32f4xx_hal_conf.h | 2 +-
hw/bsp/nucleo-f030r8/include/bsp/stm32f0xx_hal_conf.h | 2 +-
hw/bsp/nucleo-f072rb/include/bsp/stm32f0xx_hal_conf.h | 2 +-
hw/bsp/nucleo-f401re/include/bsp/stm32f4xx_hal_conf.h | 2 +-
hw/bsp/nucleo-f411re/include/bsp/stm32f4xx_hal_conf.h | 2 +-
hw/bsp/nucleo-f413zh/include/bsp/stm32f4xx_hal_conf.h | 2 +-
hw/bsp/nucleo-f439zi/include/bsp/stm32f4xx_hal_conf.h | 2 +-
hw/bsp/nucleo-l073rz/include/bsp/stm32l0xx_hal_conf.h | 1 +
hw/bsp/nucleo-l476rg/include/bsp/stm32l4xx_hal_conf.h | 2 +-
hw/bsp/olimex_stm32-e407_devboard/include/bsp/stm32f4xx_hal_conf.h | 1 +
hw/bsp/p-nucleo-wb55/include/bsp/stm32wbxx_hal_conf.h | 2 +-
hw/bsp/stm32f411discovery/include/bsp/stm32f4xx_hal_conf.h | 1 +
hw/bsp/stm32f429discovery/include/bsp/stm32f4xx_hal_conf.h | 1 +
hw/bsp/stm32f4discovery/include/bsp/stm32f4xx_hal_conf.h | 1 +
hw/bsp/stm32l152discovery/include/bsp/stm32l1xx_hal_conf.h | 2 +-
15 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/hw/bsp/black_vet6/include/bsp/stm32f4xx_hal_conf.h b/hw/bsp/black_vet6/include/bsp/stm32f4xx_hal_conf.h
index 2869e84..f978f82 100644
--- a/hw/bsp/black_vet6/include/bsp/stm32f4xx_hal_conf.h
+++ b/hw/bsp/black_vet6/include/bsp/stm32f4xx_hal_conf.h
@@ -77,7 +77,6 @@
#define HAL_LTDC_MODULE_ENABLED
#define HAL_PWR_MODULE_ENABLED
#define HAL_RCC_MODULE_ENABLED
-#define HAL_RTC_MODULE_ENABLED
/* #define HAL_SAI_MODULE_ENABLED */
#define HAL_SD_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
@@ -104,6 +103,7 @@
#define HAL_SPI_MODULE_ENABLED
#define HAL_TIM_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
+#define HAL_RTC_MODULE_ENABLED
#endif
/* ########################## HSE/HSI Values adaptation ##################### */
diff --git a/hw/bsp/nucleo-f030r8/include/bsp/stm32f0xx_hal_conf.h b/hw/bsp/nucleo-f030r8/include/bsp/stm32f0xx_hal_conf.h
index 759c73c..e22c43f 100644
--- a/hw/bsp/nucleo-f030r8/include/bsp/stm32f0xx_hal_conf.h
+++ b/hw/bsp/nucleo-f030r8/include/bsp/stm32f0xx_hal_conf.h
@@ -70,7 +70,7 @@
/* #define HAL_PCD_MODULE_ENABLED */
/* #define HAL_PWR_MODULE_ENABLED */
#define HAL_RCC_MODULE_ENABLED
-/* #define HAL_RTC_MODULE_ENABLED */
+#define HAL_RTC_MODULE_ENABLED
/* #define HAL_SMARTCARD_MODULE_ENABLED */
/* #define HAL_SMBUS_MODULE_ENABLED */
#define HAL_SPI_MODULE_ENABLED
diff --git a/hw/bsp/nucleo-f072rb/include/bsp/stm32f0xx_hal_conf.h b/hw/bsp/nucleo-f072rb/include/bsp/stm32f0xx_hal_conf.h
index 4a00682..5d16c4a 100644
--- a/hw/bsp/nucleo-f072rb/include/bsp/stm32f0xx_hal_conf.h
+++ b/hw/bsp/nucleo-f072rb/include/bsp/stm32f0xx_hal_conf.h
@@ -70,7 +70,7 @@
/* #define HAL_PCD_MODULE_ENABLED */
/* #define HAL_PWR_MODULE_ENABLED */
#define HAL_RCC_MODULE_ENABLED
-/* #define HAL_RTC_MODULE_ENABLED */
+#define HAL_RTC_MODULE_ENABLED
/* #define HAL_SMARTCARD_MODULE_ENABLED */
/* #define HAL_SMBUS_MODULE_ENABLED */
#define HAL_SPI_MODULE_ENABLED
diff --git a/hw/bsp/nucleo-f401re/include/bsp/stm32f4xx_hal_conf.h b/hw/bsp/nucleo-f401re/include/bsp/stm32f4xx_hal_conf.h
index 2a926ea..bfc3ed1 100644
--- a/hw/bsp/nucleo-f401re/include/bsp/stm32f4xx_hal_conf.h
+++ b/hw/bsp/nucleo-f401re/include/bsp/stm32f4xx_hal_conf.h
@@ -78,7 +78,6 @@
#define HAL_PWR_MODULE_ENABLED
#define HAL_RCC_MODULE_ENABLED
#define HAL_RNG_MODULE_ENABLED
-#define HAL_RTC_MODULE_ENABLED
#define HAL_SAI_MODULE_ENABLED
#define HAL_SD_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
@@ -102,6 +101,7 @@
#define HAL_SPI_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
#define HAL_TIM_MODULE_ENABLED
+#define HAL_RTC_MODULE_ENABLED
#endif
/* ########################## HSE/HSI Values adaptation ##################### */
diff --git a/hw/bsp/nucleo-f411re/include/bsp/stm32f4xx_hal_conf.h b/hw/bsp/nucleo-f411re/include/bsp/stm32f4xx_hal_conf.h
index 61741b8..75f57c1 100644
--- a/hw/bsp/nucleo-f411re/include/bsp/stm32f4xx_hal_conf.h
+++ b/hw/bsp/nucleo-f411re/include/bsp/stm32f4xx_hal_conf.h
@@ -78,7 +78,6 @@
#define HAL_PWR_MODULE_ENABLED
#define HAL_RCC_MODULE_ENABLED
#define HAL_RNG_MODULE_ENABLED
-#define HAL_RTC_MODULE_ENABLED
/* #define HAL_SAI_MODULE_ENABLED */
#define HAL_SD_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
@@ -101,6 +100,7 @@
#define HAL_RCC_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
+#define HAL_RTC_MODULE_ENABLED
#endif
/* ########################## HSE/HSI Values adaptation ##################### */
diff --git a/hw/bsp/nucleo-f413zh/include/bsp/stm32f4xx_hal_conf.h b/hw/bsp/nucleo-f413zh/include/bsp/stm32f4xx_hal_conf.h
index 1c23fae..7b044c6 100644
--- a/hw/bsp/nucleo-f413zh/include/bsp/stm32f4xx_hal_conf.h
+++ b/hw/bsp/nucleo-f413zh/include/bsp/stm32f4xx_hal_conf.h
@@ -78,7 +78,6 @@
#define HAL_PWR_MODULE_ENABLED
#define HAL_RCC_MODULE_ENABLED
#define HAL_RNG_MODULE_ENABLED
-#define HAL_RTC_MODULE_ENABLED
/* #define HAL_SAI_MODULE_ENABLED */
#define HAL_SD_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
@@ -101,6 +100,7 @@
#define HAL_RCC_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
+#define HAL_RTC_MODULE_ENABLED
#endif
/* ########################## HSE/HSI Values adaptation ##################### */
diff --git a/hw/bsp/nucleo-f439zi/include/bsp/stm32f4xx_hal_conf.h b/hw/bsp/nucleo-f439zi/include/bsp/stm32f4xx_hal_conf.h
index 848b9f2..03f61c7 100644
--- a/hw/bsp/nucleo-f439zi/include/bsp/stm32f4xx_hal_conf.h
+++ b/hw/bsp/nucleo-f439zi/include/bsp/stm32f4xx_hal_conf.h
@@ -74,7 +74,6 @@
#define HAL_IWDG_MODULE_ENABLED
#define HAL_LTDC_MODULE_ENABLED
#define HAL_RCC_MODULE_ENABLED
-#define HAL_RTC_MODULE_ENABLED
/* #define HAL_SAI_MODULE_ENABLED */
#define HAL_SD_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
@@ -102,6 +101,7 @@
#define HAL_PWR_MODULE_ENABLED
#define HAL_HASH_MODULE_ENABLED
#define HAL_ETH_MODULE_ENABLED
+#define HAL_RTC_MODULE_ENABLED
#endif
/* ########################## HSE/HSI Values adaptation ##################### */
diff --git a/hw/bsp/nucleo-l073rz/include/bsp/stm32l0xx_hal_conf.h b/hw/bsp/nucleo-l073rz/include/bsp/stm32l0xx_hal_conf.h
index 6df0257..cee9979 100644
--- a/hw/bsp/nucleo-l073rz/include/bsp/stm32l0xx_hal_conf.h
+++ b/hw/bsp/nucleo-l073rz/include/bsp/stm32l0xx_hal_conf.h
@@ -83,6 +83,7 @@
#define HAL_I2C_MODULE_ENABLED
#define HAL_DMA_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
+#define HAL_RTC_MODULE_ENABLED
/* ########################## Oscillator Values adaptation ####################*/
/**
diff --git a/hw/bsp/nucleo-l476rg/include/bsp/stm32l4xx_hal_conf.h b/hw/bsp/nucleo-l476rg/include/bsp/stm32l4xx_hal_conf.h
index cbe064d..ccd27e3 100644
--- a/hw/bsp/nucleo-l476rg/include/bsp/stm32l4xx_hal_conf.h
+++ b/hw/bsp/nucleo-l476rg/include/bsp/stm32l4xx_hal_conf.h
@@ -75,7 +75,6 @@
#define HAL_QSPI_MODULE_ENABLED
#define HAL_RCC_MODULE_ENABLED
#define HAL_RNG_MODULE_ENABLED
-#define HAL_RTC_MODULE_ENABLED
#define HAL_SAI_MODULE_ENABLED
#define HAL_SD_MODULE_ENABLED
#define HAL_SMARTCARD_MODULE_ENABLED
@@ -98,6 +97,7 @@
#define HAL_I2C_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
#define HAL_TIM_MODULE_ENABLED
+#define HAL_RTC_MODULE_ENABLED
/* ########################## Oscillator Values adaptation ####################*/
/**
diff --git a/hw/bsp/olimex_stm32-e407_devboard/include/bsp/stm32f4xx_hal_conf.h b/hw/bsp/olimex_stm32-e407_devboard/include/bsp/stm32f4xx_hal_conf.h
index c175908..5174b1f 100644
--- a/hw/bsp/olimex_stm32-e407_devboard/include/bsp/stm32f4xx_hal_conf.h
+++ b/hw/bsp/olimex_stm32-e407_devboard/include/bsp/stm32f4xx_hal_conf.h
@@ -104,6 +104,7 @@
#define HAL_SPI_MODULE_ENABLED
#define HAL_TIM_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
+#define HAL_RTC_MODULE_ENABLED
#endif
/* ########################## HSE/HSI Values adaptation ##################### */
diff --git a/hw/bsp/p-nucleo-wb55/include/bsp/stm32wbxx_hal_conf.h b/hw/bsp/p-nucleo-wb55/include/bsp/stm32wbxx_hal_conf.h
index 2ffef4c..cfcb93e 100644
--- a/hw/bsp/p-nucleo-wb55/include/bsp/stm32wbxx_hal_conf.h
+++ b/hw/bsp/p-nucleo-wb55/include/bsp/stm32wbxx_hal_conf.h
@@ -46,7 +46,7 @@
/*#define HAL_PCD_MODULE_ENABLED */
/*#define HAL_PKA_MODULE_ENABLED */
/*#define HAL_QSPI_MODULE_ENABLED */
-/*#define HAL_RTC_MODULE_ENABLED */
+#define HAL_RTC_MODULE_ENABLED
/*#define HAL_SAI_MODULE_ENABLED */
/*#define HAL_SMBUS_MODULE_ENABLED */
/*#define HAL_SMARTCARD_MODULE_ENABLED */
diff --git a/hw/bsp/stm32f411discovery/include/bsp/stm32f4xx_hal_conf.h b/hw/bsp/stm32f411discovery/include/bsp/stm32f4xx_hal_conf.h
index 61741b8..45f7c8b 100644
--- a/hw/bsp/stm32f411discovery/include/bsp/stm32f4xx_hal_conf.h
+++ b/hw/bsp/stm32f411discovery/include/bsp/stm32f4xx_hal_conf.h
@@ -101,6 +101,7 @@
#define HAL_RCC_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
+#define HAL_RTC_MODULE_ENABLED
#endif
/* ########################## HSE/HSI Values adaptation ##################### */
diff --git a/hw/bsp/stm32f429discovery/include/bsp/stm32f4xx_hal_conf.h b/hw/bsp/stm32f429discovery/include/bsp/stm32f4xx_hal_conf.h
index 309c70f..84acfff 100644
--- a/hw/bsp/stm32f429discovery/include/bsp/stm32f4xx_hal_conf.h
+++ b/hw/bsp/stm32f429discovery/include/bsp/stm32f4xx_hal_conf.h
@@ -102,6 +102,7 @@
#define HAL_RCC_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
+#define HAL_RTC_MODULE_ENABLED
#endif
/* ########################## HSE/HSI Values adaptation ##################### */
diff --git a/hw/bsp/stm32f4discovery/include/bsp/stm32f4xx_hal_conf.h b/hw/bsp/stm32f4discovery/include/bsp/stm32f4xx_hal_conf.h
index 15d4ad7..bd8e42e 100644
--- a/hw/bsp/stm32f4discovery/include/bsp/stm32f4xx_hal_conf.h
+++ b/hw/bsp/stm32f4discovery/include/bsp/stm32f4xx_hal_conf.h
@@ -101,6 +101,7 @@
#define HAL_RCC_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
+#define HAL_RTC_MODULE_ENABLED
#endif
/* ########################## HSE/HSI Values adaptation ##################### */
diff --git a/hw/bsp/stm32l152discovery/include/bsp/stm32l1xx_hal_conf.h b/hw/bsp/stm32l152discovery/include/bsp/stm32l1xx_hal_conf.h
index b5ce2cb..b2e93cb 100644
--- a/hw/bsp/stm32l152discovery/include/bsp/stm32l1xx_hal_conf.h
+++ b/hw/bsp/stm32l152discovery/include/bsp/stm32l1xx_hal_conf.h
@@ -70,7 +70,7 @@
/* #define HAL_PCD_MODULE_ENABLED */
#define HAL_PWR_MODULE_ENABLED
#define HAL_RCC_MODULE_ENABLED
-/* #define HAL_RTC_MODULE_ENABLED */
+#define HAL_RTC_MODULE_ENABLED
/* #define HAL_SD_MODULE_ENABLED */
/* #define HAL_SMARTCARD_MODULE_ENABLED */
#define HAL_SPI_MODULE_ENABLED