瀏覽代碼

Corrected DMA destination size on Teensy LC's destinationCircular methods.

main
kbob 9 年之前
父節點
當前提交
87d2ae5cf0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      teensy3/DMAChannel.h

+ 2
- 2
teensy3/DMAChannel.h 查看文件

@@ -748,7 +748,7 @@ public:
uint32_t mod = len2mod(len);
if (mod == 0) return;
CFG->DAR = p;
CFG->DCR = (CFG->DCR & 0xF0F0F0FF) | DMA_DCR_DSIZE(1) | DMA_DCR_DINC
CFG->DCR = (CFG->DCR & 0xF0F0F0FF) | DMA_DCR_DSIZE(2) | DMA_DCR_DINC
| DMA_DCR_DMOD(mod);
CFG->DSR_BCR = len;
}
@@ -762,7 +762,7 @@ public:
uint32_t mod = len2mod(len);
if (mod == 0) return;
CFG->DAR = p;
CFG->DCR = (CFG->DCR & 0xF0F0F0FF) | DMA_DCR_DSIZE(1) | DMA_DCR_DINC
CFG->DCR = (CFG->DCR & 0xF0F0F0FF) | DMA_DCR_DSIZE(0) | DMA_DCR_DINC
| DMA_DCR_DMOD(mod);
CFG->DSR_BCR = len;
}

Loading…
取消
儲存