Skip to contentSkip to conversation

Function for writing to serial port through Xenomai API

Xenomai-core Anisha Kaul 2 participants 2 messages Nov 9, 2009

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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 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 ?

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