remove unused code

This commit is contained in:
Yunhorn 2024-03-14 11:15:00 +08:00
parent d116edad2d
commit 492245e039
2 changed files with 9 additions and 5 deletions

View File

@ -60,13 +60,15 @@ void MX_RTC_Init(void)
/* USER CODE BEGIN Check_RTC_BKUP */ /* USER CODE BEGIN Check_RTC_BKUP */
/* USER CODE END Check_RTC_BKUP */ /* USER CODE END Check_RTC_BKUP */
#if 1
/** Initialize RTC and set the Time and Date /** Initialize RTC and set the Time and Date
*/ */
if (HAL_RTCEx_SetSSRU_IT(&hrtc) != HAL_OK) if (HAL_RTCEx_SetSSRU_IT(&hrtc) != HAL_OK)
{ {
Error_Handler(); Error_Handler();
} }
#endif
#if 0 #if 0
/** Enable the Alarm A /** Enable the Alarm A
*/ */
@ -110,10 +112,13 @@ void HAL_RTC_MspInit(RTC_HandleTypeDef* rtcHandle)
__HAL_RCC_RTCAPB_CLK_ENABLE(); __HAL_RCC_RTCAPB_CLK_ENABLE();
/* RTC interrupt Init */ /* RTC interrupt Init */
HAL_NVIC_SetPriority(TAMP_STAMP_LSECSS_SSRU_IRQn, 0, 0); HAL_NVIC_SetPriority(TAMP_STAMP_LSECSS_SSRU_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(TAMP_STAMP_LSECSS_SSRU_IRQn); HAL_NVIC_EnableIRQ(TAMP_STAMP_LSECSS_SSRU_IRQn);
HAL_NVIC_SetPriority(RTC_Alarm_IRQn, 0, 0); HAL_NVIC_SetPriority(RTC_Alarm_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(RTC_Alarm_IRQn); HAL_NVIC_EnableIRQ(RTC_Alarm_IRQn);
/* USER CODE BEGIN RTC_MspInit 1 */ /* USER CODE BEGIN RTC_MspInit 1 */
/* USER CODE END RTC_MspInit 1 */ /* USER CODE END RTC_MspInit 1 */

View File

@ -392,7 +392,6 @@ void EXTI9_5_IRQHandler(void)
/* USER CODE END EXTI9_5_IRQn 1 */ /* USER CODE END EXTI9_5_IRQn 1 */
} }
#if 0
/** /**
* @brief This function handles EXTI Lines [9:5] Interrupt. * @brief This function handles EXTI Lines [9:5] Interrupt.
*/ */
@ -408,7 +407,7 @@ void EXTI15_10_IRQHandler(void)
/* USER CODE END EXTI15_10_IRQn 1 */ /* USER CODE END EXTI15_10_IRQn 1 */
} }
#endif
/** /**
@ -424,7 +423,7 @@ void USART2_IRQHandler(void)
/* USER CODE END USART2_IRQn 1 */ /* USER CODE END USART2_IRQn 1 */
} }
#if 0
/** /**
* @brief This function handles RTC Alarms (A and B) Interrupt. * @brief This function handles RTC Alarms (A and B) Interrupt.
*/ */
@ -440,7 +439,7 @@ void RTC_Alarm_IRQHandler(void)
/* USER CODE END RTC_Alarm_IRQn 1 */ /* USER CODE END RTC_Alarm_IRQn 1 */
} }
#endif
/** /**
* @brief This function handles SUBGHZ Radio Interrupt. * @brief This function handles SUBGHZ Radio Interrupt.
*/ */