瀏覽代碼

Implement 16-Byte Burst Transfer Size

teensy4-core
lxphilli 9 年之前
父節點
當前提交
d18f73d1b3
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. +6
    -1
      teensy3/DMAChannel.h

+ 6
- 1
teensy3/DMAChannel.h 查看文件

@@ -286,7 +286,12 @@ public:

// Set the data size used for each triggered transfer
void transferSize(unsigned int len) {
if (len == 4) {
if (len == 16) {
TCD->NBYTES = 16;
if (TCD->SOFF != 0) TCD->SOFF = 16;
if (TCD->DOFF != 0) TCD->DOFF = 16;
TCD->ATTR = (TCD->ATTR & 0xF8F8) | 0x0404;
} else if (len == 4) {
TCD->NBYTES = 4;
if (TCD->SOFF != 0) TCD->SOFF = 4;
if (TCD->DOFF != 0) TCD->DOFF = 4;

Loading…
取消
儲存