It's in a part of a code example: msp430fr69xx_ta0_04.c. Besides this functions, I would like to understand this switch condition.
// Timer0_A1 Interrupt Vector (TAIV) handler
#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: break; // CCR1 not used
case TA0IV_TACCR2: break; // CCR2 not used
case TA0IV_3: break; // reserved
case TA0IV_4: break; // reserved
case TA0IV_5: break; // reserved
case TA0IV_6: break; // reserved
case TA0IV_TAIFG: // overflow
P1OUT ^= BIT0;
break;
default: break;
}
}