From: asterix Date: Mon, 26 Sep 2011 16:26:50 +0000 (+0000) Subject: Move dmac setting to application. X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=81e5735ef14ab87f0d95a2c87bb895296dfaf886;p=bertos.git Move dmac setting to application. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5094 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/drv/dmac_sam3.c b/bertos/cpu/cortex-m3/drv/dmac_sam3.c index e9706686..06dba6ea 100644 --- a/bertos/cpu/cortex-m3/drv/dmac_sam3.c +++ b/bertos/cpu/cortex-m3/drv/dmac_sam3.c @@ -136,7 +136,7 @@ void dmac_configureDmac(int ch, size_t transfer_size, uint32_t cfg, uint32_t ctr { DMAC_CHDR = BV(ch); - *dmac_ch[ch].cfg = cfg | DMAC_CFG_FIFOCFG_ALAP_CFG | (0x1 << DMAC_CFG_AHB_PROT_SHIFT) | BV(DMAC_CFG_SOD); + *dmac_ch[ch].cfg = cfg | DMAC_CFG_FIFOCFG_ALAP_CFG | (0x1 << DMAC_CFG_AHB_PROT_SHIFT); *dmac_ch[ch].ctrla = ctrla | (transfer_size & DMAC_CTRLA_BTSIZE_MASK); *dmac_ch[ch].ctrlb = ctrlb & ~BV(DMAC_CTRLB_IEN); }