中断程序:
#pragma vector = PORT1_VECTOR
__interrupt void PORT1_ISR(void) // interrupt handler
{
P1IFG &= ~BIT5;
__bic_SR_register_on_exit(LPM3_bits);
}
中断的设置在main()中:
P1IE |= BIT5; // P1.5 interrupt enabled
P1IES &= ~BIT5; // P1.5 Low to High edge
P1IFG &= ~BIT5; // P1.5 IFG cleared
编译时出现错误:
Error[Be004]: function "PORT1_ISR" (declared at line 1272 of "D:msp430_prosourceapps
eg_read
eg_read.c") has overlaid vector with function
"port1_ISR" (declared at line 343 of "D:msp430_prosourceComponents argetssrf05_ccmsp2618hal_digio.c"), second vector deleted
请问这个问题该怎么解决
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
能否提供下完整的程序?
一周热门 更多>