Error: this declaration has no storage class or type specifier

用IAR写Zigbee中断程序的时候,出现了很多警告和错误:
Error[Pe077]: this declaration has no storage class or type specifier
Warning[Pe609]: this kind of pragma may not be used here
Error[Pe065]: expected a “;”
Warning[Pe012]: parsing restarts here after previous syntax error
Error while running C/C++ Compiler
Error: this declaration has no storage class or type specifier_第1张图片
后来研究了一下,发现中断函数那里是__interrupt而不是_interrupt
注意是两个下划线!!!
注意是两个下划线!!!
注意是两个下划线!!!

多加了一个下划线后就没有错误了
Error: this declaration has no storage class or type specifier_第2张图片

你可能感兴趣的:(Zigbee学习)