CDC virtual COM-Port bound to stdio

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
RocketMan
Posts: 1
Joined: Sun Sep 11, 2011 7:46 pm

CDC virtual COM-Port bound to stdio

Post by RocketMan » Sun Sep 11, 2011 8:05 pm

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.

Post Reply