From f988a856a4e7812b822f522fcdaed94c0832bb5e Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期六, 13 八月 2022 21:30:19 +0800 Subject: [PATCH] V2.53 增加震动状态上传和震动实时响应功能 --- Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l062xx.h | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l062xx.h b/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l062xx.h index 5af44ed..351d1b6 100644 --- a/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l062xx.h +++ b/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l062xx.h @@ -759,6 +759,15 @@ /** @addtogroup Exported_constants * @{ */ + + /** @addtogroup Hardware_Constant_Definition + * @{ + */ +#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */ + + /** + * @} + */ /** @addtogroup Peripheral_Registers_Bits_Definition * @{ @@ -3639,7 +3648,9 @@ /* 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 */ @@ -5585,13 +5596,7 @@ /* * @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) @@ -7368,9 +7373,6 @@ #define IS_TIM_REMAP_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ ((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