• R/O
  • SSH
  • HTTPS

chibios: 提交


Commit MetaInfo

修订版14586 (tree)
时间2021-07-03 00:12:08
作者gdisirio

Log Message

Fixed bug #1164.

更改概述

差异

--- branches/stable_19.1.x/os/hal/ports/STM32/LLD/TIMv1/hal_st_lld.c (revision 14585)
+++ branches/stable_19.1.x/os/hal/ports/STM32/LLD/TIMv1/hal_st_lld.c (revision 14586)
@@ -153,7 +153,7 @@
153153 #define ST_NUMBER STM32_TIM21_NUMBER
154154 #define ST_CLOCK_SRC STM32_TIMCLK2
155155 #define ST_ENABLE_CLOCK() rccEnableTIM21(true)
156-#define ST_ENABLE_STOP() DBGMCU->APB1FZ |= DBGMCU_APB2_FZ_DBG_TIM21_STOP
156+#define ST_ENABLE_STOP() DBGMCU->APB2FZ |= DBGMCU_APB2_FZ_DBG_TIM21_STOP
157157
158158 #elif STM32_ST_USE_TIMER == 22
159159 #if !STM32_HAS_TIM22
@@ -170,7 +170,7 @@
170170 #define ST_NUMBER STM32_TIM22_NUMBER
171171 #define ST_CLOCK_SRC STM32_TIMCLK2
172172 #define ST_ENABLE_CLOCK() rccEnableTIM22(true)
173-#define ST_ENABLE_STOP() DBGMCU->APB1FZ |= DBGMCU_APB2_FZ_DBG_TIM21_STOP
173+#define ST_ENABLE_STOP() DBGMCU->APB2FZ |= DBGMCU_APB2_FZ_DBG_TIM21_STOP
174174
175175 #else
176176 #error "STM32_ST_USE_TIMER specifies an unsupported timer"
--- branches/stable_19.1.x/readme.txt (revision 14585)
+++ branches/stable_19.1.x/readme.txt (revision 14586)
@@ -74,6 +74,7 @@
7474 *****************************************************************************
7575
7676 *** 19.1.5 ***
77+- FIX: Fixed invalid STM32 TIM21/TIM22 debug freeze setting (bug #1164).
7778 - FIX: Fixed warning in STM32 ADCv4 (bug #1158).
7879 - FIX: Fixed wrong checks related to PLLSAI2 on L4 and L4+ (bug #1156).
7980 - FIX: Fixed errors in STM32L4xx registry (bug #1154).
Show on old repository browser