MCU/lib/i2c.c
void I2C_Update_DMA_CH6(uint32_t *DMA_buffer, uint32_t nr_bytes) {
    /* Set the memory address that the DMA uses to read data from */
    DMA1_Channel6->CMAR = (uint32_t)(DMA_buffer);
    /* Set the number of data transfers */
    DMA1_Channel6->CNDTR = nr_bytes;
    /* Enable the DMA channel */
    DMA1_Channel6->CCR |= DMA_CCR6_EN;
}
/* Update the DMA module with new memory buffer information and then enable the
 * DMA channel */
Update the DMA module with new memory buffer information and then enable the
DMA channel
Update the DMA module with new memory buffer information and then enable the DMA channel
void I2C_Update_DMA_CH6(uint32_t *DMA_buffer, uint32_t nr_bytes) {
    DMA1_Channel6->CMAR = (uint32_t)(DMA_buffer);
    DMA1_Channel6->CNDTR = nr_bytes;
    DMA1_Channel6->CCR |= DMA_CCR6_EN;
}
void I2C_Update_DMA_CH6 ( uint32_t * DMA_buffer , uint32_t nr_bytes ) { DMA1_Channel6 -> CMAR = ( uint32_t ) ( DMA_buffer ) ; DMA1_Channel6 -> CNDTR = nr_bytes ; DMA1_Channel6 -> CCR |= DMA_CCR6_EN ; }
Update the DMA module with new memory buffer information and then enable the
 DMA channel
Update the DMA module with new memory buffer information and then enable the DMA channel
/* Set the memory address that the DMA uses to read data from */ /* Set the number of data transfers */ /* Enable the DMA channel */