From a4675488a93fc7dcbada7c8275b8c5c944123c73 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 12 Sep 2020 08:01:24 +0000 Subject: [PATCH] Fixed bug #1121. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13853 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/STM32G0xx/hal_lld.c | 2 +- readme.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/os/hal/ports/STM32/STM32G0xx/hal_lld.c b/os/hal/ports/STM32/STM32G0xx/hal_lld.c index a39b2adb2..09ea8e6cc 100644 --- a/os/hal/ports/STM32/STM32G0xx/hal_lld.c +++ b/os/hal/ports/STM32/STM32G0xx/hal_lld.c @@ -151,7 +151,7 @@ void stm32_clock_init(void) { #if STM32_HSI16_ENABLED /* HSI activation.*/ - RCC->CR |= RCC_CR_HSION; + RCC->CR |= RCC_CR_HSION | STM32_HSIDIV; while ((RCC->CR & RCC_CR_HSIRDY) == 0) ; /* Wait until HSI16 is stable. */ #endif diff --git a/readme.txt b/readme.txt index 378f23ad4..1635bcdda 100644 --- a/readme.txt +++ b/readme.txt @@ -117,6 +117,8 @@ MEMS Accelerometers. - NEW: Safer messages mechanism for sandboxes (to be backported to 20.3.1). - NEW: Added latency measurement test application. +- FIX: Ignored HSIDIV setting on STM32G0xx (bug #1121) + (backported to 20.3.3). - FIX: Fix incorrect variable name in recursive mutex handling (bug #1119). - FIX: Fixed several problems in STM32 ADCv4 (bug #1116) (backported to 20.3.2).