Function for writing to serial port through Xenomai API
Dear all,
I know that outb() being a linux system call can be used to write to the serial/parallel ports. Currently I am working on a real time operating system with Xenomai and a micro kernel. If I use outb() for port access, control will shift to the soft-real time linux which I don't want. Is there any way I can access ports using (Xenomai) functions rather than the linux system calls ?
Thanking you in anticipation,
Anisha Kaul
-------------------------------------
Hi-Tech Gears Limited, Gurgaon, India
Quoted 1 line · Anisha Kaul
Dear all,
Hi,
Quoted 7 lines
I know that
outb()being a linux system call can be used to write to the serial/parallel ports. Currently I am working on a real time operating system with Xenomai and a micro kernel. If I useoutb()for port access, control will shift to the soft-real time linux which I don't want. Is there any way I can access ports using (Xenomai) functions rather than the linux system calls ?
Well, Xenomai has a real-time driver for the serial port, so, you could use that. Other than that outb does not cause its caller to switch to secondary mode if you have made the proper call to ioperm or iopl.
Signature · 1 line
Gilles