看到论坛有大神发的C6713的入门教程,可是只有主程序一段,所以将此程序
void delay(unsigned int i)
{
while(i-);
}
void main()
{
* (unsigned int *)Ox01B00000 |=1<<13;
* (unsigned int *)Ox01B00004 |=1<<13;
while(1)
{
* (unsigned int *)Ox01B00008 &=~(1<<13);
delay (Oxffff);
* (unsigned int *)Ox01B00008 |=1<<13;
delay (Oxffff);
}
}
放到6713GPIO的例程中,程序却报错
line 48: error: declaration may not appear after executable statement in block
line 49: error: expected a ";"
求大神指教 |