/* clear the specified DAC interrupt flag (DAC DMA underrun interrupt flag)  */
void dac_interrupt_flag_clear(uint32_t dac_periph)
/* clear the specified DAC interrupt flag (DAC DMA underrun interrupt flag)  */
void dac_interrupt_flag_clear(uint32_t dac_periph)
{
    if(DAC0 == dac_periph) {
        DAC_STAT |= DAC_STAT_DDUDR0;
    } else {
        DAC_STAT |= DAC_STAT_DDUDR1;
    }
}