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.

CC26xx Driver Library 库中的uart的使用遇到问题

Other Parts Discussed in Thread: Z-STACK, CC2650

串口程序如下:

使用的时候 发现程序死在了 UARTConfigSetExpClk这个函数,请问什么导致的,请了解的说一下哦

void main(void)
{
       // 配置串口
       IOCPinTypeUart(UART0_BASE, IOID_2 , IOID_3 , IOID_UNUSED, IOID_UNUSED);
       UARTConfigSetExpClk(UART0_BASE, SysCtrlClockGet(),115200,UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | UART_CONFIG_PAR_NONE);
 UARTFIFOLevelSet(UART0_BASE, UART_FIFO_TX7_8, UART_FIFO_RX7_8);
       UARTEnable(UART0_BASE);
       while(1)
       {
          // 接收一个字符
          // TempChar = (uint8_t)UARTCharGet(UART0_BASE);
          // 发送一个字符
          UARTCharPut(UART0_BASE, 0x55);
      }

}