⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mcf548x_dma_ereq.h

📁 motorola 针对coldfire 5275 评估板的Dbug bootloader源程序
💻 H
字号:
/*
 * File:    mcf548x_dma_ereq.h
 * Purpose: Register and bit definitions for the MCF548X
 *
 * Notes:   
 *  
 */

#ifndef __MCF548X_DMA_EREQ_H__
#define __MCF548X_DMA_EREQ_H__

/*********************************************************************
*
* Multi-Channel DMA External Requests (DMA_EREQ)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_DMA_EREQ_EREQBAR0       (*(vuint32*)(void*)(&__MBAR[0x000D00]))
#define MCF_DMA_EREQ_EREQMASK0      (*(vuint32*)(void*)(&__MBAR[0x000D04]))
#define MCF_DMA_EREQ_EREQCTRL0      (*(vuint32*)(void*)(&__MBAR[0x000D08]))
#define MCF_DMA_EREQ_EREQBAR1       (*(vuint32*)(void*)(&__MBAR[0x000D10]))
#define MCF_DMA_EREQ_EREQMASK1      (*(vuint32*)(void*)(&__MBAR[0x000D14]))
#define MCF_DMA_EREQ_EREQCTRL1      (*(vuint32*)(void*)(&__MBAR[0x000D18]))
#define MCF_DMA_EREQ_EREQBAR(x)     (*(vuint32*)(void*)(&__MBAR[0x000D00+((x)*0x010)]))
#define MCF_DMA_EREQ_EREQMASK(x)    (*(vuint32*)(void*)(&__MBAR[0x000D04+((x)*0x010)]))
#define MCF_DMA_EREQ_EREQCTRL(x)    (*(vuint32*)(void*)(&__MBAR[0x000D08+((x)*0x010)]))

/* Bit definitions and macros for MCF_DMA_EREQ_EREQCTRL */
#define MCF_DMA_EREQ_EREQCTRL_EN                   (0x00000001)
#define MCF_DMA_EREQ_EREQCTRL_SYNC                 (0x00000002)
#define MCF_DMA_EREQ_EREQCTRL_DACKWID(x)           (((x)&0x00000003)<<2)
#define MCF_DMA_EREQ_EREQCTRL_BSEL(x)              (((x)&0x00000003)<<4)
#define MCF_DMA_EREQ_EREQCTRL_MD(x)                (((x)&0x00000003)<<6)
#define MCF_DMA_EREQ_EREQCTRL_MD_IDLE              (0x00000000)
#define MCF_DMA_EREQ_EREQCTRL_MD_LEVEL             (0x00000040)
#define MCF_DMA_EREQ_EREQCTRL_MD_EDGE              (0x00000080)
#define MCF_DMA_EREQ_EREQCTRL_MD_PIPED             (0x000000C0)
#define MCF_DMA_EREQ_EREQCTRL_BSEL_MEM_WRITE       (0x00000000)
#define MCF_DMA_EREQ_EREQCTRL_BSEL_MEM_READ        (0x00000010)
#define MCF_DMA_EREQ_EREQCTRL_BSEL_PERIPH_WRITE    (0x00000020)
#define MCF_DMA_EREQ_EREQCTRL_BSEL_PERIPH_READ     (0x00000030)
#define MCF_DMA_EREQ_EREQCTRL_DACKWID_ONE          (0x00000000)
#define MCF_DMA_EREQ_EREQCTRL_DACKWID_TWO          (0x00000004)
#define MCF_DMA_EREQ_EREQCTRL_DACKWID_THREE        (0x00000008)
#define MCF_DMA_EREQ_EREQCTRL_DACKWID_FOUR         (0x0000000C)

/********************************************************************/

#endif /* __MCF548X_DMA_EREQ_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -