Gilles Chanteperdrix wrote: > Brandt Erickson wrote: > > > > > No node will turn up in /dev, you will find the list of available RTDM > > > devices in /proc/xenomai/rtdm/named_devices. > > > > Okay, > > there is a /proc/xenomai/rtdm/rtser0. The example opens the file > > "rtser0", does this default to the full path name when I use > > rt_dev_open? > > > > Right now, it appears I can open the file (rt_dev_open returns 0) and > > configure the serial port (using rt_dev_ioctl), however, every call to > > rt_dev_write returns -1. I'm using the configuration from the example > > code which basically has everything set to defaults. Is there an > > equivalent of errno I can get to find out what's going wrong? Thanks. > > -Brandt > > The errors of the serial driver are documented here: > > http://www.xenomai.org/documentation/trunk/html/api/group__rtserial.html > > -1 is -EPERM... which is not documented. -EPERM probably means that you > are trying to use a real-time call from a non real-time thread. See > rt_task_shadow or rt_task_create. >
That's the point. The serial driver's write operation requires real-time context and return -EPERM otherwise. Documentation should be enhanced... Jan
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
