板子msp-exp430f5529lp,用的是energia,移植arduino的程序到430上来,interrupt怎...
[复制链接]
Interrupt.ino: In function 'void interruptSetup()':
Interrupt.ino:17:3: error: 'TCCR2A' was not declared in this scope
Interrupt.ino:18:3: error: 'TCCR2B' was not declared in this scope
Interrupt.ino:19:3: error: 'OCR2A' was not declared in this scope
Interrupt.ino:20:3: error: 'TIMSK2' was not declared in this scope
Interrupt.ino:21:7: error: 'sei' was not declared in this scope
Interrupt.ino: At global scope:
Interrupt.ino:27:4: error: expected constructor, destructor, or type conversion before '(' token
ARDUINO程序在ENERGIA里编译出现这样的错误提示,请问这个怎么改?
或者在哪里能看到有关interrupt的说明?
出错的5句,在ARDUINO里是这么写的 TCCR2A = 0x02;
TCCR2B = 0x05;
OCR2A = 0X7C;
TIMSK2 = 0x02;
sei();
|