On 08/15/2014 08:47 AM, Reitinger, Peter wrote:
> Hello,
> 
> meanwhile I have solved the issue on my own. I tried to access the
> SPI1 HW with traditional mmap approach from user space and had the
> same problem until I saw that I had to start the whole SPI1 module by
> setting a specific control bit to enable its clock. Sorry for posting
> this, but I was really puzzled then. I guess it will also be possible
> to access the hw registers of the SPI with the xenomai rtdm io user
> mapping now...

It is normally recommended to implement drivers in kernel-space using
the RTDM API: this forces you to define a standard interface
(open/read/write/ioctl) between application and driver, which makes it
easy to re-use the same driver in a different application, or to
implement a driver for a differrent hardware without changing your
application.

-- 
                                                                Gilles.

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to