/* Deinitialize the DAC peripheral registers to their default reset values.  */
int32_t DAC_DeInit(CM_DAC_TypeDef *DACx)
/* Deinitialize the DAC peripheral registers to their default reset values.  */
int32_t DAC_DeInit(CM_DAC_TypeDef *DACx)
{
    int32_t i32Ret = LL_OK;
    __IO uint32_t *u32DADRx;
    WRITE_REG16(DACx->DACR, 0x0000UL);
    WRITE_REG16(DACx->DAOCR, 0x0000UL);
    WRITE_REG16(DACx->DAADPCR, 0x0000UL);
    u32DADRx = (__IO uint32_t *)(uint32_t)(&DACx->DADR1);
    WRITE_REG32(*u32DADRx, 0x0000UL);
    return i32Ret;
}