/** @defgroup dma_defines DMA Defines * * @ingroup STM32F0xx_defines * * @brief Defined Constants and Types for the STM32F0xx DMA Controller * * @version 1.0.0 * * @date 10 July 2013 * * LGPL License Terms @ref lgpl_license */ /* * This file is part of the libopencm3 project. * * This library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library. If not, see . */ #ifndef LIBOPENCM3_DMA_H #define LIBOPENCM3_DMA_H #include /* DMA channel selection register (DMAx_CSELR) */ #define DMA_CSELR(dma_base) MMIO32((dma_base) + 0xA8) #define DMA1_CSELR DMA_CSELR(DMA1) #define DMA2_CSELR DMA_CSELR(DMA2) #endif