I am using the Infineon XC866 and Keil uvision. Do I have to add application specific code to the interrupt function create in the int.c file by Dave ? Can the interrupt function not be added into te Main.c file ? How do I call the functions ('delay' and 'leftturn' defined in main.c) from within the External 0 Interrupt routine ?
void INT_viExt0(void) interrupt EXT0INT { SFR_PAGE(_su0, SST2); // switch to page0 IRCON0 &= ~(ubyte)0x01; // clear EXINT0 // USER CODE BEGIN (IR_IsrExt0,2) IO_vWritePort(P3, 0x00); //Write P3 --> Off //back(0x40, 0x00); // Speed - Voltage CCU6_PAGE = 0x00; // switch to page 0 CCU6_CC60SRL = 0x00; CCU6_CC60SRH = 0x40; CCU6_TCTR4L = 0x40; // enable shadow transfer //forward(0x00, 0x00); // Fully off - Reverse CCU6_PAGE = 0x00; // switch to page 0 CCU6_CC61SRL = 0x10; CCU6_CC61SRH = 0x00; CCU6_TCTR4L = 0x40; // enable shadow transfer delay(); leftturn(); // USER CODE END SFR_PAGE(_su0, RST2); // restore the old SCU page } // End of function INT_viExt0