void HAL_DAC_MspDeInit( DAC_HandleTypeDef* dacHandle ) { if( dacHandle->Instance != DAC ) { return; } __HAL_RCC_DAC_CLK_DISABLE(); HAL_GPIO_DeInit( GPIOA, GPIO_PIN_4 | GPIO_PIN_5 ); }
/** * @brief DeInitialize the DAC MSP. * @param hdac: pointer to a DAC_HandleTypeDef structure that contains * the configuration information for the specified DAC. * @retval None */ void HAL_DAC_MspDeInit(DAC_HandleTypeDef* hdac) { UNUSED(hdac); /* DAC Periph clock disable */ #ifdef __HAL_RCC_DAC1_CLK_DISABLE __HAL_RCC_DAC1_CLK_DISABLE(); #endif #ifdef __HAL_RCC_DAC_CLK_DISABLE __HAL_RCC_DAC_CLK_DISABLE(); #endif }