drv_dma.h 490 字节
Newer Older
1 2 3
/**
 * @file drv_dma.h
 * @author 100ask development team
4
 * @brief
5 6
 * @version 0.1
 * @date 2022-06-16
7
 *
8
 * @copyright Copyright (c) 2022 Chongqing 100ASK Technology Co., LTD
9
 *
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
 */

#ifndef __DRV_DMA_H_
#define __DRV_DMA_H_

#include <rtthread.h>
#include "drv_common.h"

#ifdef __cplusplus
extern "C" {
#endif

struct dma_config {
    DMA_Type *dma_port;
    rt_uint32_t dma_req;
    IRQn_Type dma_irq;
    rt_uint32_t dma_rcc;
};

#ifdef __cplusplus
}
#endif

#endif /*__DRV_DMA_H_ */