/* get the specified DAC interrupt flag (DAC DMA underrun interrupt flag)  */
FlagStatus dac_interrupt_flag_get(uint32_t dac_periph)
/* get the specified DAC interrupt flag (DAC DMA underrun interrupt flag)  */
FlagStatus dac_interrupt_flag_get(uint32_t dac_periph)
{
    FlagStatus temp_flag = RESET;
    uint32_t ddudr_flag = 0U, ddudrie_flag = 0U;
    if(DAC0 == dac_periph) {
        ddudr_flag = DAC_STAT & DAC_STAT_DDUDR0;
        ddudrie_flag = DAC_CTL & DAC_CTL_DDUDRIE0;
        if((RESET != ddudr_flag) && (RESET != ddudrie_flag)) {
            temp_flag = SET;
        }
    } else {
        ddudr_flag = DAC_STAT & DAC_STAT_DDUDR1;
        ddudrie_flag = DAC_CTL & DAC_CTL_DDUDRIE1;
        if((RESET != ddudr_flag) && (RESET != ddudrie_flag)) {
            temp_flag = SET;
        }
    }
    return temp_flag;
}