Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_HeartRate/Core/Src/stm32wbxx_it.c')
-rw-r--r--Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_HeartRate/Core/Src/stm32wbxx_it.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_HeartRate/Core/Src/stm32wbxx_it.c b/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_HeartRate/Core/Src/stm32wbxx_it.c
index 4afccfa78..a261d3dea 100644
--- a/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_HeartRate/Core/Src/stm32wbxx_it.c
+++ b/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_HeartRate/Core/Src/stm32wbxx_it.c
@@ -65,6 +65,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 */
@@ -206,6 +207,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)
@@ -337,10 +352,5 @@ void PUSH_BUTTON_SW3_EXTI_IRQHandler(void)
HAL_GPIO_EXTI_IRQHandler(BUTTON_SW3_PIN);
}
-void RTC_WKUP_IRQHandler(void)
-{
- HW_TS_RTC_Wakeup_Handler();
-}
-
/* USER CODE END 1 */
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/