#ifndef _DMA_H__
#define _DMA_H__
#include "bsp/bsp.h"
#include "os/os_types.h"

#define PWM_TIMER_CC3_DMA_DEV DMA0
#define PWM_TIMER_CC3_DMA_CLK RCU_DMA0
#define PWM_TIMER_CC3_DMA_CHAN DMA_CH3

#define ADC_TIMER_CC0_DMA_DEV DMA0
#define ADC_TIMER_CC0_DMA_CLK RCU_DMA0
#define ADC_TIMER_CC0_DMA_CHAN DMA_CH5

extern u16 pwm_timer_dma_buf[2];
extern u16 adc_timer_dma_buf[3];

void dma0_init(void);

#endif /*_DMA_H__ */

