From 4ce8b29f46df33ab24521b504beccb513decf16f Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期三, 06 一月 2021 10:30:40 +0800 Subject: [PATCH] 增加蜂鸣器功能,增加硬件版本选择功能 --- Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l082xx.h | 14 +++++--------- 1 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l082xx.h b/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l082xx.h index 94159e8..3af095f 100644 --- a/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l082xx.h +++ b/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l082xx.h @@ -3787,9 +3787,13 @@ /* Reset and Clock Control */ /* */ /******************************************************************************/ - +/* +* @brief Specific device feature definitions (not present on all devices in the STM32L0 family) +*/ #define RCC_HSI48_SUPPORT /*!< HSI48 feature support */ #define RCC_HSECSS_SUPPORT /*!< HSE CSS feature activation support */ +#define RCC_MCO3_SUPPORT /*!<Support MCO3 */ +#define RCC_MCO3_AF2_SUPPORT /*!<Support MCO3 on Alternate Function AF0 */ /******************** Bit definition for RCC_CR register ********************/ #define RCC_CR_HSION_Pos (0U) @@ -5863,13 +5867,8 @@ /* * @brief Specific device feature definitions (not present on all devices in the STM32L0 family) */ -#if defined (STM32L071xx) || defined (STM32L072xx) || defined (STM32L073xx) \ - || defined (STM32L081xx) || defined (STM32L082xx) || defined (STM32L083xx) #define TIM_TIM2_REMAP_HSI_SUPPORT /*!<Support remap HSI on TIM2 */ #define TIM_TIM2_REMAP_HSI48_SUPPORT /*!<Support remap HSI48 on TIM2 */ -#else -#define TIM_TIM2_REMAP_HSI48_SUPPORT /*!<Support remap HSI48 on TIM2 */ -#endif /******************* Bit definition for TIM_CR1 register ********************/ #define TIM_CR1_CEN_Pos (0U) @@ -7690,9 +7689,6 @@ ((INSTANCE) == TIM3) || \ ((INSTANCE) == TIM21) || \ ((INSTANCE) == TIM22)) - -/****************** TIM Instances : supporting synchronization ****************/ -#define IS_TIM_SYNCHRO_INSTANCE(INSTANCE) IS_TIM_MASTER_INSTANCE(INSTANCE) /******************* TIM Instances : output(s) OCXEC register *****************/ #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ -- Gitblit v1.9.3