Browse Source

Corrected conversion from words to bytes in transferCount().

teensy4-core
kbob 9 years ago
parent
commit
3676d1621f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy3/DMAChannel.h

+ 1
- 1
teensy3/DMAChannel.h View File

d = (dcr >> 17) & 3; d = (dcr >> 17) & 3;
if (s == 0 || d == 0) n = 2; if (s == 0 || d == 0) n = 2;
else if (s == 2 || d == 2) n = 1; else if (s == 2 || d == 2) n = 1;
CFG->DSR_BCR = len >> n;
CFG->DSR_BCR = len << n;
} }


/*************************************************/ /*************************************************/

Loading…
Cancel
Save