| 12345678910111213141516171819202122232425262728293031323334 |
- /*
- * 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_ */
|