How do I printf on different pins?
SRLM
Posts: 5,045
I would like to switch which pins the printf driver uses for input and output.
Also, does printf require a separate cog? I don't think so, but I just want to check.
Also, does printf require a separate cog? I don't think so, but I just want to check.
Comments
Use freopen.
https://sites.google.com/site/propellergcc/documentation/libraries#TOC-Stdio-Devices-Library
http://propgcc.googlecode.com/hg/doc/Library.html#drivers
A cog is only necessary if FullDuplexSerial is used as the driver.