arm-linu-gcc 编译后怎么程序执行进第1个循环就出不来了
#define GPBCON (*(volatile unsigned long *)0x56000010)#define GPBDAT (*(volatile unsigned long *)0x56000014)
int main(void)
{
int a = 1;
GPBCON &= 0xfb03ff;
GPBCON |= (1<<10)|(1<<12)|(1<<14)|(1<<16);
GPBDAT &= 0x00;
while (a--){
GPBDAT |= (1<<5);
}
GPBDAT &= 0x00;
while ( 1 );
return 0;
}
页:
[1]