<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 04/02/2012 07:09 AM, Binkowski, Cassio wrote:
<blockquote
cite="mid:CAG93Rg4oAt46+qM7vfAzGuwxzM=HRw=7GPqR6gDOMpZ_LQrQXQ@mail.gmail.com"
type="cite">Thanks Sebastian.
<div><br>
</div>
<div>However, where do I find such information for the specified
BSP?</div>
<div><br>
</div>
</blockquote>
There is a proposed set of methods in the
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a href="http://git.rtems.org/multiio/">http://git.rtems.org/multiio/</a><br>
package. It has been used on a few projects and the API is growing<br>
organically. Functionality is not being added unless there is a
project<br>
requiring it and we can define a solution. But for Discrete I/O, I
know<br>
there is board independent infrastructure to support waiting for<br>
a pin state change interrupt forever or with timeout. You can poll<br>
discrete in, ADCs, or write DACs. <br>
<br>
It includes drivers for a couple of PC-104 multi I/O boards. I am
interested<br>
in seeing more feedback so we can have more confidence that it is<br>
offering the right services.<br>
<br>
Sebastian is completely correct in that the numbering of discrete
I/O<br>
pins, DAC, and ADCs is arbitrary. But if RTEMS provides a standard
API<br>
for these capabilities, then you can hide the pin numbers with
macros.<br>
<br>
--joel<br>
<blockquote
cite="mid:CAG93Rg4oAt46+qM7vfAzGuwxzM=HRw=7GPqR6gDOMpZ_LQrQXQ@mail.gmail.com"
type="cite">
<div>Cassio<br>
<br>
<div class="gmail_quote">On Mon, Apr 2, 2012 at 4:16 AM,
Sebastian Huber <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb">
<div class="h5">On 04/01/2012 09:19 PM, Binkowski, Cassio
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear all,<br>
<br>
Forgive my ignorance, but I just want to know how to
read pins with RTEMS.<br>
For example, if I want to read a pin in an Arduino I
just code it like:<br>
analogRead(pinNumber).<br>
<br>
Is this covered in RTEMS or do I have to read the
datasheet and make my own code?<br>
</blockquote>
<br>
</div>
</div>
Every BSP handles this differently. Even if we add a
rtems_read_pin(X), then what means X on BSP 1, 2, or 3?<br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany<br>
Phone : <a moz-do-not-send="true"
href="tel:%2B49%2089%2018%2090%2080%2079-6"
value="+4989189080796" target="_blank">+49 89 18 90 80
79-6</a><br>
Fax : <a moz-do-not-send="true"
href="tel:%2B49%2089%2018%2090%2080%2079-9"
value="+4989189080799" target="_blank">+49 89 18 90 80
79-9</a><br>
E-Mail : <a moz-do-not-send="true"
href="mailto:sebastian.huber@embedded-brains.de"
target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne
des EHUG.<br>
_______________________________________________<br>
rtems-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:rtems-users@rtems.org" target="_blank">rtems-users@rtems.org</a><br>
<a moz-do-not-send="true"
href="http://www.rtems.org/mailman/listinfo/rtems-users"
target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Joel Sherrill, Ph.D. Director of Research& Development
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
</pre>
</body>
</html>