<div dir="ltr"><div dir="ltr" class="gmail_msg">Hello Charles, <div class="gmail_msg"><br></div><div class="gmail_msg">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: </div><div class="gmail_msg"><a href="http://gaisler.com/anonftp/rcc/doc/rcc-drivers-1.2.pdf">http://gaisler.com/anonftp/rcc/doc/rcc-drivers-1.2.pdf</a></div><div class="gmail_msg"><br></div><div class="gmail_msg">You probably need to configure and initialize RTEMS's driver manager before using the 1553b device. </div><div class="gmail_msg"><br></div><div class="gmail_msg">Best Regards,</div><div class="gmail_msg">Cláudio</div><div class="gmail_msg"><br></div></div><br class="gmail_msg"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">On Fri, Sep 30, 2016 at 3:50 PM Charles INGELS <<a href="mailto:charles.ingels@syderal.ch" class="gmail_msg" target="_blank">charles.ingels@syderal.ch</a>> wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000099" class="gmail_msg">
Dear all,<br class="gmail_msg">
<br class="gmail_msg">
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.<br class="gmail_msg">
Coming from the Linux world, I see that it is possible to do the
following :<br class="gmail_msg">
<br class="gmail_msg">
fd = open("/dev/brm0", O_RDWR);<br class="gmail_msg">
(POSIX interface)<br class="gmail_msg">
<br class="gmail_msg">
However, I do not have a filesystem because I have no need of it
(except maybe to have the descriptor node available ?).<br class="gmail_msg">
<br class="gmail_msg">
Such call returns an errno = 2, which means ENOENT.<br class="gmail_msg">
<br class="gmail_msg">
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).<br class="gmail_msg">
<br class="gmail_msg">
So my questions are :<br class="gmail_msg">
1 - is the RTEMS API usable to open the B1553BRM driver instead of
the POSIX API ?<br class="gmail_msg">
2 - where can I find the major and minor numbers for the B1553BRM
device ?<br class="gmail_msg">
3 - where can I find some examples on how to make use of such
drivers ?<br class="gmail_msg">
<br class="gmail_msg">
For information, I want to use the B1553BRM as an RT device only.<br class="gmail_msg">
<br class="gmail_msg">
Thanks you a lot in advance for your answers !<br class="gmail_msg">
<br class="gmail_msg">
Charles<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<div class="m_9169755405418259811m_6314358293941143212moz-signature gmail_msg">-- <br class="gmail_msg">
<table border="0" width="750px" class="gmail_msg">
<tbody class="gmail_msg">
<tr class="gmail_msg">
<td class="gmail_msg">
<b class="gmail_msg">Charles INGELS</b><br class="gmail_msg">
Embedded software expert<br class="gmail_msg">
<font face="courier" class="gmail_msg"><a class="m_9169755405418259811m_6314358293941143212moz-txt-link-abbreviated gmail_msg" href="mailto:charles.ingels@syderal.ch" target="_blank">charles.ingels@syderal.ch</a></font><br class="gmail_msg">
Phone <i class="gmail_msg">+41 (0)32 338 99 10</i> <br class="gmail_msg">
iNum <i class="gmail_msg">+883 5100 0902 7759</i> <br class="gmail_msg">
<br class="gmail_msg">
<b class="gmail_msg">SYDERAL SA</b> <br class="gmail_msg">
Neuenburgstrasse 7 <br class="gmail_msg">
CH-3238 Gals (Suisse) <br class="gmail_msg">
Desk <i class="gmail_msg">+41 (0)32 338 98 00</i> <br class="gmail_msg">
Fax <i class="gmail_msg">+41 (0)32 338 99 34</i> <br class="gmail_msg">
Web site <a class="m_9169755405418259811m_6314358293941143212moz-txt-link-freetext gmail_msg" href="http://www.syderal.ch" target="_blank">http://www.syderal.ch</a> <br class="gmail_msg">
</td>
<td class="gmail_msg">
<img height="65%" width="65%" class="gmail_msg">
</td>
</tr>
</tbody>
</table>
</div>
</div>
_______________________________________________<br class="gmail_msg">
users mailing list<br class="gmail_msg">
<a href="mailto:users@rtems.org" class="gmail_msg" target="_blank">users@rtems.org</a><br class="gmail_msg">
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div>