git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_20.3.x@15524 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2022-03-16 11:40:26 +00:00 committed by Andrey
parent febfeb509d
commit 3fa7ed7808
3 changed files with 14 additions and 0 deletions

View File

@ -1514,6 +1514,13 @@
*/
#define STM32_TIMCLK2 STM32_TIMPCLK
#if STM32_HAS_TIM1617_ERRATA
/* TIM16 and TIM17 require special handling and checks on some devices, see
the errata: "TIM16 and TIM17 are unduly clocked by SYSCLK".*/
#define STM32_TIM16CLK hal_lld_get_clock_point(CLK_SYSCLK)
#define STM32_TIM17CLK hal_lld_get_clock_point(CLK_SYSCLK)
#endif
/**
* @brief Flash settings.
*/

View File

@ -90,6 +90,9 @@
#if defined(STM32G070xx) || defined(__DOXYGEN__)
/* Errata attributes.*/
#define STM32_HAS_TIM1617_ERRATA TRUE
/* ADC attributes.*/
#define STM32_HAS_ADC1 TRUE
#define STM32_HAS_ADC2 FALSE
@ -267,6 +270,9 @@
#if defined(STM32G071xx) || defined(STM32G081xx)
/* Errata attributes.*/
#define STM32_HAS_TIM1617_ERRATA TRUE
/* ADC attributes.*/
#define STM32_HAS_ADC1 TRUE
#define STM32_HAS_ADC2 FALSE

View File

@ -76,6 +76,7 @@
*** 20.3.5 ***
- FIX: Some MISRA-related fixes.
- FIX: Re-opened and fixed bug #1100.
- FIX: Fixed missing TIM16/17 errata handling for STM32G0xx (bug #1226).
- FIX: Fixed missing ADC errata handling for STM32G0xx (bug #1225).
- FIX: Fixed problem in the HAL I2C fallback driver (bug #1224).
- FIX: Fixed GPIOH clock not enabled on STM32L432 (bug #1223).