DMA_GetFlagStatus(DMA1_FLAG_TC4))xSemaphoreTake(i2cdevDmaEventI2c2, M2T(5));/* Disable the DMA1 Channel 4 */DMA_Cmd(I2C2_DMA_CHANNEL_TX, DISABLE);/* Clear the DMA Transfer complete flag */DMA_ClearFlag(DMA1_FLAG_TC4);