/* Configure LCDC DMA under flow mode and under flow error data .  */
void LCDC_DMAUnderFlowConfig(LCDC_TypeDef *LCDCx, u32 DmaUnFlwMode, u32 ErrorData)
/* Configure LCDC DMA under flow mode and under flow error data .  */
void LCDC_DMAUnderFlowConfig(LCDC_TypeDef *LCDCx, u32 DmaUnFlwMode, u32 ErrorData)
{
	assert_param(IS_LCDC_ALL_PERIPH(LCDCx));
	assert_param(IS_LCDC_DMA_DMA_UNDERFLOW_MODE(DmaUnFlwMode));
	assert_param(ErrorData <= 0xFFFF);
	LCDCx->LCDC_UNDFLW_CFG &= ~LCDC_UNDFLW_CFG_UNDMODE;
	LCDCx->LCDC_UNDFLW_CFG |= DmaUnFlwMode;
	if(DmaUnFlwMode==LCDC_DMAUNFW_OUTPUT_ERRORDATA) {
		LCDCx->LCDC_UNDFLW_CFG &= ~LCDC_UNDFLW_CFG_ERROUTDATA;
		LCDCx->LCDC_UNDFLW_CFG |= ErrorData;
	}
}