<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=17&amp;t=6076" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2010-04-29T05:18:48+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=17&amp;t=6076</id>
<entry>
<author><name><![CDATA[roboard]]></name></author>
<updated>2010-04-29T05:18:48+01:00</updated>
<published>2010-04-29T05:18:48+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6076&amp;p=26572#p26572</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6076&amp;p=26572#p26572"/>
<title type="html"><![CDATA[Re: roboard GPIO ioperm permission linux]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6076&amp;p=26572#p26572"><![CDATA[
If only a single program uses GPIO, then it is no problem to let all GPIO with write permission always. If you want that multiple programs share GPIO simultaneously, you may need a Linux GPIO driver (unfortunately, such a driver does not exist currently).<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1542">roboard</a> — Thu Apr 29, 2010 5:18 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jlmunix]]></name></author>
<updated>2010-04-15T23:08:26+01:00</updated>
<published>2010-04-15T23:08:26+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6076&amp;p=26393#p26393</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6076&amp;p=26393#p26393"/>
<title type="html"><![CDATA[roboard GPIO ioperm permission linux]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6076&amp;p=26393#p26393"><![CDATA[
I want to use the GPIO ports of the Roboard without sudo command. So i decided to make a simple program to enable permissions to the ports.<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>void main&#40;void&#41;<br />&#123;<br />   int alm;<br />   iopl&#40;3&#41;;<br />   if &#40;ioperm&#40;0x98, 3, 1&#41;&#41;     //Set the permission to the port.<br />     &#123;<br />        perror&#40;&quot;ioperm&quot;&#41;;<br />        exit&#40;1&#41;;<br />     &#125;<br />&#125;<br /></code></dd></dl><br /><br /><br />If i run this program with sudo when i turn on the roboard, i will be able to use the ports from user speace without specifying the sudo command!  It works (i tested)<br /><br />But my question is, what´s up if i let all GPIO with write permission always? can i make a damage?<br /><br />From here im enabled to R/W port with simple instruction:<br /><dl class="codebox"><dt>Code: </dt><dd><code>outportb&#40;0x98, 0xff&#41;;<br /></code></dd></dl><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2021">jlmunix</a> — Thu Apr 15, 2010 11:08 pm</p><hr />
]]></content>
</entry>
</feed>