XTI peripheral configuration ==================================================*/ void Set_XTI(void) { GPIO_Config(GPIO1, 0x4000, GPIO_IN_TRI_TTL); // Set P1.14 for interrupt
XTI_Init(); // Initialize the XTI XTI_LineModeConfig(XTI_Line8, XTI_FallingEdge); // Set Line 8 edge XTI_LineConfig(XTI_Line8, ENABLE); // Enable the External interrupts on line 8 XTI_ModeConfig(XTI_Interrupt, ENABLE);
EIC_IRQChannelPriorityConfig(XTI_IRQChannel,3); // Set the XTI IRQ Channel priority to 3 EIC_IRQChannelConfig(XTI_IRQChannel,ENABLE); // Enable XTI IRQ Interrupts EIC_IRQConfig( ENABLE ); // Enable interrupts
Port 1.11 - CAN module receive pin (CANRX). Port 1.13 - HDLC clock (HCLK) or I2C.0 Clock (I0.SCL) Port 1.14 - HDLC receive pin (HRXD) or I2C.0 Data (SDA) 。。。。。。。