This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0G3507: MSP430FR2433代码如何移植给MSPM0G3507使用

Part Number: MSPM0G3507
Other Parts Discussed in Thread: MSP430FR2433

你好,我们更换了mcp,从MSP430FR2433更换为MSP430FR2433,但是代码并不能直接使用,如何进行移植使用

#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector = TIMER0_A1_VECTOR
__interrupt void TIMER0_A1_ISR(void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(TIMER0_A1_VECTOR))) TIMER0_A1_ISR (void)
#else
#error Compiler not supported!
#endif
{
switch(__even_in_range(TA0IV,TA0IV_TAIFG))
{
case TA0IV_NONE:
break; // No interrupt
case TA0IV_TACCR1:
endTime = TA0CCR1; //Stop timer
TA0CTL |= MC_0;

TA0CCR1 = 0;
TA0CTL |= TACLR | MC_2;