Browse Source

Merge pull request #341 from FrankBoesing/patch-4

Fix Bug - CSR_DONE be cleared to write the MAJORELINK or ESG bits
teensy4-core
Paul Stoffregen 6 years ago
parent
commit
799a8c61d2
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      teensy4/DMAChannel.h

+ 1
- 0
teensy4/DMAChannel.h View File

DMABaseClass() {} DMABaseClass() {}


static inline void copy_tcd(TCD_t *dst, const TCD_t *src) { static inline void copy_tcd(TCD_t *dst, const TCD_t *src) {
dst->CSR &= ~DMA_TCD_CSR_DONE;
const uint32_t *p = (const uint32_t *)src; const uint32_t *p = (const uint32_t *)src;
uint32_t *q = (uint32_t *)dst; uint32_t *q = (uint32_t *)dst;
uint32_t t1, t2, t3, t4; uint32_t t1, t2, t3, t4;

Loading…
Cancel
Save