From 89d464c7f38b902e332f082f99df075dee080978 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 29 Apr 2017 23:10:32 +0200 Subject: o Setting up for TIM1/Channel 1 as input capture. Enabling IWDG. --- stm32cubemx/Src/stm32f1xx_it.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'stm32cubemx/Src/stm32f1xx_it.c') diff --git a/stm32cubemx/Src/stm32f1xx_it.c b/stm32cubemx/Src/stm32f1xx_it.c index 40c5612..473a07a 100644 --- a/stm32cubemx/Src/stm32f1xx_it.c +++ b/stm32cubemx/Src/stm32f1xx_it.c @@ -40,6 +40,7 @@ /* USER CODE END 0 */ /* External variables --------------------------------------------------------*/ +extern DMA_HandleTypeDef hdma_tim1_ch1; extern TIM_HandleTypeDef htim1; /******************************************************************************/ @@ -184,6 +185,20 @@ void SysTick_Handler(void) /* please refer to the startup file (startup_stm32f1xx.s). */ /******************************************************************************/ +/** +* @brief This function handles DMA1 channel2 global interrupt. +*/ +void DMA1_Channel2_IRQHandler(void) +{ + /* USER CODE BEGIN DMA1_Channel2_IRQn 0 */ + + /* USER CODE END DMA1_Channel2_IRQn 0 */ + HAL_DMA_IRQHandler(&hdma_tim1_ch1); + /* USER CODE BEGIN DMA1_Channel2_IRQn 1 */ + + /* USER CODE END DMA1_Channel2_IRQn 1 */ +} + /** * @brief This function handles TIM1 trigger and commutation interrupts. */ -- cgit v1.2.3