/** * @brief This function is executed in case of error occurrence. * @param None * @retval None */ void Error_Handler(void) { HAL_RTC_DeInit(&RtcHandle); /* Turn LED3 on */ BSP_LED_On(LED3); while(1) { } }
/** * @brief un-Configure the Lowpower application * @param None. * @note run and display information about the lowpower feature. * @retval None. */ KMODULE_RETURN _LowPowerDemoUnConfig(void) { /* Enable Clock Security System(CSS) */ HAL_RCC_DisableCSS(); /* DeInit Rtc instance */ if(HAL_RTC_DeInit(&RtcHandle) != HAL_OK) { /* Initialization Error */ while(1); } return KMODULE_OK; }