/* Activate DMA basic cycle (used for memory-peripheral transfers). 
Prior to activating the DMA cycle, the channel and descriptor to be used must have been properly configured. */
void DMA_ActivateBasic(unsigned int channel, bool primary, bool useBurst, void *dst, void *src, unsigned int nMinus1)
/* Activate DMA basic cycle (used for memory-peripheral transfers). 
Prior to activating the DMA cycle, the channel and descriptor to be used must have been properly configured. */
void DMA_ActivateBasic(unsigned int channel, bool primary, bool useBurst, void *dst, void *src, unsigned int nMinus1)
{
  EFM_ASSERT(channel < DMA_CHAN_COUNT);
  EFM_ASSERT(nMinus1 <= (_DMA_CTRL_N_MINUS_1_MASK >> _DMA_CTRL_N_MINUS_1_SHIFT));
  DMA_Prepare(channel,
              dmaCycleCtrlBasic,
              primary,
              useBurst,
              dst,
              src,
              nMinus1);
  DMA->CHENS = 1 << channel;
}