/* DAC MSP Initialization This function configures the hardware resources used in this example:  */
void HAL_DAC_MspInit(DAC_HandleTypeDef *hdac)
/* DAC MSP Initialization This function configures the hardware resources used in this example:  */
void HAL_DAC_MspInit(DAC_HandleTypeDef *hdac)
{
  GPIO_InitTypeDef          GPIO_InitStruct;
  DACx_CHANNEL_GPIO_CLK_ENABLE();
  DACx_CLK_ENABLE();
  GPIO_InitStruct.Pin = DACx_CHANNEL_PIN;
  GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  GPIO_InitStruct.Pull = GPIO_NOPULL;
  HAL_GPIO_Init(DACx_CHANNEL_GPIO_PORT, &GPIO_InitStruct);
}