老是报错,不知道是哪个地方语法错误,请大虾指点一二,多谢!
1、不报错的:#pragma interrupt_handler int2_isr:iv_INT2
int2_isr();// external interrupt on INT2;
2、加了‘VOID“后报错:
!E E:\practice\satisfy\display.c(75): illegal statement termination
!E E:\practice\satisfy\display.c(75): skipping `void'
#pragma interrupt_handler int2_isr:iv_INT2
void int2_isr();// external interrupt on INT2;
3、加函数体报错:
E:\practice\satisfy\display.c(76): syntax error; found `{' expecting `;'
#pragma interrupt_handler int2_isr:iv_INT2
int2_isr()// external interrupt on INT2;
{
} |