rout_1=~((~rout_1)<<1);
}
}
/*******function body thread_1********/
void Thread_1(void const *arg)
{
uint32_t rout; //p2 low input
LPC_GPIO2->FIODIR=0x00000fff; //p2.0~p2.11 out mode
while(1)
{
/*******************u5***************/
GPIO_PortWrite(2,0x00000fff,0x00000fff); //init u5,u6,u7,all of the LED are OFF
GPIO_PortWrite(2,0x00000fff,0x000008ff); //shut u6,u7,and choose u5
rout=0x000008fb;
YIWEI(rout); //led_on one by one
/**********************u6******************/
GPIO_PortWrite(2,0x00000fff,0x00000fff); //init u5,u6,u7,all of the LED are OFF
rout=0x000004fb;
GPIO_PortWrite(2,0x00000fff,0x000004ff); //shut u5,u7,and choose u6
YIWEI(rout);