diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-04-29 23:10:32 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-04-29 23:10:32 +0200 |
commit | 89d464c7f38b902e332f082f99df075dee080978 (patch) | |
tree | 603750026d3fa12b2db7fa19abb8cdc079c5d3be /stm32cubemx/Src/stm32f1xx_it.c | |
parent | 4c159924abc0ad027166fe8853d062ed0a46481e (diff) | |
download | radio-controller-89d464c7f38b902e332f082f99df075dee080978.tar.gz radio-controller-89d464c7f38b902e332f082f99df075dee080978.tar.bz2 radio-controller-89d464c7f38b902e332f082f99df075dee080978.tar.xz radio-controller-89d464c7f38b902e332f082f99df075dee080978.zip |
o Setting up for TIM1/Channel 1 as input capture. Enabling IWDG.
Diffstat (limited to 'stm32cubemx/Src/stm32f1xx_it.c')
-rw-r--r-- | stm32cubemx/Src/stm32f1xx_it.c | 15 |
1 files changed, 15 insertions, 0 deletions
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; /******************************************************************************/ @@ -185,6 +186,20 @@ void SysTick_Handler(void) /******************************************************************************/ /** +* @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. */ void TIM1_TRG_COM_IRQHandler(void) |