Browse Source

Merge pull request #26 from duff2013/master

fix for (long) destinationBuffer  TCD->ATTR_DST
teensy4-core
Paul Stoffregen 10 years ago
parent
commit
4c0c189a49
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy3/DMAChannel.h

+ 1
- 1
teensy3/DMAChannel.h View File

void destinationBuffer(volatile unsigned long p[], unsigned int len) { void destinationBuffer(volatile unsigned long p[], unsigned int len) {
TCD->DADDR = p; TCD->DADDR = p;
TCD->DOFF = 4; TCD->DOFF = 4;
TCD->ATTR_DST = 1;
TCD->ATTR_DST = 2;
TCD->NBYTES = 4; TCD->NBYTES = 4;
TCD->DLASTSGA = -len; TCD->DLASTSGA = -len;
TCD->BITER = len / 4; TCD->BITER = len / 4;

Loading…
Cancel
Save