#include <msp430.h>
int main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog
timer
P7DIR|=BIT0;
P7OUT|=BIT0;
TACTL=TASSEL1+MC1+TAIFG+TACLR;
CCTL0=CCIE;
CCR0 = 32768;
_BIS_SR(LPM3_bits+GIE);
return 0;
}
#pragma vector =TIMERA0_VECTOR
__interrupt void Timer_A(void)
{
P7OUT^=BIT0;
}
提示错误 #20 identifier "TACTL" is undefined
#20 identifier "CCTL0" is undefined
这个问题应该怎么解决?求大神指教
一周热门 更多>