Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DMA_DeInit(DMA1_Stream5);
- DMA_INIT.DMA_Channel = DMA_Channel_7;
- DMA_INIT.DMA_PeripheralBaseAddr = (uint32_t)&DAC->DHR12L1;//->DHR12R1;// &DAC->DHR12L1; DHR8R1;
- DMA_INIT.DMA_Memory0BaseAddr = (uint32_t)&dac_buff;
- DMA_INIT.DMA_DIR = DMA_DIR_MemoryToPeripheral;
- DMA_INIT.DMA_BufferSize = 512;
- DMA_INIT.DMA_PeripheralInc = DMA_PeripheralInc_Disable;
- DMA_INIT.DMA_MemoryInc = DMA_MemoryInc_Enable;
- DMA_INIT.DMA_PeripheralDataSize = DMA_PeripheralDataSize_HalfWord;
- DMA_INIT.DMA_MemoryDataSize = DMA_MemoryDataSize_HalfWord;
- DMA_INIT.DMA_Mode = DMA_Mode_Circular;
- DMA_INIT.DMA_Priority = DMA_Priority_High;
- DMA_INIT.DMA_FIFOMode = DMA_FIFOMode_Disable;
- DMA_INIT.DMA_FIFOThreshold = DMA_FIFOThreshold_HalfFull;
- DMA_INIT.DMA_MemoryBurst = DMA_MemoryBurst_Single;
- DMA_INIT.DMA_PeripheralBurst = DMA_PeripheralBurst_Single;
- DMA_Init(DMA1_Stream5, &DMA_INIT);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement