#include
int main(void){
uart_Init();
int a;
for( a=1;a<=200;a++) {
P1_1=1;
delay_nus(1700);
P1_1=0;
delay_nms(20);
}
for(a=1;a<=200;a++) {
P1_0=1;
delay_nus(1700);
P1_0=0;
delay_nms(20);
}
}
错误提示:
05.C(6): error C141: syntax error near 'int'
05.C(6): error C202: 'a': undefined identifier
05.C(7): error C202: 'a': undefined identifier
05.C(16): error C202: 'a': undefined identifier
Target not created
谢谢了~~
谢谢了,刚弄好了错误,是int a;这条句子应该放在uart_Init();之前。 分送你了-_-