diff options
Diffstat (limited to 'Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_Custom/Core/Src/stm32wbxx_it.c')
-rw-r--r-- | Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_Custom/Core/Src/stm32wbxx_it.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_Custom/Core/Src/stm32wbxx_it.c b/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_Custom/Core/Src/stm32wbxx_it.c index 28b8254d3..e25eeaf6a 100644 --- a/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_Custom/Core/Src/stm32wbxx_it.c +++ b/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_Custom/Core/Src/stm32wbxx_it.c @@ -35,7 +35,7 @@ /* Private define ------------------------------------------------------------*/ /* USER CODE BEGIN PD */ - + /* USER CODE END PD */ /* Private macro -------------------------------------------------------------*/ @@ -64,6 +64,7 @@ extern DMA_HandleTypeDef hdma_lpuart1_tx; extern DMA_HandleTypeDef hdma_usart1_tx; extern UART_HandleTypeDef hlpuart1; extern UART_HandleTypeDef huart1; +extern RTC_HandleTypeDef hrtc; /* USER CODE BEGIN EV */ /* USER CODE END EV */ @@ -205,6 +206,20 @@ void SysTick_Handler(void) /******************************************************************************/ /** + * @brief This function handles RTC wake-up interrupt through EXTI line 19. + */ +void RTC_WKUP_IRQHandler(void) +{ + /* USER CODE BEGIN RTC_WKUP_IRQn 0 */ + + /* USER CODE END RTC_WKUP_IRQn 0 */ + HAL_RTCEx_WakeUpTimerIRQHandler(&hrtc); + /* USER CODE BEGIN RTC_WKUP_IRQn 1 */ + + /* USER CODE END RTC_WKUP_IRQn 1 */ +} + +/** * @brief This function handles DMA1 channel4 global interrupt. */ void DMA1_Channel4_IRQHandler(void) @@ -303,10 +318,6 @@ void DMA2_Channel4_IRQHandler(void) } /* USER CODE BEGIN 1 */ -void RTC_WKUP_IRQHandler(void) -{ - HW_TS_RTC_Wakeup_Handler(); -} /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |