怎样把下面的switch语句用for语句替换.
switch(phyid_id)
{
case 0x01:
jhuytftt(0x01,0x00000003);//
break;
case 0x02:
jhuytftt(0x02,0x00000003);//
break;
case 0x03:
jhuytftt(0x03,0x0000000c);//d8
break;
case 0x04:
jhuytftt(0x04,0x0000000c);//d8
break;
case 0x05:
jhuytftt(0x05,0x00000030);//d8
break;
case 0x06:
jhuytftt(0x06,0x00000030);//d8
break;
case 0x07:
jhuytftt(0x07,0x000000c0);//d8
break;
case 0x08:
jhuytftt(0x08,0x000000c0);//d8
break;
case 0x09:
jhuytftt(0x09,0x00000300);//d8
break;
case 0x0a:
jhuytftt(0x0a,0x00000300);//d8
//SetCurMax(0x01,0x0000f230);//03
break;
case 0x0b:
jhuytftt(0x0b,0x00000c00);//d8
break;
case 0x0c:
jhuytftt(0x0c,0x00000c00);//d8
break;
case 0x0d:
jhuytftt(0x0d,0x00003000);//d8
break;
case 0x0e:
jhuytftt(0x0e,0x00003000);//d8
break;
case 0x0f:
jhuytftt(0x0f,0x0000c000);//d8
break;
case 0x10:
jhuytftt(0x10,0x0000c000);//d8
break;
}
|