summaryrefslogtreecommitdiff
path: root/stm32cubemx/Src/stm32f1xx_it.c
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-04-29 23:10:32 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2017-04-29 23:10:32 +0200
commit89d464c7f38b902e332f082f99df075dee080978 (patch)
tree603750026d3fa12b2db7fa19abb8cdc079c5d3be /stm32cubemx/Src/stm32f1xx_it.c
parent4c159924abc0ad027166fe8853d062ed0a46481e (diff)
downloadradio-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.c15
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)