Browse Source

Implement 16-Byte Burst Transfer Size

teensy4-core
lxphilli 9 years ago
parent
commit
d18f73d1b3
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      teensy3/DMAChannel.h

+ 6
- 1
teensy3/DMAChannel.h View File



// Set the data size used for each triggered transfer // Set the data size used for each triggered transfer
void transferSize(unsigned int len) { 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; TCD->NBYTES = 4;
if (TCD->SOFF != 0) TCD->SOFF = 4; if (TCD->SOFF != 0) TCD->SOFF = 4;
if (TCD->DOFF != 0) TCD->DOFF = 4; if (TCD->DOFF != 0) TCD->DOFF = 4;

Loading…
Cancel
Save