From 9aed5d7e7b3c7bf09da712e9c272ece401a7acc9 Mon Sep 17 00:00:00 2001 From: QuakeGod <QuakeGod@sina.com> Date: 星期一, 25 十一月 2024 14:51:23 +0800 Subject: [PATCH] add UltraSonic and MultiWireLess --- ComLib/Src/stm32f0xx_it.c | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/ComLib/Src/stm32f0xx_it.c b/ComLib/Src/stm32f0xx_it.c index 032448e..0ee5932 100644 --- a/ComLib/Src/stm32f0xx_it.c +++ b/ComLib/Src/stm32f0xx_it.c @@ -134,7 +134,7 @@ { /* USER CODE BEGIN TIM6_IRQn 0 */ if (LL_TIM_IsActiveFlag_UPDATE(TIM6)) { LL_TIM_ClearFlag_UPDATE(TIM6);} - + KMem.WDB[130]++; // KMem.SDD[46]+=1000; // KMem.SDT[93] = LL_TIM_GetCounter(TIM6); /* USER CODE END TIM6_IRQn 0 */ @@ -144,6 +144,21 @@ } /** + * @brief This function handles TIM6 global interrupt. + */ +void TIM16_IRQHandler(void) +{ + /* USER CODE BEGIN TIM6_IRQn 0 */ + if (LL_TIM_IsActiveFlag_UPDATE(TIM16)) { LL_TIM_ClearFlag_UPDATE(TIM16);} + KMem.WDB[132]++; +// KMem.SDD[46]+=1000; +// KMem.SDT[93] = LL_TIM_GetCounter(TIM6); + /* USER CODE END TIM6_IRQn 0 */ + /* USER CODE BEGIN TIM6_IRQn 1 */ + + /* USER CODE END TIM6_IRQn 1 */ +} +/** * @brief This function handles DMA1 channel 2 and 3 interrupts. */ void DMA1_Channel2_3_IRQHandler(void) -- Gitblit v1.9.1