Hi, everyone,
To use serial communication (SCI-A) in the launchpad-F28377S, I referred demo source code in the controlsuite.
Finally, I found that when I remove below codes in the source code
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Redirect STDOUT to SCI
status = add_device("scia", _SSA, SCI_open, SCI_close, SCI_read, SCI_write, SCI_lseek, SCI_unlink, SCI_rename);
fid = fopen("scia","w");
freopen("scia:", "w", stdout);
setvbuf(stdout, NULL, _IONBF, 0);
////////////////////////////////////////////////////////////////////////////////////////////////////////////
serial communication did not work. (I can not receive any data from the PC).
Could anyone explain me the above codes? In fact, I do not find any document related to the above code. It seems to be related to the FT2232H chip for serial communication mode.
I really appreciate if you give me useful information or let me know useful document for these codes.
Thank you.