/* Setthe source address of the specified dma channel.  */
en_result_t Dma_SetSourceAddress(en_dma_channel_t enCh, uint32_t u32Address)
/* Setthe source address of the specified dma channel.  */
en_result_t Dma_SetSourceAddress(en_dma_channel_t enCh, uint32_t u32Address)
{
  ASSERT(IS_VALID_CH(enCh));
  if(!IS_VALID_CH(enCh))
  {
    return ErrorInvalidParameter;
  }
  if(enCh == DmaCh0)
  {
    M0P_DMAC->SRCADR0_f.SRCADR = u32Address;
  }
  else
  {
    M0P_DMAC->SRCADR1_f.SRCADR = u32Address;;     }
  return Ok;
}