Przeglądaj źródła

Merge pull request #77 from kbob/DMA-LC-2

Corrected DMA destination size on Teensy LC's destinationCircular met…
main
Paul Stoffregen 7 lat temu
rodzic
commit
1abe4b01b2
Brak konta powiązanego z adresem e-mail autora
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      teensy3/DMAChannel.h

+ 2
- 2
teensy3/DMAChannel.h Wyświetl plik

@@ -784,7 +784,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;
}
@@ -798,7 +798,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;
}

Ładowanie…
Anuluj
Zapisz