• blmorris's avatar
    stmhal/dma.c: Modify dma_init() to accept init struct as an argument · c5175526
    blmorris authored
    This removes hard-coded DMA init params from dma_init(), instead defining
    these parameters in a DMA_InitTypeDef struct that gets passed as an
    argument to dma_init()
    This makes dma_init more generic so it can be used for I2S and SD Card,
    which require different initialization parameters.