/* Initializes the DMA channel peripheral registers to their default reset values.  */
void DMA_DeInit(uint32_t Channel)
/* Initializes the DMA channel peripheral registers to their default reset values.  */
void DMA_DeInit(uint32_t Channel)
{
  __IO uint32_t *addr;
  assert_parameters(IS_DMA_CHANNEL(Channel));
  addr = &DMA->C0CTL + Channel*4;
  *addr &= ~(DMA_CCTL_EN | DMA_CCTL_STOP);
  DMA->IE &= ~((1<<(Channel))\
              |(1<<(Channel+4))\
              |(1<<(Channel+8)));
  DMA->STS = (1<<(Channel+4))\
            |(1<<(Channel+8))\
            |(1<<(Channel+12));
  addr = &DMA->C0CTL + Channel*4;
  *addr =  DMA_CxCTL_RSTValue;
  addr = &DMA->C0SRC + Channel*4;
  *addr =  DMA_CxSRC_RSTValue;
  addr = &DMA->C0DST + Channel*4;
  *addr =  DMA_CxDST_RSTValue;
}