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.

BootLoad CC2530ZNP 工程里面URX0IE 、UTX0IF为何使用硬编码

Other Parts Discussed in Thread: CC2530

下面两个函数为何使用URX0IE 、UTX0IF,只能使用uart0吗?是否可以改为URXxIE 、UTXxIF来选择uart1?这里是有限制吗

static void sblExec(void)
{

uint32 dlyCnt = 0;
uint8 sbExec_rc;

if (znpCfg1 == ZNP_CFG1_UART)
{
URX0IE = 1;
HAL_ENABLE_INTERRUPTS();

sbReportState(SB_STATE_BOOTLOADER_ACTIVE);
}

 ..........

}

-----------------------------------------------------

void sbUartPoll(void)
{
while(UTX0IF)
{
halUartTxIsr();
}
}