AnsweredAssumed Answered

Bug Comment of HAL-DMA Lib

Question asked by astirfreak on Oct 8, 2015
Latest reply on Oct 9, 2015 by astirfreak
Hi,
in this part of the DMA-SetConfig() function the comments are wrong.
 /* Memory to Peripheral*/
  if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  {
    /* Configure DMA Stream destination address */
    hdma->Instance->PAR = DstAddress;

    /* Configure DMA Stream source address */
    hdma->Instance->M0AR = SrcAddress;
  }
  /* Peripheral to Memory */
  else
  {
    /* Configure DMA Stream source address */
    hdma->Instance->PAR = SrcAddress;
    
    /* Configure DMA Stream destination address */
    hdma->Instance->M0AR = DstAddress;
  }
}

Michael

Outcomes