|
楼主
查看: 2675回复: 3
发表于 2022-10-24 22:54:56
只看该作者
本帖最后由 ljz13 于 2022-11-22 21:30 编辑
__even_in_range(unsigned int val, unsigned int range);是啥意思啊?不太明白#pragma vector=USCI_A0_VECTOR
__interrupt void USCI_A0_ISR (void)
{
uint8_t receivedData = 0;
switch (__even_in_range(UCA0IV,4))
{
//Vector 2 - RXIFG
case 2:
receivedData = USCI_A_UART_receiveData(USCI_A0_BASE);
OLED_Clear();
OLED_ShowNum(5,1,receivedData,5,16);
USCI_A_UART_transmitData(USCI_A0_BASE,receivedData);
break;
default:
break;
}
}
|
|