cancel
Showing results for 
Search instead for 
Did you mean: 

There is a wrong comment in stm32f1xx_hal_dma.c

cao wentao
Associate II
Posted on April 05, 2017 at 07:49

static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)

{

/* Configure DMA Channel data length */

hdma->Instance->CNDTR = DataLength;

/* Peripheral to Memory */

if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)

{

/* Configure DMA Channel destination address */

hdma->Instance->CPAR = DstAddress;

/* Configure DMA Channel source address */

hdma->Instance->CMAR = SrcAddress;

}

/* Memory to Peripheral */

else

{

/* Configure DMA Channel source address */

hdma->Instance->CPAR = SrcAddress;

/* Configure DMA Channel destination address */

hdma->Instance->CMAR = DstAddress;

}

}

#hal #stm32f1 #dma
1 REPLY 1
Khouloud GARSI
Lead II
Posted on April 05, 2017 at 12:07

Hi

caowent

‌,

Thank you for your feedback. I will check this and report it internally if confirmed.

Khouloud.