/* Audio Library for Teensy 3.X
 * Copyright (c) 2014, Paul Stoffregen, paul@pjrc.com
 *
 * Development of this audio library was funded by PJRC.COM, LLC by sales of
 * Teensy and Audio Adaptor boards.  Please support PJRC's efforts to develop
 * open source software by purchasing Teensy or other PJRC products.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice, development funding notice, and this permission
 * notice shall be included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

#ifndef dma_chan_h_
#define dma_chan_h_

/*
TODO: remove this file - made obsolete by DMAChannel.h

#define DMA_ISR(ch)                     DMA_ISR_EXP(ch)
#define DMA_ISR_EXP(ch)                 dma_ch ## ch ## _isr

#define IRQ_DMA_CH(ch)                  IRQ_DMA_CH_EXP(ch)
#define IRQ_DMA_CH_EXP(ch)              IRQ_DMA_CH ## ch

#define DMAMUX0_CHCFG(ch)               DMAMUX0_CHCFG_EXP(ch)
#define DMAMUX0_CHCFG_EXP(ch)           DMAMUX0_CHCFG ## ch

#define DMA_TCD_SADDR(ch)               DMA_TCD_SADDR_EXP(ch)
#define DMA_TCD_SADDR_EXP(ch)           DMA_TCD ## ch ## _SADDR

#define DMA_TCD_SOFF(ch)                DMA_TCD_SOFF_EXP(ch)
#define DMA_TCD_SOFF_EXP(ch)            DMA_TCD ## ch ## _SOFF

#define DMA_TCD_ATTR(ch)                DMA_TCD_ATTR_EXP(ch)
#define DMA_TCD_ATTR_EXP(ch)            DMA_TCD ## ch ## _ATTR

#define DMA_TCD_NBYTES_MLNO(ch)         DMA_TCD_NBYTES_MLNO_EXP(ch)
#define DMA_TCD_NBYTES_MLNO_EXP(ch)     DMA_TCD ## ch ## _NBYTES_MLNO

#define DMA_TCD_SLAST(ch)               DMA_TCD_SLAST_EXP(ch)
#define DMA_TCD_SLAST_EXP(ch)           DMA_TCD ## ch ## _SLAST

#define DMA_TCD_DADDR(ch)               DMA_TCD_DADDR_EXP(ch)
#define DMA_TCD_DADDR_EXP(ch)           DMA_TCD ## ch ## _DADDR

#define DMA_TCD_DOFF(ch)                DMA_TCD_DOFF_EXP(ch)
#define DMA_TCD_DOFF_EXP(ch)            DMA_TCD ## ch ## _DOFF

#define DMA_TCD_CITER_ELINKNO(ch)       DMA_TCD_CITER_ELINKNO_EXP(ch)
#define DMA_TCD_CITER_ELINKNO_EXP(ch)   DMA_TCD ## ch ## _CITER_ELINKNO

#define DMA_TCD_DLASTSGA(ch)            DMA_TCD_DLASTSGA_EXP(ch)
#define DMA_TCD_DLASTSGA_EXP(ch)        DMA_TCD ## ch ## _DLASTSGA

#define DMA_TCD_BITER_ELINKNO(ch)       DMA_TCD_BITER_ELINKNO_EXP(ch)
#define DMA_TCD_BITER_ELINKNO_EXP(ch)   DMA_TCD ## ch ## _BITER_ELINKNO

#define DMA_TCD_CSR(ch)                 DMA_TCD_CSR_EXP(ch)
#define DMA_TCD_CSR_EXP(ch)             DMA_TCD ## ch ## _CSR
*/

#endif
