dma.TCD->DLASTSGA = 0; | dma.TCD->DLASTSGA = 0; | ||||
dma.TCD->BITER_ELINKNO = sizeof(i2s_tx_buffer) / 2; | dma.TCD->BITER_ELINKNO = sizeof(i2s_tx_buffer) / 2; | ||||
dma.TCD->DADDR = (void *)((uint32_t)&I2S1_TDR0 + 2); | dma.TCD->DADDR = (void *)((uint32_t)&I2S1_TDR0 + 2); | ||||
dma.TCD->CSR = DMA_TCD_CSR_INTHALF | DMA_TCD_CSR_INTMAJOR; | |||||
dma.triggerAtHardwareEvent(DMAMUX_SOURCE_SAI1_TX); | dma.triggerAtHardwareEvent(DMAMUX_SOURCE_SAI1_TX); | ||||
dma.enable(); | dma.enable(); | ||||