I'm developing for AM335x using the Processor SDK RTOS AM335x 2.00.00.00 which contains BIO 6.42.02.29.
My task is to port Lua (lua.org) into my CCSv6 project so that I can make use of the Lua interpreter in my embedded application. However the Lua library uses standard C calls such as fprintf, fopen, etc. Under SYS/BIOS RTOS ecosystem what is the best way to port these calls to my hardware (UART and MMCSD specifically)? I see 2 general paths forward:
1. Remove Lua's C standard library dependencies and replace with my own implementations.
2. Provide implementations to the low level glue functions of the C standard library (_read, _write, etc.).
I would prefer option 2 but I don't see how to do this in SYS/BIOS? SYS/BIOS documentation mentions the SysStd module but this seems to be a wrapper around the C standard library which is the opposite of what I would need.