Hi --
--- In "tsao.terence" <> wrote:
>
> Dear Linux Masters,
>
> I am making the adjustments from embedded microcontrollers (Atmel AVR8)
> to Linux SBC. I have descent amount of experiences in programming
> microcontrollers such as using a uart to interface with a radio card.
>
> I wonder how do things change in the when programming the Linux SBC.
> Everything in Linux are like files, so I have to open /dev/ttyam0. But What
> do I do after that? How do I receive and transmit the data I received over
> the radio card using uart. Can anyone points me to a good example or article
> that I can read? I looked through the forum and google but found no good
> examples.
>
> Thanks
>
http://www.easysw.com/~mike/serial/serial.html and
http://tldp.org/HOWTO/Serial-Programming-HOWTO/
are two easily found. Also "Advanced Programming in the Unix Environment" by
Rich Stevens & Stephen Rago is a great reference, not just for serial port
programming but *everything* under Unix. Nice thing about sticking to Posix
(serial port & otherwise) is that your programs are (in theory) portable to any
Posix OS.
regards, ............ Charlie
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|