How to make use of B1553BRM
Cláudio Silva
claudiodcsilva at gmail.com
Sat Oct 1 19:12:55 UTC 2016
Hello Charles,
It depends on which RTEMS version you are using. If it is a recent one, you
may want to consult Gaisler's documentation on GRLIB's device drivers:
http://gaisler.com/anonftp/rcc/doc/rcc-drivers-1.2.pdf
You probably need to configure and initialize RTEMS's driver manager before
using the 1553b device.
Best Regards,
Cláudio
On Fri, Sep 30, 2016 at 3:50 PM Charles INGELS <charles.ingels at syderal.ch>
wrote:
Dear all,
I am trying to use the B1553BRM driver on a LEON3 dual core based board but
I am a little bit confused on the way to open and to use the device.
Coming from the Linux world, I see that it is possible to do the following :
fd = open("/dev/brm0", O_RDWR);
(POSIX interface)
However, I do not have a filesystem because I have no need of it (except
maybe to have the descriptor node available ?).
Such call returns an errno = 2, which means ENOENT.
I try to switch to the RTEMS API by using the rtems_io_open(...) function
and the returned status is 25 "Internal error". This is understandable
since I do neither know the major number nor the minor number for the
BRM1553 configured as an RT device (I put 0 for both the major and minor
parameters).
So my questions are :
1 - is the RTEMS API usable to open the B1553BRM driver instead of the
POSIX API ?
2 - where can I find the major and minor numbers for the B1553BRM device ?
3 - where can I find some examples on how to make use of such drivers ?
For information, I want to use the B1553BRM as an RT device only.
Thanks you a lot in advance for your answers !
Charles
--
*Charles INGELS*
Embedded software expert
charles.ingels at syderal.ch
Phone *+41 (0)32 338 99 10*
iNum *+883 5100 0902 7759*
*SYDERAL SA*
Neuenburgstrasse 7
CH-3238 Gals (Suisse)
Desk *+41 (0)32 338 98 00*
Fax *+41 (0)32 338 99 34*
Web site http://www.syderal.ch
_______________________________________________
users mailing list
users at rtems.org
http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20161001/66b3e95e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QR_Code_ING.png
Type: image/png
Size: 80473 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20161001/66b3e95e/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QR_Code_ING.png
Type: image/png
Size: 80473 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20161001/66b3e95e/attachment-0003.png>
More information about the users
mailing list