[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: programming the serial port



Greg KH wrote:
> 
> You do not need to write any kernel module, this can all be done from
> userspace.  Please see one of the many Linux Serial Programming HOWTOs
> that are available.

I've beel looking in this HOWTO (not *that* thoroughly, just took a
quick look and watched the programming examples) and as far as I can
see, all these examples *do* use a _file descriptor_ and 'interact'
with the serial port by sending and writing data to that _file
descriptor_... and that's *not* what I have to do: i have to program
the UART directly, that is 'set individual bits on the UART' up until
i manage to send something out and receive something...

I guess I will be needing the inb, outb or ioctl system calls, right?

Greetzzz,
Bart

-- 
Ing. Bart Vandewoestyne			 Bart.Vandewoestyne@pandora.be
Hugo Verrieststraat 48			       GSM: +32 (0)478 397 697
B-8550 Zwevegem			 http://users.pandora.be/vandewoestyne
----------------------------------------------------------------------
"Any fool can know, the point is to understand." - Albert Einstein
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/