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

📄 mcf523x_eport.h

📁 freemodbus-v019.zip 是v0.19版本的代码
💻 H
字号:
/************************************************************************************ * Copyright @ 1995-2005 metrowerks inc. All rights reserved.                       * *                                                                                  * *                                                                                  * *    $RCSfile: mcf523x_eport.h,v $                                                            * *    $Revision: 1.1 $                                                              * *    $Date: 2006/05/14 21:59:16 $                                                  * *                                                                                  * * DESCRIPTION                                                                      * *   Register and bit definitions for the MCF523X.                                  * *                                                                                  * *                                                                                  * *                                                                                  * * NOTE                                                                             * *                                                                                  * *                                                                                  * *                                                                                  * * HISTORY                                                                          * *                                                                                  *	 ************************************************************************************/#ifndef __MCF523X_EPORT_H__#define __MCF523X_EPORT_H__/*********************************************************************** Edge Port Module (EPORT)**********************************************************************//* Register read/write macros */#define MCF_EPORT_EPPAR    (*(vuint16*)(void*)(&__IPSBAR[0x130000]))#define MCF_EPORT_EPDDR    (*(vuint8 *)(void*)(&__IPSBAR[0x130002]))#define MCF_EPORT_EPIER    (*(vuint8 *)(void*)(&__IPSBAR[0x130003]))#define MCF_EPORT_EPDR     (*(vuint8 *)(void*)(&__IPSBAR[0x130004]))#define MCF_EPORT_EPPDR    (*(vuint8 *)(void*)(&__IPSBAR[0x130005]))#define MCF_EPORT_EPFR     (*(vuint8 *)(void*)(&__IPSBAR[0x130006]))/* Bit definitions and macros for MCF_EPORT_EPPAR */#define MCF_EPORT_EPPAR_EPPA1(x)         (((x)&0x0003)<<2)#define MCF_EPORT_EPPAR_EPPA2(x)         (((x)&0x0003)<<4)#define MCF_EPORT_EPPAR_EPPA3(x)         (((x)&0x0003)<<6)#define MCF_EPORT_EPPAR_EPPA4(x)         (((x)&0x0003)<<8)#define MCF_EPORT_EPPAR_EPPA5(x)         (((x)&0x0003)<<10)#define MCF_EPORT_EPPAR_EPPA6(x)         (((x)&0x0003)<<12)#define MCF_EPORT_EPPAR_EPPA7(x)         (((x)&0x0003)<<14)#define MCF_EPORT_EPPAR_EPPAx_LEVEL      (0)#define MCF_EPORT_EPPAR_EPPAx_RISING     (1)#define MCF_EPORT_EPPAR_EPPAx_FALLING    (2)#define MCF_EPORT_EPPAR_EPPAx_BOTH       (3)/* Bit definitions and macros for MCF_EPORT_EPDDR */#define MCF_EPORT_EPDDR_EPDD1            (0x02)#define MCF_EPORT_EPDDR_EPDD2            (0x04)#define MCF_EPORT_EPDDR_EPDD3            (0x08)#define MCF_EPORT_EPDDR_EPDD4            (0x10)#define MCF_EPORT_EPDDR_EPDD5            (0x20)#define MCF_EPORT_EPDDR_EPDD6            (0x40)#define MCF_EPORT_EPDDR_EPDD7            (0x80)/* Bit definitions and macros for MCF_EPORT_EPIER */#define MCF_EPORT_EPIER_EPIE1            (0x02)#define MCF_EPORT_EPIER_EPIE2            (0x04)#define MCF_EPORT_EPIER_EPIE3            (0x08)#define MCF_EPORT_EPIER_EPIE4            (0x10)#define MCF_EPORT_EPIER_EPIE5            (0x20)#define MCF_EPORT_EPIER_EPIE6            (0x40)#define MCF_EPORT_EPIER_EPIE7            (0x80)/* Bit definitions and macros for MCF_EPORT_EPDR */#define MCF_EPORT_EPDR_EPD1              (0x02)#define MCF_EPORT_EPDR_EPD2              (0x04)#define MCF_EPORT_EPDR_EPD3              (0x08)#define MCF_EPORT_EPDR_EPD4              (0x10)#define MCF_EPORT_EPDR_EPD5              (0x20)#define MCF_EPORT_EPDR_EPD6              (0x40)#define MCF_EPORT_EPDR_EPD7              (0x80)/* Bit definitions and macros for MCF_EPORT_EPPDR */#define MCF_EPORT_EPPDR_EPPD1            (0x02)#define MCF_EPORT_EPPDR_EPPD2            (0x04)#define MCF_EPORT_EPPDR_EPPD3            (0x08)#define MCF_EPORT_EPPDR_EPPD4            (0x10)#define MCF_EPORT_EPPDR_EPPD5            (0x20)#define MCF_EPORT_EPPDR_EPPD6            (0x40)#define MCF_EPORT_EPPDR_EPPD7            (0x80)/* Bit definitions and macros for MCF_EPORT_EPFR */#define MCF_EPORT_EPFR_EPF1              (0x02)#define MCF_EPORT_EPFR_EPF2              (0x04)#define MCF_EPORT_EPFR_EPF3              (0x08)#define MCF_EPORT_EPFR_EPF4              (0x10)#define MCF_EPORT_EPFR_EPF5              (0x20)#define MCF_EPORT_EPFR_EPF6              (0x40)#define MCF_EPORT_EPFR_EPF7              (0x80)/********************************************************************/#endif /* __MCF523X_EPORT_H__ */

⌨️ 快捷键说明

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