Skip to content

Commit

Permalink
Fix a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joy committed May 13, 2022
1 parent 136eb5b commit 9da9be4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions os/hal/ports/WB32/LLD/ADCv1/hal_adc_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ void adc_lld_init(void) {
ADCD1.dmamode.src_addr_inc = WB32_DMAC_SRC_ADDR_NOC;
ADCD1.dmamode.dst_addr_inc = WB32_DMAC_DST_ADDR_INC;
ADCD1.dmamode.trf_tfc = WB32_DMAC_TRF_TFC_P2MD;
ADCD1.dmamode.src_master_if = WB32_DMAC_DST_MASTER_IF_APB;
ADCD1.dmamode.dst_master_if = WB32_DMAC_SRC_MASTER_IF_AHB;
ADCD1.dmamode.src_master_if = WB32_DMAC_SRC_MASTER_IF_APB;
ADCD1.dmamode.dst_master_if = WB32_DMAC_DST_MASTER_IF_AHB;
ADCD1.dmamode.src_auto_reload = WB32_DMAC_SRC_AUTO_RELOAD_DIS;
ADCD1.dmamode.dst_auto_reload = WB32_DMAC_DST_AUTO_RELOAD_EN;
ADCD1.dmamode.ch_priority = WB32_ADC_ADC1_DMA_PRIORITY;
Expand Down

0 comments on commit 9da9be4

Please sign in to comment.