Merge pull request #288 from KarlK90/gd32vf103-fix-adc-dma

[GD32VF103] Fix ADC0 DMA stream mapping
This commit is contained in:
Fabien Poussin 2021-08-16 11:10:20 +02:00 committed by GitHub
commit e762f8f765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ void adc_lld_start(ADCDriver *adcp) {
if (adcp->state == ADC_STOP) {
#if GD32_ADC_USE_ADC0
if (&ADCD1 == adcp) {
adcp->dmastp = dmaStreamAllocI(GD32_DMA_STREAM_ID(1, 1),
adcp->dmastp = dmaStreamAllocI(GD32_DMA_STREAM_ID(0, 0),
GD32_ADC_ADC0_IRQ_PRIORITY,
(gd32_dmaisr_t)adc_lld_serve_rx_interrupt,
(void *)adcp);