Other Parts Discussed in Thread: SYSCONFIG, LAUNCHXL-CC26X2R1
我在使用ccs的配置工具配置完串口1时并未找到波特率和回调函数相关的配置,同时想问串口如果初始化相关的函数名称是什么.
望解答
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.
你好,
1.波特率的配置
2.是要用sysconfig配置回调函数吗?哪个函数
3.
// Import the UART driver definitions
#include <ti/drivers/UART.h>
// One-time initialization of UART driver
UART_init();
// Initialize UART parameters
UART_Params params;
UART_Params_init(¶ms);
params.baudRate = 9600;
params.readMode = UART_MODE_BLOCKING;
params.writeMode = UART_MODE_BLOCKING;
params.readTimeout = UART_WAIT_FOREVER;
params.writeTimeout = UART_WAIT_FOREVER;
你好,
1.首先你需要检查你的串口引脚和串口助手是否正确连接,并且稳定
然后你的芯片的串口配置是否正常。
2.你可以把do nothing 添加打印语句进行调试