void on_low_interrupt(void) __interrupt 2;
void on_low_interrupt(void) __interrupt 2
{
#ifdef CONFIG_ENABLE_I2C
i2c_handle_interrupt();
#endif
#ifdef CONFIG_ENABLE_SERIAL
serial_handle_interrupt();
#endif
}
我正在调整一些代码以在 PIC18F47Q10 上以从模式运行 I2C。
该代码是为另一个类似的 PIC 编写的,但它确实需要一些调整。
这是原始代码:https ://github.com/texane/pic18f_i2c
在被定义之前我不明白这个电话,我也不明白'2'是什么意思。
这是来自int.c
原始发布的文件。任何帮助或解释表示赞赏。
现在我正在评论所有这些,并希望没有它也能正常工作。
看到的错误是:
"unexpected token: __interrupt
Unable to resolve identifier on_low_interrupt."
"error: expected function body after function declarator"