void HAL_RTC_MspDeInit(RTC_HandleTypeDef* hrtc) { if(hrtc->Instance==RTC) { /* USER CODE BEGIN RTC_MspDeInit 0 */ /* USER CODE END RTC_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_RTC_DISABLE(); /* Peripheral interrupt Deinit*/ HAL_NVIC_DisableIRQ(RTC_WKUP_IRQn); HAL_NVIC_DisableIRQ(RTC_Alarm_IRQn); } /* USER CODE BEGIN RTC_MspDeInit 1 */ // /* Configure the RTC WakeUp Clock source: CK_SPRE (1Hz) */ // RTC_WakeUpClockConfig(RTC_WakeUpClock_CK_SPRE_16bits); // RTC_SetWakeUpCounter(0x0); // // RTC_CR_WUTE // // RTC_WUTR_WUT // // /* Enable the RTC Wakeup Interrupt */ // RTC_ITConfig(RTC_IT_WUT, ENABLE); // // /* Enable Wakeup Counter */ // RTC_WakeUpCmd(ENABLE); /* USER CODE END RTC_MspDeInit 1 */ }
/** * @brief RTC MSP De-Initialization * This function frees the hardware resources used in this example: * - Disable the Peripheral's clock * @param hrtc: RTC handle pointer * @retval None */ void HAL_RTC_MspDeInit(RTC_HandleTypeDef *hrtc) { /*##-1- Reset peripherals ##################################################*/ __HAL_RCC_RTC_DISABLE(); /*##-2- Disable the NVIC for TimeStamp #####################################*/ HAL_NVIC_DisableIRQ(TAMPER_STAMP_IRQn); }
/** * @brief RTC MSP De-Initialization * This function frees the hardware resources used in this example: * - Disable the Peripheral's clock * @param hrtc: RTC handle pointer * @retval None */ void HAL_RTC_MspDeInit(RTC_HandleTypeDef *hrtc) { /*##-1- Reset peripherals ##################################################*/ __HAL_RCC_RTC_DISABLE(); /*##-2- Disables the PWR Clock and Disables access to the backup domain ###################################*/ HAL_PWR_DisableBkUpAccess(); __HAL_RCC_PWR_CLK_DISABLE(); }
/** * @brief This function disable the RTC by disabling the peripheral clock * @param hrtc * @arg hrtc_bsp RTC handle */ void BSP_RTC_MspDeInit(RTC_HandleTypeDef* hrtc) { if(hrtc->Instance==RTC) { /* Peripheral clock disable */ __HAL_RCC_RTC_DISABLE(); /* Peripheral interrupt Deinit*/ HAL_NVIC_DisableIRQ(RTC_WKUP_IRQn); HAL_NVIC_DisableIRQ(RTC_Alarm_IRQn); HAL_NVIC_DisableIRQ(TAMP_STAMP_IRQn); } }
void HAL_RTC_MspDeInit(RTC_HandleTypeDef* hrtc) { if(hrtc->Instance==RTC) { /* USER CODE BEGIN RTC_MspDeInit 0 */ /* USER CODE END RTC_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_RTC_DISABLE(); } /* USER CODE BEGIN RTC_MspDeInit 1 */ /* USER CODE END RTC_MspDeInit 1 */ }
void HAL_RTC_MspDeInit(RTC_HandleTypeDef* hrtc) { if (hrtc->Instance == RTC) { /* USER CODE BEGIN RTC_MspDeInit 0 */ /* USER CODE END RTC_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_RTC_DISABLE(); /* Peripheral interrupt DeInit*/ // HAL_NVIC_DisableIRQ(RTC_IRQn); } }
/** * @brief RTC MSP De-Initialization * This function freeze the hardware resources used in this example: * - Disable the Peripheral's clock * @param hrtc: RTC handle pointer * @retval None */ void HAL_RTC_MspDeInit(RTC_HandleTypeDef *hrtc) { RCC_OscInitTypeDef RCC_OscInitStruct; /*##-1- Reset peripherals ##################################################*/ __HAL_RCC_RTC_DISABLE(); __PWR_CLK_DISABLE(); RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI | RCC_OSCILLATORTYPE_LSE; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; RCC_OscInitStruct.LSEState = RCC_LSE_OFF; RCC_OscInitStruct.LSIState = RCC_LSI_OFF; if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) { while(1); } }
void HAL_RTC_MspDeInit(RTC_HandleTypeDef* rtcHandle) { if(rtcHandle->Instance==RTC) { /* USER CODE BEGIN RTC_MspDeInit 0 */ /* USER CODE END RTC_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_RTC_DISABLE(); /* Peripheral interrupt Deinit*/ HAL_NVIC_DisableIRQ(RTC_Alarm_IRQn); } /* USER CODE BEGIN RTC_MspDeInit 1 */ /* USER CODE END RTC_MspDeInit 1 */ }
void HAL_RTC_MspDeInit(RTC_HandleTypeDef* hrtc) { if(hrtc->Instance==RTC) { /* USER CODE BEGIN RTC_MspDeInit 0 */ /* USER CODE END RTC_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_RTC_DISABLE(); /**RTC GPIO Configuration PB15 ------> RTC_REFIN */ HAL_GPIO_DeInit(GPIOB, GPIO_PIN_15); } /* USER CODE BEGIN RTC_MspDeInit 1 */ /* USER CODE END RTC_MspDeInit 1 */ }
/** * @brief RTC MSP De-Initialization * This function frees the hardware resources used in this application: * - Disable the Peripheral's clock * @param hrtc: RTC handle pointer * @retval None */ void HAL_RTC_MspDeInit(RTC_HandleTypeDef *hrtc) { /*##-1- Reset peripherals ##################################################*/ __HAL_RCC_RTC_DISABLE(); }
void HAL_RTC_MspDeInit(RTC_HandleTypeDef *hrtc) { __HAL_RCC_RTC_DISABLE(); }