/* param base ACMP peripheral base address. param enable True to enable DMA.  */
void ACMP_EnableDMA(CMP_Type *base, bool enable)
/* param base ACMP peripheral base address. param enable True to enable DMA.  */
void ACMP_EnableDMA(CMP_Type *base, bool enable)
{
    if (enable)
    {
        base->C0 = ((base->C0 | CMP_C0_DMAEN_MASK) & ~CMP_C0_CFx_MASK);
    }
    else
    {
        base->C0 &= ~(CMP_C0_DMAEN_MASK | CMP_C0_CFx_MASK);
    }
}