主题中讨论的其他器件:LAUNCHXL-CC2650、CC2650
大家好!
我需要上拉 UART Rx 引脚(IOCFG8:PULL_CTL = 0x2)。
但在调用 UART_OPEN ()之后设置了 IOCFG8:PULL_CTL = 0x3
我做错了什么?
Board_UART_RX | PIN_INPUT_EN | PIN_PULLUP、
//初始化并打开 UART
void UART_Init (void){
uart_params_init (¶ms);
params.baudrate = 2400;
params.stopbits = UART_STOP_ONE;
params.parityType = uart_par_none;
params.writeDataMode = UART_DATA_binary;
params.readDataMode = UART_DATA_binary;
params.readMode = uart_mode_callback;
params.readCallback = UART_ReadCB;
Handle = UART_open (Board_UART、¶ms); //打开 UART 并执行读取
}