Loading...
 
Skip to main content

System Workbench for STM32


RTC Alarm doesn't work second time.. Please Help me..

void HAL_RTC_AlarmAEventCallback(RTC_HandleTypeDef *hrtc) {
/* Prevent unused argument(s) compilation warning */
UNUSED(hrtc);

/* NOTE : This function Should not be modified, when the callback is needed,
the HAL_RTC_AlarmAEventCallback could be implemented in the user file
*/
HAL_RTC_DeactivateAlarm(&hrtc,RTC_ALARM_A);
//__HAL_RCC_RTC_DISABLE();

MX_RTC_Init();
__HAL_RCC_RTC_ENABLE();

}

 
Collapse/expand modules below