Fixed bugs #980 and #981.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12357 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
gdisirio 2018-10-13 18:40:44 +00:00
parent feb109f031
commit 062b4f7d37
4 changed files with 39 additions and 15 deletions

View File

@ -9,6 +9,6 @@ F3xx 1 2 3 * * * * * * * * * *
F37x * * * * * * * * * * * * * *
F4xx 1 2 3 * * * * * * * 4 5 6 * 1 2 3 4 5 6
F7xx 1 2 3 * * * * * * * 4 5 6 * 1 2 3 4 5 6 *
L0xx * * * * *
L0xx * * * * * * *
L1xx * * * * * * * * *
L4xx 1 2 3 * * * * * * * * * * * 1 2 3 * *

View File

@ -488,6 +488,29 @@
*/
#define rccResetTIM2() rccResetAPB1(RCC_APB1RSTR_TIM2RST)
/**
* @brief Enables the TIM3 peripheral clock.
*
* @param[in] lp low power enable flag
*
* @api
*/
#define rccEnableTIM3(lp) rccEnableAPB1(RCC_APB1ENR_TIM3EN, lp)
/**
* @brief Disables the TIM3 peripheral clock.
*
* @api
*/
#define rccDisableTIM3() rccDisableAPB1(RCC_APB1ENR_TIM3EN)
/**
* @brief Resets the TIM3 peripheral.
*
* @api
*/
#define rccResetTIM3() rccResetAPB1(RCC_APB1RSTR_TIM3RST)
/**
* @brief Enables the TIM6 peripheral clock.
*

View File

@ -34,7 +34,7 @@
* @{
*/
/*===========================================================================*/
/* STM32L011xx */
/* STM32L011xx. */
/*===========================================================================*/
#if defined(STM32L011xx) || defined(__DOXYGEN__)
@ -252,9 +252,9 @@
#define STM32_CRC_PROGRAMMABLE TRUE
/*===========================================================================*/
/* STM32L031xx */
/* STM32L031xx. */
/*===========================================================================*/
#elif defined(STM32L031xx) || defined(__DOXYGEN__)
#elif defined(STM32L031xx)
/* ADC attributes.*/
#define STM32_HAS_ADC1 TRUE
@ -473,10 +473,9 @@
#define STM32_CRC_PROGRAMMABLE TRUE
/*===========================================================================*/
/* STM32L051xx, STM32L061xx */
/* STM32L051xx, STM32L061xx. */
/*===========================================================================*/
#elif defined(STM32L051xx) || defined(STM32L061xx) || \
defined(__DOXYGEN__)
#elif defined(STM32L051xx) || defined(STM32L061xx)
/* ADC attributes.*/
#define STM32_HAS_ADC1 TRUE
@ -728,8 +727,7 @@
/*===========================================================================*/
/* STM32L052xx, STM32L062xx. */
/*===========================================================================*/
#elif defined(STM32L052xx) || defined(STM32L062xx) || \
defined(__DOXYGEN__)
#elif defined(STM32L052xx) || defined(STM32L062xx)
/* ADC attributes.*/
#define STM32_HAS_ADC1 TRUE
@ -988,8 +986,7 @@
/*===========================================================================*/
/* STM32L053xx, STM32L063xx. */
/*===========================================================================*/
#elif defined(STM32L053xx) || defined(STM32L063xx) || \
defined(__DOXYGEN__)
#elif defined(STM32L053xx) || defined(STM32L063xx)
/* ADC attributes.*/
#define STM32_HAS_ADC1 TRUE
@ -1246,9 +1243,9 @@
#define STM32_CRC_PROGRAMMABLE TRUE
/*===========================================================================*/
/* STM32L071xx */
/* STM32L071xx. */
/*===========================================================================*/
#elif defined(STM32L071xx) || defined(__DOXYGEN__)
#elif defined(STM32L071xx)
/* ADC attributes.*/
#define STM32_HAS_ADC1 TRUE
@ -1543,9 +1540,9 @@
#define STM32_CRC_PROGRAMMABLE TRUE
/*===========================================================================*/
/* STM32L072xx/STM32L073xx */
/* STM32L072xx, STM32L073xx. */
/*===========================================================================*/
#elif defined(STM32L072xx) || defined(STM32L073xx) || defined(__DOXYGEN__)
#elif defined(STM32L072xx) || defined(STM32L073xx)
/* ADC attributes.*/
#define STM32_HAS_ADC1 TRUE

View File

@ -151,6 +151,10 @@
- EX: Updated LIS302DL to 1.1.0 (backported to 18.2.1).
- EX: Updated LPS25H to 1.1.0 (backported to 18.2.1).
- EX: Updated LSM303DLHC to 1.1.0 (backported to 18.2.1).
- HAL: Fixed mTM32L071/72 entries in registry (bug #981)
(backported to 18.2.2 and 17.6.5).
- HAL: Fixed TIM3 missing from STM32L0xx RCC macros (bug #980)
(backported to 18.2.2 and 17.6.5).
- HAL: Fixed invalid STM32 ADCv3 clock selection for L4 and L4+ (bug #979)
(backported to 18.2.2 and 17.6.5).
- HAL: Fixed wrong number of endpoints fot STM32F412/413 (bug #978)