2022-08-31 15:14:16 +08:00
|
|
|
/**
|
|
|
|
* @file drv_dma.h
|
|
|
|
* @author 100ask development team
|
2022-08-31 22:00:02 +08:00
|
|
|
* @brief
|
2022-08-31 15:14:16 +08:00
|
|
|
* @version 0.1
|
|
|
|
* @date 2022-06-16
|
2022-08-31 22:00:02 +08:00
|
|
|
*
|
2022-08-31 15:14:16 +08:00
|
|
|
* @copyright Copyright (c) 2022 Chongqing 100ASK Technology Co., LTD
|
2022-08-31 22:00:02 +08:00
|
|
|
*
|
2022-08-31 15:14:16 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#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_ */
|