📄 mcf52255_gpio.h
字号:
/********************************************************************/
/* Coldfire C Header File
*
* Date : 2009/04/30
* Revision : 0.8
*
* Copyright : 1997 - 2009 Freescale Semiconductor, Inc. All Rights Reserved.
*
* http : www.freescale.com
* mail : support@freescale.com
*/
#ifndef __MCF52255_GPIO_H__
#define __MCF52255_GPIO_H__
/*********************************************************************
*
* General Purpose I/O (GPIO)
*
*********************************************************************/
/* Register read/write macros */
#define MCF_GPIO_PORTTI (*(vuint8 *)(0x40100004))
#define MCF_GPIO_DDRTI (*(vuint8 *)(0x4010001C))
#define MCF_GPIO_SETTI (*(vuint8 *)(0x40100034))
#define MCF_GPIO_CLRTI (*(vuint8 *)(0x4010004C))
#define MCF_GPIO_PTIPAR (*(vuint8 *)(0x40100064))
#define MCF_GPIO_PORTTJ (*(vuint8 *)(0x40100006))
#define MCF_GPIO_DDRTJ (*(vuint8 *)(0x4010001E))
#define MCF_GPIO_SETTJ (*(vuint8 *)(0x40100036))
#define MCF_GPIO_CLRTJ (*(vuint8 *)(0x4010004E))
#define MCF_GPIO_PTJPAR (*(vuint8 *)(0x40100066))
#define MCF_GPIO_PORTNQ (*(vuint8 *)(0x40100008))
#define MCF_GPIO_DDRNQ (*(vuint8 *)(0x40100020))
#define MCF_GPIO_SETNQ (*(vuint8 *)(0x40100038))
#define MCF_GPIO_CLRNQ (*(vuint8 *)(0x40100050))
#define MCF_GPIO_PNQPAR (*(vuint16*)(0x40100068))
#define MCF_GPIO_PORTAN (*(vuint8 *)(0x4010000A))
#define MCF_GPIO_DDRAN (*(vuint8 *)(0x40100022))
#define MCF_GPIO_SETAN (*(vuint8 *)(0x4010003A))
#define MCF_GPIO_CLRAN (*(vuint8 *)(0x40100052))
#define MCF_GPIO_PANPAR (*(vuint8 *)(0x4010006A))
#define MCF_GPIO_PORTAS (*(vuint8 *)(0x4010000B))
#define MCF_GPIO_DDRAS (*(vuint8 *)(0x40100023))
#define MCF_GPIO_SETAS (*(vuint8 *)(0x4010003B))
#define MCF_GPIO_CLRAS (*(vuint8 *)(0x40100053))
#define MCF_GPIO_PASPAR (*(vuint8 *)(0x4010006B))
#define MCF_GPIO_PORTQS (*(vuint8 *)(0x4010000C))
#define MCF_GPIO_DDRQS (*(vuint8 *)(0x40100024))
#define MCF_GPIO_SETQS (*(vuint8 *)(0x4010003C))
#define MCF_GPIO_CLRQS (*(vuint8 *)(0x40100054))
#define MCF_GPIO_PQSPAR (*(vuint16*)(0x4010006C))
#define MCF_GPIO_PORTTA (*(vuint8 *)(0x4010000E))
#define MCF_GPIO_DDRTA (*(vuint8 *)(0x40100026))
#define MCF_GPIO_SETTA (*(vuint8 *)(0x4010003E))
#define MCF_GPIO_CLRTA (*(vuint8 *)(0x40100056))
#define MCF_GPIO_PTAPAR (*(vuint8 *)(0x4010006E))
#define MCF_GPIO_PORTTC (*(vuint8 *)(0x4010000F))
#define MCF_GPIO_DDRTC (*(vuint8 *)(0x40100027))
#define MCF_GPIO_SETTC (*(vuint8 *)(0x4010003F))
#define MCF_GPIO_CLRTC (*(vuint8 *)(0x40100057))
#define MCF_GPIO_PTCPAR (*(vuint8 *)(0x4010006F))
#define MCF_GPIO_PORTUA (*(vuint8 *)(0x40100011))
#define MCF_GPIO_DDRUA (*(vuint8 *)(0x40100029))
#define MCF_GPIO_SETUA (*(vuint8 *)(0x40100041))
#define MCF_GPIO_CLRUA (*(vuint8 *)(0x40100059))
#define MCF_GPIO_PUAPAR (*(vuint8 *)(0x40100071))
#define MCF_GPIO_PORTUB (*(vuint8 *)(0x40100012))
#define MCF_GPIO_DDRUB (*(vuint8 *)(0x4010002A))
#define MCF_GPIO_SETUB (*(vuint8 *)(0x40100042))
#define MCF_GPIO_CLRUB (*(vuint8 *)(0x4010005A))
#define MCF_GPIO_PUBPAR (*(vuint8 *)(0x40100072))
#define MCF_GPIO_PORTUC (*(vuint8 *)(0x40100013))
#define MCF_GPIO_DDRUC (*(vuint8 *)(0x4010002B))
#define MCF_GPIO_SETUC (*(vuint8 *)(0x40100043))
#define MCF_GPIO_CLRUC (*(vuint8 *)(0x4010005B))
#define MCF_GPIO_PUCPAR (*(vuint8 *)(0x40100073))
/* Bit definitions and macros for MCF_GPIO_PORTTI */
#define MCF_GPIO_PORTTI_PORTTI0 (0x1)
#define MCF_GPIO_PORTTI_PORTTI1 (0x2)
#define MCF_GPIO_PORTTI_PORTTI2 (0x4)
#define MCF_GPIO_PORTTI_PORTTI3 (0x8)
#define MCF_GPIO_PORTTI_PORTTI4 (0x10)
#define MCF_GPIO_PORTTI_PORTTI5 (0x20)
#define MCF_GPIO_PORTTI_PORTTI6 (0x40)
#define MCF_GPIO_PORTTI_PORTTI7 (0x80)
/* Bit definitions and macros for MCF_GPIO_DDRTI */
#define MCF_GPIO_DDRTI_DDRTI0 (0x1)
#define MCF_GPIO_DDRTI_DDRTI1 (0x2)
#define MCF_GPIO_DDRTI_DDRTI2 (0x4)
#define MCF_GPIO_DDRTI_DDRTI3 (0x8)
#define MCF_GPIO_DDRTI_DDRTI4 (0x10)
#define MCF_GPIO_DDRTI_DDRTI5 (0x20)
#define MCF_GPIO_DDRTI_DDRTI6 (0x40)
#define MCF_GPIO_DDRTI_DDRTI7 (0x80)
/* Bit definitions and macros for MCF_GPIO_SETTI */
#define MCF_GPIO_SETTI_SETTI0 (0x1)
#define MCF_GPIO_SETTI_SETTI1 (0x2)
#define MCF_GPIO_SETTI_SETTI2 (0x4)
#define MCF_GPIO_SETTI_SETTI3 (0x8)
#define MCF_GPIO_SETTI_SETTI4 (0x10)
#define MCF_GPIO_SETTI_SETTI5 (0x20)
#define MCF_GPIO_SETTI_SETTI6 (0x40)
#define MCF_GPIO_SETTI_SETTI7 (0x80)
/* Bit definitions and macros for MCF_GPIO_CLRTI */
#define MCF_GPIO_CLRTI_CLRTI0 (0x1)
#define MCF_GPIO_CLRTI_CLRTI1 (0x2)
#define MCF_GPIO_CLRTI_CLRTI2 (0x4)
#define MCF_GPIO_CLRTI_CLRTI3 (0x8)
#define MCF_GPIO_CLRTI_CLRTI4 (0x10)
#define MCF_GPIO_CLRTI_CLRTI5 (0x20)
#define MCF_GPIO_CLRTI_CLRTI6 (0x40)
#define MCF_GPIO_CLRTI_CLRTI7 (0x80)
/* Bit definitions and macros for MCF_GPIO_PTIPAR */
#define MCF_GPIO_PTIPAR_PTIPAR0 (0x1)
#define MCF_GPIO_PTIPAR_FEC_COL_GPIO (0)
#define MCF_GPIO_PTIPAR_FEC_COL_FEC_COL (0x1)
#define MCF_GPIO_PTIPAR_PTIPAR1 (0x2)
#define MCF_GPIO_PTIPAR_FEC_CRS_GPIO (0)
#define MCF_GPIO_PTIPAR_FEC_CRS_FEC_CRS (0x2)
#define MCF_GPIO_PTIPAR_PTIPAR2 (0x4)
#define MCF_GPIO_PTIPAR_FEC_RXCLK_GPIO (0)
#define MCF_GPIO_PTIPAR_FEC_RXCLK_FEC_RXCLK (0x4)
#define MCF_GPIO_PTIPAR_PTIPAR3 (0x8)
#define MCF_GPIO_PTIPAR_FEC_RXD0_GPIO (0)
#define MCF_GPIO_PTIPAR_FEC_RXD0_FEC_RXD0 (0x8)
#define MCF_GPIO_PTIPAR_PTIPAR4 (0x10)
#define MCF_GPIO_PTIPAR_FEC_RXD1_GPIO (0)
#define MCF_GPIO_PTIPAR_FEC_RXD1_FEC_RXD1 (0x10)
#define MCF_GPIO_PTIPAR_PTIPAR5 (0x20)
#define MCF_GPIO_PTIPAR_FEC_RXD2_GPIO (0)
#define MCF_GPIO_PTIPAR_FEC_RXD2_FEC_RXD2 (0x20)
#define MCF_GPIO_PTIPAR_PTIPAR6 (0x40)
#define MCF_GPIO_PTIPAR_FEC_RXD3_GPIO (0)
#define MCF_GPIO_PTIPAR_FEC_RXD3_FEC_RXD3 (0x40)
#define MCF_GPIO_PTIPAR_PTIPAR7 (0x80)
#define MCF_GPIO_PTIPAR_FEC_RXDV_GPIO (0)
#define MCF_GPIO_PTIPAR_FEC_RXDV_FEC_RXDV (0x80)
/* Bit definitions and macros for MCF_GPIO_PORTTJ */
#define MCF_GPIO_PORTTJ_PORTTJ0 (0x1)
#define MCF_GPIO_PORTTJ_PORTTJ1 (0x2)
#define MCF_GPIO_PORTTJ_PORTTJ2 (0x4)
#define MCF_GPIO_PORTTJ_PORTTJ3 (0x8)
#define MCF_GPIO_PORTTJ_PORTTJ4 (0x10)
#define MCF_GPIO_PORTTJ_PORTTJ5 (0x20)
#define MCF_GPIO_PORTTJ_PORTTJ6 (0x40)
#define MCF_GPIO_PORTTJ_PORTTJ7 (0x80)
/* Bit definitions and macros for MCF_GPIO_DDRTJ */
#define MCF_GPIO_DDRTJ_DDRTJ0 (0x1)
#define MCF_GPIO_DDRTJ_DDRTJ1 (0x2)
#define MCF_GPIO_DDRTJ_DDRTJ2 (0x4)
#define MCF_GPIO_DDRTJ_DDRTJ3 (0x8)
#define MCF_GPIO_DDRTJ_DDRTJ4 (0x10)
#define MCF_GPIO_DDRTJ_DDRTJ5 (0x20)
#define MCF_GPIO_DDRTJ_DDRTJ6 (0x40)
#define MCF_GPIO_DDRTJ_DDRTJ7 (0x80)
/* Bit definitions and macros for MCF_GPIO_SETTJ */
#define MCF_GPIO_SETTJ_SETTJ0 (0x1)
#define MCF_GPIO_SETTJ_SETTJ1 (0x2)
#define MCF_GPIO_SETTJ_SETTJ2 (0x4)
#define MCF_GPIO_SETTJ_SETTJ3 (0x8)
#define MCF_GPIO_SETTJ_SETTJ4 (0x10)
#define MCF_GPIO_SETTJ_SETTJ5 (0x20)
#define MCF_GPIO_SETTJ_SETTJ6 (0x40)
#define MCF_GPIO_SETTJ_SETTJ7 (0x80)
/* Bit definitions and macros for MCF_GPIO_CLRTJ */
#define MCF_GPIO_CLRTJ_CLRTJ0 (0x1)
#define MCF_GPIO_CLRTJ_CLRTJ1 (0x2)
#define MCF_GPIO_CLRTJ_CLRTJ2 (0x4)
#define MCF_GPIO_CLRTJ_CLRTJ3 (0x8)
#define MCF_GPIO_CLRTJ_CLRTJ4 (0x10)
#define MCF_GPIO_CLRTJ_CLRTJ5 (0x20)
#define MCF_GPIO_CLRTJ_CLRTJ6 (0x40)
#define MCF_GPIO_CLRTJ_CLRTJ7 (0x80)
/* Bit definitions and macros for MCF_GPIO_PTJPAR */
#define MCF_GPIO_PTJPAR_PTJPAR0 (0x1)
#define MCF_GPIO_PTJPAR_FEC_RXER_GPIO (0)
#define MCF_GPIO_PTJPAR_FEC_RXER_FEC_RXER (0x1)
#define MCF_GPIO_PTJPAR_PTJPAR1 (0x2)
#define MCF_GPIO_PTJPAR_FEC_TXCLK_GPIO (0)
#define MCF_GPIO_PTJPAR_FEC_TXCLK_FEC_TXCLK (0x2)
#define MCF_GPIO_PTJPAR_PTJPAR2 (0x4)
#define MCF_GPIO_PTJPAR_FEC_TXD0_GPIO (0)
#define MCF_GPIO_PTJPAR_FEC_TXD0_FEC_TXD0 (0x4)
#define MCF_GPIO_PTJPAR_PTJPAR3 (0x8)
#define MCF_GPIO_PTJPAR_FEC_TXD1_GPIO (0)
#define MCF_GPIO_PTJPAR_FEC_TXD1_FEC_TXD1 (0x8)
#define MCF_GPIO_PTJPAR_PTJPAR4 (0x10)
#define MCF_GPIO_PTJPAR_FEC_TXD2_GPIO (0)
#define MCF_GPIO_PTJPAR_FEC_TXD2_FEC_TXD2 (0x10)
#define MCF_GPIO_PTJPAR_PTJPAR5 (0x20)
#define MCF_GPIO_PTJPAR_FEC_TXD3_GPIO (0)
#define MCF_GPIO_PTJPAR_FEC_TXD3_FEC_TXD3 (0x20)
#define MCF_GPIO_PTJPAR_PTJPAR6 (0x40)
#define MCF_GPIO_PTJPAR_FEC_TXEN_GPIO (0)
#define MCF_GPIO_PTJPAR_FEC_TXEN_FEC_TXEN (0x40)
#define MCF_GPIO_PTJPAR_PTJPAR7 (0x80)
#define MCF_GPIO_PTJPAR_FEC_TXER_GPIO (0)
#define MCF_GPIO_PTJPAR_FEC_TXER_FEC_TXER (0x80)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -