libmaple/stm32f2-f4/dma.c
static int config_to_per(dma_tube_reg_map *dummy, dma_tube_config *cfg) {
    config_scr(dummy, cfg, 13, DMA_SCR_MINC, 11, DMA_SCR_PINC,
               DMA_SCR_DIR_MEM_TO_PER);
    dummy->SM0AR = (uint32)cfg->tube_src;
    dummy->SPAR = (uint32)cfg->tube_dst;
    return DMA_TUBE_CFG_SUCCESS;
}
/* Helper for when cfg->tube_src is peripheral */
Helper for when cfg->tube_src is peripheral
Helper for when cfg - > tube_src is peripheral
static int config_to_per(dma_tube_reg_map *dummy, dma_tube_config *cfg) {
    config_scr(dummy, cfg, 13, DMA_SCR_MINC, 11, DMA_SCR_PINC,
               DMA_SCR_DIR_MEM_TO_PER);
    dummy->SM0AR = (uint32)cfg->tube_src;
    dummy->SPAR = (uint32)cfg->tube_dst;
    return DMA_TUBE_CFG_SUCCESS;
}
static int config_to_per ( dma_tube_reg_map * dummy , dma_tube_config * cfg ) { config_scr ( dummy , cfg , 13 , DMA_SCR_MINC , 11 , DMA_SCR_PINC , DMA_SCR_DIR_MEM_TO_PER ) ; dummy -> SM0AR = ( uint32 ) cfg -> tube_src ; dummy -> SPAR = ( uint32 ) cfg -> tube_dst ; return DMA_TUBE_CFG_SUCCESS ; }
Helper for when cfg->tube_src is peripheral
Helper for when cfg - > tube_src is peripheral