#include <stc15.h>    	            //包含支持IAP15W4K58S4单片机的头文件
#include <intrins.h>
#include <gpio.h>					 //I/O初始化文件
#define uchar unsigned char
#define uint  unsigned int
sbit Green_LED1=P1^0;
sbit Green_LED2=P1^1;
sbit Red_LED1=P1^2;
sbit Red_LED2=P1^3;
void main(void)
{
  	gpio();
	IT0=1;
	IT1=1;
  	EX0=1;
  	EX1=1;
  	EA=1;
  	while(1);
}
void INT0_ISR(void) interrupt 0
{
  	Green_LED1=!Green_LED1;
  	Green_LED2=!Green_LED2;
}
void INT1_ISR(void) interrupt 2
{
  	Red_LED1=!Red_LED1;
  	Red_LED2=!Red_LED2;
}
