Page 1 of 1

CDC virtual COM-Port bound to stdio

Posted: Sun Sep 11, 2011 8:05 pm
by RocketMan
Probably a dumb newbie question, but I'm going to ask it anyway... :D

I'm considering adding a USB port, via V-USB, to a project I'm contemplating. Now, one of the things I'm planning to do is set up a simple test/debug interface that communicates to a simple terminal program (at least, until I can learn enough programming to develop a stand-alone interface of my own...). To that end, I would like to use the stdio functions printf() and scanf()... or putchar() and getchar() to send and receive data from the virtual serial-port.

Given that I'm new to C programming in general, and USB programming in particular, I have no idea how I would go about doing that. :oops:

Any advice (pointers, links, etc...) would be greatly appreciated.