芯片:CC2652
工程:SimpleCentral
过程:以SimpleCentral为基础,觉得用Display_printf函数打印要输入行数不方便,想要那种不会覆盖上不行的打印函数,就把projectzero上的uartlog函数拿过来了,把Display_printf相关名柄及初始化等全部注释掉了,发现仍然打印不出数据,在ble_debug.cfg中添加了Idle.addFunc('&uartLog_flush');函数。但仍旧不行。。。想请教各位大神,我哪里没改对。。。
main.c中的串口相关
UART_init();
UartLog_init(UART_open(Board_UART0, NULL));
/* Initialize ICall module */
ICall_init();
/* Start tasks of external images - Priority 5 */
ICall_createRemoteTasks();
Log_info0("Init over0.\r\n");
ble_debug.cfg文件中的添加:
/* ================ Idle configuration ================ */
var Idle = xdc.useModule('ti.sysbios.knl.Idle');
/*
* The Idle module is used to specify a list of functions to be called when no
* other tasks are running in the system.
*
* Functions added here will be run continuously within the idle task.
*
* Function signature:
* Void func(Void);
*/
//Idle.addFunc("&myIdleFunc");
/* Allow power management */
Idle.addFunc('&Power_idleFunc');
Idle.addFunc('&uartLog_flush');