Part Number:LAUNCHXL-CC2650
Tool/software: TI C/C++ Compiler
Hello,
I want to use printf() function to print on the console, which I am not able to. So, I am referring http://dev.ti.com/tirex/#/?link=Development%20Tools%2FIntegrated%20Development%20Environments%2FCode%20Composer%20Studio%2FProjects%20and%20Build%2FDocuments%2FApplication%20Notes%2FTips%20for%20using%20printf, where I found this code snippet to use uart.
ret_val = add_device("uart", _SSA, uart_open, uart_close, uart_read, uart_write, uart_lseek, uart_unlink, uart_rename); fid = fopen("uart", "w"); freopen("uart:", "w", stdout); // redirect stdout to uart setvbuf(stdout, NULL, _IONBF, 0); // turn off buffering for stdout printf("Hello world!\r\n");
I am working on cc2650 Launchpad and using simple peripheral example.
Can you please let me know where exactly I should use this code. The documentation is pretty vague, so I am not really sure how to use this.
Thanks ,
Rathna