/** * @brief DeInitializes the PCD MSP. * @param hpcd: PCD handle * @retval None */ void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd) { if(hpcd->Instance == USB_OTG_FS) { /* Disable USB FS Clocks */ __USB_OTG_FS_CLK_DISABLE(); __SYSCFG_CLK_DISABLE(); } else if(hpcd->Instance == USB_OTG_HS) { /* Disable USB FS Clocks */ __USB_OTG_HS_CLK_DISABLE(); __SYSCFG_CLK_DISABLE(); } }
/** * @brief De-Initializes the PCD MSP. * @param hpcd: PCD handle * @retval None */ void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd) { /* Disable USB FS Clock */ __USB_CLK_DISABLE(); /* Disable SYSCFG Clock */ __SYSCFG_CLK_DISABLE(); }
/** * @brief DeInitializes the COMP MSP. * @param hcomp: pointer to a COMP_HandleTypeDef structure that contains * the configuration information for the specified COMP. * @retval None */ void HAL_COMP_MspDeInit(COMP_HandleTypeDef* hcomp) { /*##-1- Reset peripherals ##################################################*/ /* Disable COMP1 clock */ __SYSCFG_CLK_DISABLE(); /* Disable GPIO clock */ __GPIOA_CLK_DISABLE(); /*##-2- Disable peripherals and GPIO ######################################*/ /* De-Initialize COMP1 */ HAL_COMP_DeInit(&hcomp1); /* De-initialize the GPIO pin */ HAL_GPIO_DeInit(GPIOA, GPIO_PIN_1); /*##-3- Disable the NVIC for COMP ##########################################*/ HAL_NVIC_DisableIRQ(ADC1_COMP_IRQn); }
/** * @brief COMP MSP DeInit * @param hcomp : COMP handle * @retval None */ void HAL_COMP_MspDeInit(COMP_HandleTypeDef *hcomp) { __SYSCFG_CLK_DISABLE(); }