www.pudn.com > Source_program.rar > MAIN.C
#include#include "Target\44blib.h" #include #include "einttest\eint.h" /********************************************/ // ARMSYS实验六:外部中断应用测试 // 描述:编写中断处理程序 /********************************************/ void * function[][2]= { (void *)Test_Eint, "Ext. Int ", 0,0 }; void Main(void) { char aa,ch1,ch2; Port_Init(); Uart_Init(0,115200); Led_Display(0xf); Delay(0); Beep(0x1); Uart_Select(0); //Select UART0// Uart_Printf("\n\n*************************************************************************"); Beep(0x0); Uart_Printf("\n* 立泰电子 *"); Uart_Printf("\n* -S3C44B0X功能部件:中断测试- *"); Uart_Printf("\n* Version 1.11 *"); Uart_Printf("\n* Email:rao_dali@263.net *"); Uart_Printf("\n* UART Config--COM:115.2kbps,8Bit,NP,UART0 *"); Uart_Printf("\n*------------------Begin to Start EXINT test,OK? (Y/N)--------------------*"); Led_Display(0x0); aa= Uart_Getch(); if((aa=='Y')||(aa=='y')) while(1) { ( (void (*)(void)) (function[0][0]))(); } }