diff options
Diffstat (limited to 'Projects/STM32WB5MM-DK/Applications/BLE/BLE_Sensor/Core/Src/stm32wbxx_it.c')
-rw-r--r-- | Projects/STM32WB5MM-DK/Applications/BLE/BLE_Sensor/Core/Src/stm32wbxx_it.c | 43 |
1 files changed, 35 insertions, 8 deletions
diff --git a/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Sensor/Core/Src/stm32wbxx_it.c b/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Sensor/Core/Src/stm32wbxx_it.c index 035cde9ca..56ec2bf5e 100644 --- a/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Sensor/Core/Src/stm32wbxx_it.c +++ b/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Sensor/Core/Src/stm32wbxx_it.c @@ -6,13 +6,12 @@ ****************************************************************************** * @attention * - * <h2><center>© Copyright (c) 2021 STMicroelectronics. - * All rights reserved.</center></h2> + * Copyright (c) 2021 STMicroelectronics. + * All rights reserved. * - * This software component is licensed by ST under Ultimate Liberty license - * SLA0044, the "License"; You may not use this file except in compliance with - * the License. You may obtain a copy of the License at: - * www.st.com/SLA0044 + * This software is licensed under terms that can be found in the LICENSE file + * in the root directory of this software component. + * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** */ @@ -57,7 +56,8 @@ /* USER CODE END 0 */ /* External variables --------------------------------------------------------*/ - +extern DMA_HandleTypeDef hdma_usart1_tx; +extern UART_HandleTypeDef huart1; /* USER CODE BEGIN EV */ /* USER CODE END EV */ @@ -201,6 +201,20 @@ void SysTick_Handler(void) /******************************************************************************/ /** + * @brief This function handles USART1 global interrupt. + */ +void USART1_IRQHandler(void) +{ + /* USER CODE BEGIN USART1_IRQn 0 */ + + /* USER CODE END USART1_IRQn 0 */ + HAL_UART_IRQHandler(&huart1); + /* USER CODE BEGIN USART1_IRQn 1 */ + + /* USER CODE END USART1_IRQn 1 */ +} + +/** * @brief This function handles HSEM global interrupt. */ void HSEM_IRQHandler(void) @@ -214,6 +228,20 @@ void HSEM_IRQHandler(void) /* USER CODE END HSEM_IRQn 1 */ } +/** + * @brief This function handles DMA2 channel4 global interrupt. + */ +void DMA2_Channel4_IRQHandler(void) +{ + /* USER CODE BEGIN DMA2_Channel4_IRQn 0 */ + + /* USER CODE END DMA2_Channel4_IRQn 0 */ + HAL_DMA_IRQHandler(&hdma_usart1_tx); + /* USER CODE BEGIN DMA2_Channel4_IRQn 1 */ + + /* USER CODE END DMA2_Channel4_IRQn 1 */ +} + /* USER CODE BEGIN 1 */ /** @@ -271,4 +299,3 @@ void RTC_WKUP_IRQHandler(void) } /* USER CODE END 1 */ -/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |