📄 mpc8xx.h
字号:
#define MPC8XX_CPIC_CICR_SCCP_SCC3 (0x00200000)
#define MPC8XX_CPIC_CICR_SCCP_SCC4 (0x00300000)
#define MPC8XX_CPIC_CICR_SCBP_SCC1 (0x00000000)
#define MPC8XX_CPIC_CICR_SCBP_SCC2 (0x00040000)
#define MPC8XX_CPIC_CICR_SCBP_SCC3 (0x00080000)
#define MPC8XX_CPIC_CICR_SCBP_SCC4 (0x000C0000)
#define MPC8XX_CPIC_CICR_SCAP_SCC1 (0x00000000)
#define MPC8XX_CPIC_CICR_SCAP_SCC2 (0x00010000)
#define MPC8XX_CPIC_CICR_SCAP_SCC3 (0x00020000)
#define MPC8XX_CPIC_CICR_SCAP_SCC4 (0x00030000)
#define MPC8XX_CPIC_CICR_IRL_0 (0x00000000)
#define MPC8XX_CPIC_CICR_IRL_1 (0x00002000)
#define MPC8XX_CPIC_CICR_IRL_2 (0x00004000)
#define MPC8XX_CPIC_CICR_IRL_3 (0x00006000)
#define MPC8XX_CPIC_CICR_IRL_4 (0x00008000)
#define MPC8XX_CPIC_CICR_IRL_5 (0x0000A000)
#define MPC8XX_CPIC_CICR_IRL_6 (0x0000C000)
#define MPC8XX_CPIC_CICR_IRL_7 (0x0000E000)
#define MPC8XX_CPIC_CICR_HP_1F (0x00001F00)
#define MPC8XX_CPIC_CICR_HP_1E (0x00001E00)
#define MPC8XX_CPIC_CICR_HP_1D (0x00001D00)
#define MPC8XX_CPIC_CICR_HP_1C (0x00001C00)
#define MPC8XX_CPIC_CICR_HP_1B (0x00001B00)
#define MPC8XX_CPIC_CICR_HP_1A (0x00001A00)
#define MPC8XX_CPIC_CICR_HP_19 (0x00001900)
#define MPC8XX_CPIC_CICR_HP_18 (0x00001800)
#define MPC8XX_CPIC_CICR_HP_17 (0x00001700)
#define MPC8XX_CPIC_CICR_HP_16 (0x00001600)
#define MPC8XX_CPIC_CICR_HP_15 (0x00001500)
#define MPC8XX_CPIC_CICR_HP_14 (0x00001400)
#define MPC8XX_CPIC_CICR_HP_13 (0x00001300)
#define MPC8XX_CPIC_CICR_HP_12 (0x00001200)
#define MPC8XX_CPIC_CICR_HP_11 (0x00001100)
#define MPC8XX_CPIC_CICR_HP_10 (0x00001000)
#define MPC8XX_CPIC_CICR_HP_F (0x00000F00)
#define MPC8XX_CPIC_CICR_HP_E (0x00000E00)
#define MPC8XX_CPIC_CICR_HP_D (0x00000D00)
#define MPC8XX_CPIC_CICR_HP_C (0x00000C00)
#define MPC8XX_CPIC_CICR_HP_B (0x00000B00)
#define MPC8XX_CPIC_CICR_HP_A (0x00000A00)
#define MPC8XX_CPIC_CICR_HP_9 (0x00000900)
#define MPC8XX_CPIC_CICR_HP_8 (0x00000800)
#define MPC8XX_CPIC_CICR_HP_7 (0x00000700)
#define MPC8XX_CPIC_CICR_HP_6 (0x00000600)
#define MPC8XX_CPIC_CICR_HP_5 (0x00000500)
#define MPC8XX_CPIC_CICR_HP_4 (0x00000400)
#define MPC8XX_CPIC_CICR_HP_3 (0x00000300)
#define MPC8XX_CPIC_CICR_HP_2 (0x00000200)
#define MPC8XX_CPIC_CICR_HP_1 (0x00000100)
#define MPC8XX_CPIC_CICR_HP_0 (0x00000000)
#define MPC8XX_CPIC_CICR_IEN (0x00000080)
#define MPC8XX_CPIC_CICR_SPS (0x00000001)
#define MPC8XX_CPIC_CIPR_PC15 (0x80000000)
#define MPC8XX_CPIC_CIPR_SCC1 (0x40000000)
#define MPC8XX_CPIC_CIPR_SCC2 (0x20000000)
#define MPC8XX_CPIC_CIPR_SCC3 (0x10000000)
#define MPC8XX_CPIC_CIPR_SCC4 (0x08000000)
#define MPC8XX_CPIC_CIPR_PC14 (0x04000000)
#define MPC8XX_CPIC_CIPR_TIMER1 (0x02000000)
#define MPC8XX_CPIC_CIPR_PC13 (0x01000000)
#define MPC8XX_CPIC_CIPR_PC12 (0x00800000)
#define MPC8XX_CPIC_CIPR_SDMA (0x00400000)
#define MPC8XX_CPIC_CIPR_IDMA1 (0x00200000)
#define MPC8XX_CPIC_CIPR_IDMA2 (0x00100000)
#define MPC8XX_CPIC_CIPR_TIMER2 (0x00040000)
#define MPC8XX_CPIC_CIPR_RTT (0x00020000)
#define MPC8XX_CPIC_CIPR_I2C (0x00010000)
#define MPC8XX_CPIC_CIPR_PC11 (0x00008000)
#define MPC8XX_CPIC_CIPR_PC10 (0x00004000)
#define MPC8XX_CPIC_CIPR_TIMER3 (0x00001000)
#define MPC8XX_CPIC_CIPR_PC9 (0x00000800)
#define MPC8XX_CPIC_CIPR_PC8 (0x00000400)
#define MPC8XX_CPIC_CIPR_PC7 (0x00000200)
#define MPC8XX_CPIC_CIPR_TIMER4 (0x00000080)
#define MPC8XX_CPIC_CIPR_PC6 (0x00000040)
#define MPC8XX_CPIC_CIPR_SPI (0x00000020)
#define MPC8XX_CPIC_CIPR_SMC1 (0x00000010)
#define MPC8XX_CPIC_CIPR_SMC2 (0x00000008)
#define MPC8XX_CPIC_CIPR_PIP (0x00000008)
#define MPC8XX_CPIC_CIPR_PC5 (0x00000004)
#define MPC8XX_CPIC_CIPR_PC4 (0x00000002)
#define MPC8XX_CPIC_CIMR_PC15 (0x80000000)
#define MPC8XX_CPIC_CIMR_SCC1 (0x40000000)
#define MPC8XX_CPIC_CIMR_SCC2 (0x20000000)
#define MPC8XX_CPIC_CIMR_SCC3 (0x10000000)
#define MPC8XX_CPIC_CIMR_SCC4 (0x08000000)
#define MPC8XX_CPIC_CIMR_PC14 (0x04000000)
#define MPC8XX_CPIC_CIMR_TIMER1 (0x02000000)
#define MPC8XX_CPIC_CIMR_PC13 (0x01000000)
#define MPC8XX_CPIC_CIMR_PC12 (0x00800000)
#define MPC8XX_CPIC_CIMR_SDMA (0x00400000)
#define MPC8XX_CPIC_CIMR_IDMA1 (0x00200000)
#define MPC8XX_CPIC_CIMR_IDMA2 (0x00100000)
#define MPC8XX_CPIC_CIMR_TIMER2 (0x00040000)
#define MPC8XX_CPIC_CIMR_RTT (0x00020000)
#define MPC8XX_CPIC_CIMR_I2C (0x00010000)
#define MPC8XX_CPIC_CIMR_PC11 (0x00008000)
#define MPC8XX_CPIC_CIMR_PC10 (0x00004000)
#define MPC8XX_CPIC_CIMR_TIMER3 (0x00001000)
#define MPC8XX_CPIC_CIMR_PC9 (0x00000800)
#define MPC8XX_CPIC_CIMR_PC8 (0x00000400)
#define MPC8XX_CPIC_CIMR_PC7 (0x00000200)
#define MPC8XX_CPIC_CIMR_TIMER4 (0x00000080)
#define MPC8XX_CPIC_CIMR_PC6 (0x00000040)
#define MPC8XX_CPIC_CIMR_SPI (0x00000020)
#define MPC8XX_CPIC_CIMR_SMC1 (0x00000010)
#define MPC8XX_CPIC_CIMR_SMC2 (0x00000008)
#define MPC8XX_CPIC_CIMR_PIP (0x00000008)
#define MPC8XX_CPIC_CIMR_PC5 (0x00000004)
#define MPC8XX_CPIC_CIMR_PC4 (0x00000002)
#define MPC8XX_CPIC_CISR_PC15 (0x80000000)
#define MPC8XX_CPIC_CISR_SCC1 (0x40000000)
#define MPC8XX_CPIC_CISR_SCC2 (0x20000000)
#define MPC8XX_CPIC_CISR_SCC3 (0x10000000)
#define MPC8XX_CPIC_CISR_SCC4 (0x08000000)
#define MPC8XX_CPIC_CISR_PC14 (0x04000000)
#define MPC8XX_CPIC_CISR_TIMER1 (0x02000000)
#define MPC8XX_CPIC_CISR_PC13 (0x01000000)
#define MPC8XX_CPIC_CISR_PC12 (0x00800000)
#define MPC8XX_CPIC_CISR_SDMA (0x00400000)
#define MPC8XX_CPIC_CISR_IDMA1 (0x00200000)
#define MPC8XX_CPIC_CISR_IDMA2 (0x00100000)
#define MPC8XX_CPIC_CISR_TIMER2 (0x00040000)
#define MPC8XX_CPIC_CISR_RTT (0x00020000)
#define MPC8XX_CPIC_CISR_I2C (0x00010000)
#define MPC8XX_CPIC_CISR_PC11 (0x00008000)
#define MPC8XX_CPIC_CISR_PC10 (0x00004000)
#define MPC8XX_CPIC_CISR_TIMER3 (0x00001000)
#define MPC8XX_CPIC_CISR_PC9 (0x00000800)
#define MPC8XX_CPIC_CISR_PC8 (0x00000400)
#define MPC8XX_CPIC_CISR_PC7 (0x00000200)
#define MPC8XX_CPIC_CISR_TIMER4 (0x00000080)
#define MPC8XX_CPIC_CISR_PC6 (0x00000040)
#define MPC8XX_CPIC_CISR_SPI (0x00000020)
#define MPC8XX_CPIC_CISR_SMC1 (0x00000010)
#define MPC8XX_CPIC_CISR_SMC2 (0x00000008)
#define MPC8XX_CPIC_CISR_PIP (0x00000008)
#define MPC8XX_CPIC_CISR_PC5 (0x00000004)
#define MPC8XX_CPIC_CISR_PC4 (0x00000002)
#endif /* Mpc8xx_cpic */
/***********************************************************************/
#ifdef Mpc8xx_portio
/*
* Input/Output Port, PORTIO
*/
typedef volatile struct
{
uint16 PADIR; /* Port A Data Direction Register */
uint16 PAPAR; /* Port A Pin Assignment Register */
uint16 PAODR; /* Port A Open Drain Register */
uint16 PADAT; /* Port A Data Register */
uint16 reserved1[4];
uint16 PCDIR; /* Port C Data Direction Register */
uint16 PCPAR; /* Port C Pin Assignment Register */
uint16 PCSO; /* Port C Special Options */
uint16 PCDAT; /* Port C Data Register */
uint16 PCINT; /* Port C Interrupt Control Register*/
uint16 reserved2[3];
uint16 PDDIR; /* Port D Data Direction Register */
uint16 PDPAR; /* Port D Pin Assignment Register */
uint16 reserved3;
uint16 PDDAT; /* Port D Data Register */
uint16 reserved4[(1+0x97f-0x978)/2];
} MPC8XX_PORTIO;
#define MPC8XX_PORTIO_PADIR_PA0 (0x8000)
#define MPC8XX_PORTIO_PADIR_PA1 (0x4000)
#define MPC8XX_PORTIO_PADIR_PA2 (0x2000)
#define MPC8XX_PORTIO_PADIR_PA3 (0x1000)
#define MPC8XX_PORTIO_PADIR_PA4 (0x0800)
#define MPC8XX_PORTIO_PADIR_PA5 (0x0400)
#define MPC8XX_PORTIO_PADIR_PA6 (0x0200)
#define MPC8XX_PORTIO_PADIR_PA7 (0x0100)
#define MPC8XX_PORTIO_PADIR_PA8 (0x0080)
#define MPC8XX_PORTIO_PADIR_PA9 (0x0040)
#define MPC8XX_PORTIO_PADIR_PA10 (0x0020)
#define MPC8XX_PORTIO_PADIR_PA11 (0x0010)
#define MPC8XX_PORTIO_PADIR_PA12 (0x0008)
#define MPC8XX_PORTIO_PADIR_PA13 (0x0004)
#define MPC8XX_PORTIO_PADIR_PA14 (0x0002)
#define MPC8XX_PORTIO_PADIR_PA15 (0x0001)
#define MPC8XX_PORTIO_PAPAR_PA0 (0x8000)
#define MPC8XX_PORTIO_PAPAR_PA1 (0x4000)
#define MPC8XX_PORTIO_PAPAR_PA2 (0x2000)
#define MPC8XX_PORTIO_PAPAR_PA3 (0x1000)
#define MPC8XX_PORTIO_PAPAR_PA4 (0x0800)
#define MPC8XX_PORTIO_PAPAR_PA5 (0x0400)
#define MPC8XX_PORTIO_PAPAR_PA6 (0x0200)
#define MPC8XX_PORTIO_PAPAR_PA7 (0x0100)
#define MPC8XX_PORTIO_PAPAR_PA8 (0x0080)
#define MPC8XX_PORTIO_PAPAR_PA9 (0x0040)
#define MPC8XX_PORTIO_PAPAR_PA10 (0x0020)
#define MPC8XX_PORTIO_PAPAR_PA11 (0x0010)
#define MPC8XX_PORTIO_PAPAR_PA12 (0x0008)
#define MPC8XX_PORTIO_PAPAR_PA13 (0x0004)
#define MPC8XX_PORTIO_PAPAR_PA14 (0x0002)
#define MPC8XX_PORTIO_PAPAR_PA15 (0x0001)
#define MPC8XX_PORTIO_PAODR_PA9 (0x0040)
#define MPC8XX_PORTIO_PAODR_PA10 (0x0020)
#define MPC8XX_PORTIO_PAODR_PA11 (0x0010)
#define MPC8XX_PORTIO_PAODR_PA12 (0x0008)
#define MPC8XX_PORTIO_PAODR_PA14 (0x0002)
#define MPC8XX_PORTIO_PADAT_PA0 (0x8000)
#define MPC8XX_PORTIO_PADAT_PA1 (0x4000)
#define MPC8XX_PORTIO_PADAT_PA2 (0x2000)
#define MPC8XX_PORTIO_PADAT_PA3 (0x1000)
#define MPC8XX_PORTIO_PADAT_PA4 (0x0800)
#define MPC8XX_PORTIO_PADAT_PA5 (0x0400)
#define MPC8XX_PORTIO_PADAT_PA6 (0x0200)
#define MPC8XX_PORTIO_PADAT_PA7 (0x0100)
#define MPC8XX_PORTIO_PADAT_PA8 (0x0080)
#define MPC8XX_PORTIO_PADAT_PA9 (0x0040)
#define MPC8XX_PORTIO_PADAT_PA10 (0x0020)
#define MPC8XX_PORTIO_PADAT_PA11 (0x0010)
#define MPC8XX_PORTIO_PADAT_PA12 (0x0008)
#define MPC8XX_PORTIO_PADAT_PA13 (0x0004)
#define MPC8XX_PORTIO_PADAT_PA14 (0x0002)
#define MPC8XX_PORTIO_PADAT_PA15 (0x0001)
#define MPC8XX_PORTIO_PCDIR_PC4 (0x0800)
#define MPC8XX_PORTIO_PCDIR_PC5 (0x0400)
#define MPC8XX_PORTIO_PCDIR_PC6 (0x0200)
#define MPC8XX_PORTIO_PCDIR_PC7 (0x0100)
#define MPC8XX_PORTIO_PCDIR_PC8 (0x0080)
#define MPC8XX_PORTIO_PCDIR_PC9 (0x0040)
#define MPC8XX_PORTIO_PCDIR_PC10 (0x0020)
#define MPC8XX_PORTIO_PCDIR_PC11 (0x0010)
#define MPC8XX_PORTIO_PCDIR_PC12 (0x0008)
#define MPC8XX_PORTIO_PCDIR_PC13 (0x0004)
#define MPC8XX_PORTIO_PCDIR_PC14 (0x0002)
#define MPC8XX_PORTIO_PCDIR_PC15 (0x0001)
#define MPC8XX_PORTIO_PCPAR_PC4 (0x0800)
#define MPC8XX_PORTIO_PCPAR_PC5 (0x0400)
#define MPC8XX_PORTIO_PCPAR_PC6 (0x0200)
#define MPC8XX_PORTIO_PCPAR_PC7 (0x0100)
#define MPC8XX_PORTIO_PCPAR_PC8 (0x0080)
#define MPC8XX_PORTIO_PCPAR_PC9 (0x0040)
#define MPC8XX_PORTIO_PCPAR_PC10 (0x0020)
#define MPC8XX_PORTIO_PCPAR_PC11 (0x0010)
#define MPC8XX_PORTIO_PCPAR_PC12 (0x0008)
#define MPC8XX_PORTIO_PCPAR_PC13 (0x0004)
#define MPC8XX_PORTIO_PCPAR_PC14 (0x0002)
#define MPC8XX_PORTIO_PCPAR_PC15 (0x0001)
#define MPC8XX_PORTIO_PCSO_PC4 (0x0800)
#define MPC8XX_PORTIO_PCSO_PC5 (0x0400)
#define MPC8XX_PORTIO_PCSO_PC6 (0x0200)
#define MPC8XX_PORTIO_PCSO_PC7 (0x0100)
#define MPC8XX_PORTIO_PCSO_PC8 (0x0080)
#define MPC8XX_PORTIO_PCSO_PC9 (0x0040)
#define MPC8XX_PORTIO_PCSO_PC10 (0x0020)
#define MPC8XX_PORTIO_PCSO_PC11 (0x0010)
#define MPC8XX_PORTIO_PCSO_PC14 (0x0002)
#define MPC8XX_PORTIO_PCSO_PC15 (0x0001)
#define MPC8XX_PORTIO_PCSO_CD4 (0x0800)
#define MPC8XX_PORTIO_PCSO_CTS4 (0x0400)
#define MPC8XX_PORTIO_PCSO_CD3 (0x0200)
#define MPC8XX_PORTIO_PCSO_CTS3 (0x0100)
#define MPC8XX_PORTIO_PCSO_CD2 (0x0080)
#define MPC8XX_PORTIO_PCSO_CTS2 (0x0040)
#define MPC8XX_PORTIO_PCSO_CD1 (0x0020)
#define MPC8XX_PORTIO_PCSO_CTS1 (0x0010)
#define MPC8XX_PORTIO_PCSO_DREQ1 (0x0002)
#define MPC8XX_PORTIO_PCSO_DREQ0 (0x0001)
#define MPC8XX_PORTIO_PCDAT_PC4 (0x0800)
#define MPC8XX_PORTIO_PCDAT_PC5 (0x0400)
#define MPC8XX_PORTIO_PCDAT_PC6 (0x0200)
#define MPC8XX_PORTIO_PCDAT_PC7 (0x0100)
#define MPC8XX_PORTIO_PCDAT_PC8 (0x0080)
#define MPC8XX_PORTIO_PCDAT_PC9 (0x0040)
#define MPC8XX_PORTIO_PCDAT_PC10 (0x0020)
#define MPC8XX_PORTIO_PCDAT_PC11 (0x0010)
#define MPC8XX_PORTIO_PCDAT_PC12 (0x0008)
#define MPC8XX_PORTIO_PCDAT_PC13 (0x0004)
#define MPC8XX_PORTIO_PCDAT_PC14 (0x0002)
#define MPC8XX_PORTIO_PCDAT_PC15 (0x0001)
#define MPC8XX_PORTIO_PCINT_PC4 (0x0800)
#define MPC8XX_PORTIO_PCINT_PC5 (0x0400)
#define MPC8XX_PORTIO_PCINT_PC6 (0x0200)
#define MPC8XX_PORTIO_PCINT_PC7 (0x0100)
#define MPC8XX_PORTIO_PCINT_PC8 (0x0080)
#define MPC8XX_PORTIO_PCINT_PC9 (0x0040)
#define MPC8XX_PORTIO_PCINT_PC10 (0x0020)
#define MPC8XX_PORTIO_PCINT_PC11 (0x0010)
#define MPC8XX_PORTIO_PCINT_PC12 (0x0008)
#define MPC8XX_PORTIO_PCINT_PC13 (0x0004)
#define MPC8XX_PORTIO_PCINT_PC14 (0x0002)
#define MPC8XX_PORTIO_PCINT_PC15 (0x0001)
#define MPC8XX_PORTIO_PCINT_EDM4 (0x0800)
#define MPC8XX_PORTIO_PCINT_EDM5 (0x0400)
#define MPC8XX_PORTIO_PCINT_EDM6 (0x0200)
#define MPC8XX_PORTIO_PCINT_EDM7 (0x0100)
#define MPC8XX_PORTIO_PCINT_EDM8 (0x0080)
#define MPC8XX_PORTIO_PCINT_EDM9 (0x0040)
#define MPC8XX_PORTIO_PCINT_EDM10 (0x0020)
#define MPC8XX_PORTIO_PCINT_EDM11 (0x0010)
#define MPC8XX_PORTIO_PCINT_EDM12 (0x0008)
#define MPC8XX_PORTIO_PCINT_EDM13 (0x0004)
#define MPC8XX_PORTIO_PCINT_EDM14 (0x0002)
#define MPC8XX_PORTIO_PCINT_EDM15 (0x0001)
#define MPC8XX_PORTIO_PDDIR_PD0 (0x8000)
#define MPC8XX_PORTIO_PDDIR_PD1 (0x4000)
#define MPC8XX_PORTIO_PDDIR_PD2 (0x2000)
#define MPC8XX_PORTIO_PDDIR_PD3 (0x1000)
#define MPC8XX_PORTIO_PDDIR_PD4 (0x0800)
#define MPC8XX_PORTIO_PDDIR_PD5 (0x0400)
#define MPC8XX_PORTIO_PDDIR_PD6 (0x0200)
#define MPC8XX_PORTIO_PDDIR_PD7 (0x0100)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -