<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[About Fast-GPIO]]></title><description><![CDATA[<p dir="auto">Hi guys,<br />
In the fast-gpio repository opening /dev/mem is executed in the Module::_SetupAddress.<br />
After opening /dev/mem the close(m_mfd) function is called which closes /dev/mem before doing any write command.<br />
I am trying to toggle gpio15 in my C++ program and its not working yet.</p>
]]></description><link>http://community.onion.io/topic/3376/about-fast-gpio</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 05:51:50 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/3376.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Dec 2018 13:20:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to About Fast-GPIO on Sat, 22 Dec 2018 13:20:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi guys,<br />
In the fast-gpio repository opening /dev/mem is executed in the Module::_SetupAddress.<br />
After opening /dev/mem the close(m_mfd) function is called which closes /dev/mem before doing any write command.<br />
I am trying to toggle gpio15 in my C++ program and its not working yet.</p>
]]></description><link>http://community.onion.io/post/18530</link><guid isPermaLink="true">http://community.onion.io/post/18530</guid><dc:creator><![CDATA[Gnichi Mohamed]]></dc:creator><pubDate>Sat, 22 Dec 2018 13:20:08 GMT</pubDate></item><item><title><![CDATA[Reply to About Fast-GPIO on Sat, 22 Dec 2018 14:43:19 GMT]]></title><description><![CDATA[<p dir="auto">In <a href="https://github.com/OnionIoT/fast-gpio/blob/master/src/fastgpioomega2.cpp" rel="nofollow">https://github.com/OnionIoT/fast-gpio/blob/master/src/fastgpioomega2.cpp</a>, the <code>FastGpioOmega2()</code> constructor calls <code>_SetupAddress(REG_BLOCK_ADDR, REG_BLOCK_SIZE);</code> which <code>open("/dev/mem", O_RDWR)</code>, then <code>mmap</code>s 1024 bytes starting from the given base address. The result tof the  <code>mmap</code> is stored into <code>regAddress</code> and based on this memory-mapped address the program accesses the registers. So the file handle is not needed anymore and is closed.</p>
<p dir="auto">The <code>mmap</code>-ed block should later freed using <code>munmap()</code> but the code doesn't do that. However, it should still work.</p>
<p dir="auto">I.e. I don't see a problem with the library code. What is the application program you've written to access GPIO15?</p>
]]></description><link>http://community.onion.io/post/18532</link><guid isPermaLink="true">http://community.onion.io/post/18532</guid><dc:creator><![CDATA[Maximilian Gerhardt]]></dc:creator><pubDate>Sat, 22 Dec 2018 14:43:19 GMT</pubDate></item><item><title><![CDATA[Reply to About Fast-GPIO on Mon, 24 Dec 2018 08:03:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/4683">@Maximilian-Gerhardt</a> Thank you for your reply.<br />
GPIO16 and GPIO17 work on the Expansion dock but GPIO15 is always at 1.5V. I tested the same program on another MT7688 module but the same issue persists.<br />
I am using openwrt 18.06 for the onion omega.</p>
]]></description><link>http://community.onion.io/post/18545</link><guid isPermaLink="true">http://community.onion.io/post/18545</guid><dc:creator><![CDATA[Gnichi Mohamed]]></dc:creator><pubDate>Mon, 24 Dec 2018 08:03:09 GMT</pubDate></item><item><title><![CDATA[Reply to About Fast-GPIO on Wed, 26 Dec 2018 07:01:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5479">@Gnichi-Mohamed</a> said in <a href="/post/18545">About Fast-GPIO</a>:</p>
<blockquote>
<p dir="auto">GPIO16 and GPIO17 work on the Expansion dock but GPIO15 is always at 1.5V.</p>
</blockquote>
<p dir="auto"><a href="https://github.com/OnionIoT/Onion-Hardware/blob/master/Schematics/Omega-Expansion-Dock.pdf" rel="nofollow">Omega-Expansion-Dock.pdf</a> (IO is GPIO).<br />
<img src="/assets/uploads/files/1545649232779-expansion_dock_rgb_led.png" alt="0_1545649099996_Expansion_Dock_RGB_LED.png" class="img-responsive img-markdown" /><br />
Forget what I wrote. I misunderstood your post(s). <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--disappointed" title=":-(" alt="😞" /></p>
]]></description><link>http://community.onion.io/post/18547</link><guid isPermaLink="true">http://community.onion.io/post/18547</guid><dc:creator><![CDATA[György Farkas]]></dc:creator><pubDate>Wed, 26 Dec 2018 07:01:06 GMT</pubDate></item></channel></rss>