rt-thread-official/bsp/airm2m/air32f103/libraries/rt_drivers/drv_dma.h

35 lines
551 B
C

/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2022-02-22 airm2m first version
*/
#ifndef __DRV_DMA_H_
#define __DRV_DMA_H_
#include <rtthread.h>
#include <board.h>
#ifdef __cplusplus
extern "C" {
#endif
#define DMA_INSTANCE_TYPE DMA_Channel_TypeDef
struct dma_config {
DMA_INSTANCE_TYPE *Instance;
rt_uint32_t dma_rcc;
IRQn_Type dma_irq;
};
#ifdef __cplusplus
}
#endif
#endif /*__DRV_DMA_H_ */