Fix Bug - CSR_DONE be cleared to write the MAJORELINK or ESG bitsmain
@@ -374,6 +374,7 @@ protected: | |||
DMABaseClass() {} | |||
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; | |||
uint32_t *q = (uint32_t *)dst; | |||
uint32_t t1, t2, t3, t4; |