git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15053 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-11-10 17:06:06 +00:00
parent 1f33b319fa
commit c14fdf21d7
2 changed files with 14 additions and 1 deletions

View File

@ -69,7 +69,11 @@ uint32_t SystemCoreClock = STM32_HCLK;
*/
const halclkcfg_t hal_clkcfg_reset = {
.pwr_cr1 = PWR_CR1_VOS_0 | PWR_CR1_FPD_STOP,
#if defined (PWR_CR2_PVMEN_USB)
.pwr_cr2 = PWR_CR2_PVMEN_USB,
#else
.pwr_cr2 = 0U,
#endif
.rcc_cr = RCC_CR_HSION,
.rcc_cfgr = RCC_CFGR_SW_HSI,
.rcc_pllcfgr = 0U,
@ -81,7 +85,11 @@ const halclkcfg_t hal_clkcfg_reset = {
*/
const halclkcfg_t hal_clkcfg_default = {
.pwr_cr1 = STM32_VOS_RANGE1 | PWR_CR1_DBP,
.pwr_cr2 = STM32_PWR_CR2,
#if defined (PWR_CR2_PVMEN_USB)
.pwr_cr2 = PWR_CR2_PVMEN_USB,
#else
.pwr_cr2 = 0U,
#endif
.rcc_cr = 0U
#if STM32_HSI16_ENABLED
| RCC_CR_HSIKERON | RCC_CR_HSION

View File

@ -76,3 +76,8 @@
*** Next ***
- NEW: Added option to copy vectors in RAM on GCC startup for ARMv6-M,
ARMv7-M and ARMv8-M-ML.
- NEW: On STM32WBxx added a check on STM32_LSI_ENABLE required by IWDG.
- NEW: Added SPIv2 support also to STM32WB and STM32WL.
- FIX: Fixed STM32G0B1 demo application hangs debuggers (bug #1200)
(backported to 21.11.1).