<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>problem with using gpio pins and functions in nrf52840-PCA10056</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54939/problem-with-using-gpio-pins-and-functions-in-nrf52840-pca10056</link><description>how to use the gpio pins functions in our program ? do we need a makefile and header file to read or write or use the gpio functions ?if so can you attach the makefile or header file required for gpio pins?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Nov 2019 08:44:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54939/problem-with-using-gpio-pins-and-functions-in-nrf52840-pca10056" /><item><title>RE: problem with using gpio pins and functions in nrf52840-PCA10056</title><link>https://devzone.nordicsemi.com/thread/222720?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 08:44:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bdb34f3-d39a-42a4-aafc-5db7cc3e6d17</guid><dc:creator>Caner Celiktas</dc:creator><description>&lt;p&gt;Implict declaration means the compiler doesn&amp;#39;t see the function&amp;#39;s declaration. Which means likely you did something wrong when include header files.&amp;nbsp;&lt;/p&gt;
[quote userid="85523" url="~/f/nordic-q-a/54939/problem-with-using-gpio-pins-and-functions-in-nrf52840-pca10056/222713"]pinStatus = nrf_gpio_pin_set(8);[/quote]
&lt;p&gt;nrf_gpio_pin_set is a&amp;nbsp;&lt;strong&gt;void&amp;nbsp;&lt;/strong&gt;function so it can not return any value. You can&amp;#39;t equate it to anything.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with using gpio pins and functions in nrf52840-PCA10056</title><link>https://devzone.nordicsemi.com/thread/222713?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 08:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1255dae9-bfed-494c-988a-3303510c4290</guid><dc:creator>diya</dc:creator><description>&lt;p&gt;eventhogh after including #include &amp;quot;nrf_gpio.h&amp;quot; it is showing error&lt;br /&gt;error: implicit declaration of function &amp;#39;nrf_gpio_pin_set&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinStatus = nrf_gpio_pin_set(8);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^~~~~~~~~~~~~~~~&lt;br /&gt;&amp;#39;-Wno-gnu-zero-variadic-macro-arguments&amp;#39; [-Werror]&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;how to resolve those issues ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with using gpio pins and functions in nrf52840-PCA10056</title><link>https://devzone.nordicsemi.com/thread/222363?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 13:20:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d486139d-025c-47da-a1f6-2024f6d737ad</guid><dc:creator>Caner Celiktas</dc:creator><description>&lt;p&gt;You don&amp;#39;t need make a header file. Nordic already did for you.&lt;/p&gt;
&lt;p&gt;This works for me ;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Include &amp;quot;nrf_gpio.h&amp;quot;&lt;/li&gt;
&lt;li&gt;init your gpio (decide your pin&amp;#39;s direction input/output )&lt;/li&gt;
&lt;li&gt;use&amp;nbsp;nrf_gpio_pin_set or nrf_gpio_pin_clear for set or clear your pins.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;or you can include &amp;quot;nrf_drv_gpiote.h&amp;quot; and you can use it&amp;#39;s function it&amp;#39;s similiar to &amp;quot;nrf_gpio.h&amp;quot;&lt;/p&gt;
&lt;p&gt;there is an example in &amp;quot;SDK / examples/peripheral/pin_change_int&amp;quot; which can help you. Look over it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>