guess I learned something today.....

On 12/9/06, Dave Hylands <dhylands@gmail.com> wrote:
Hi Jon,

> Are any of the robostix's UART's setup to act as a terminal by default?
> Basically if I'm writing code for the robostix and I add a printf()
> somewhere, will that data then be printed to one of the uart's by
> default like the gumstix's console on ffuart? Just to be clear I'm
> referring to the robostix's own uart's..not the ones connected through
> to the gumstix, Cheers.

If you're talking about printf's on the robostix sending data out one
of the robostix uarts then yeah - that's pretty easy to do. The sample
programs do this already. If you look at Flash-LED.c you'll see a
couple of calls to fdevopen. The first call to fdevopen goes to stdin
& stdout and the 2nd one goes to stderr.

You can find out more information about this over here:
http://www.nongnu.org/avr-libc/user-manual/group__avr__stdio.html

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users



--
:wq