#define rGPBCON (*(volatile unsigned *)0x56000010) //Port B control
#define rGPBDAT (*(volatile unsigned *)0x56000014) //Port B data
#define rGPBUP (*(volatile unsigned *)0x56000018) //Pull-up control B
/*void delay(unsigned int t)
{
unsigned int i;
for(;t>0;t--)
for(i=2000;i>0;i--) ;
}*/
要这样才可以: 奇怪!
#define rGPBCON (*(volatile unsigned *)0x56000010) //Port B control
#define rGPBDAT (*(volatile unsigned *)0x56000014) //Port B data
#define rGPBUP (*(volatile unsigned *)0x56000018) //Pull-up control B
/*void delay(unsigned int t)
{
unsigned int i;
for(;t>0;t--)
for(i=2000;i>0;i--) ;
}*/