因仑“3+1”工程特种兵精英论坛

标题: 官网历程 中switch case用法不解 [打印本页]

作者: 张衍波    时间: 2015-3-30 10:37
标题: 官网历程 中switch case用法不解

// Timer_A3 Interrupt Vector (TAIV) handler
#pragma vector=TIMERA1_VECTOR
__interrupt void Timer_A(void)
{
  switch (TAIV, 10)        // Efficient switch-implementation
  {
    case  2:  break;                        // TACCR1 not used
    case  4:  break;                        // TACCR2 not used
    case 10:  P1OUT ^= 0x01;                // overflow
              break;
  }
}
这段代码switch (TAIV, 10) 这里是什么意思?






欢迎光临 因仑“3+1”工程特种兵精英论坛 (http://bbs.enlern.com/) Powered by Discuz! X3.4