lpcware

GPDMA Bug or Mistake?

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by a.valda on Mon Jul 29 23:47:32 MST 2013
I have a problem with the function Chip_DMA_SGTransfer
I am working with DAC peripheral
I have to put in DMA_TransferDescriptor_t the Address of DAC Peripheral
DMA_TransferMyDescriptor.dst = (uint32_t) & (LPC_DAC-> CR),
but the Chip_DMA_SGTransfer function use .dst as if it were the Number of Channel

to make it work properly i do this sequence:
1) DMA_TransferMyDescriptor.dst = 9;// (uint32_t) & (LPC_DAC-> CR);
2) Call Chip_DMA_SGTransfer
3) Put DMA_TransferMyDescriptor.dst = (uint32_t) & (LPC_DAC-> CR);

Can anyone give me more information?

Outcomes