<?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>Why can&amp;#39;t I add more that 4 input signals?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14029/why-can-t-i-add-more-that-4-input-signals</link><description>I have12 input pins to my application. But the code fails when I try to add the fifth button. 
 Is there a limit to how many input signals I can add? 
 static void gpio_inputs_init(void)
{
	uint32_t err_code;

	if (!nrf_drv_gpiote_is_init())
	</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 May 2016 13:50:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14029/why-can-t-i-add-more-that-4-input-signals" /><item><title>RE: Why can't I add more that 4 input signals?</title><link>https://devzone.nordicsemi.com/thread/53641?ContentTypeID=1</link><pubDate>Mon, 23 May 2016 13:50:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d07cf382-d17d-445e-a27c-9e99c4353d60</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;The nrf_drv_config.h files are configured for every project. Since most of our projects in SDK are based on nRF51 DK or nRF52 DK they will use four buttons, therefore this is set to four. If you look at the config file for for example the beacon it should be different.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I add more that 4 input signals?</title><link>https://devzone.nordicsemi.com/thread/53643?ContentTypeID=1</link><pubDate>Mon, 23 May 2016 13:34:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dbbbe99-e5de-450c-9f6e-2237334e5b15</guid><dc:creator>mosi</dc:creator><description>&lt;p&gt;&lt;strong&gt;true&lt;/strong&gt; statement means that the driver will use &amp;quot;high accuracy&amp;quot;. I have selected &lt;strong&gt;false&lt;/strong&gt;. Pretty descriptive, no?  :-P&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I add more that 4 input signals?</title><link>https://devzone.nordicsemi.com/thread/53640?ContentTypeID=1</link><pubDate>Mon, 23 May 2016 13:01:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfda2206-c31b-4310-9911-d75fcbcdacc0</guid><dc:creator>mosi</dc:creator><description>&lt;p&gt;So why is it set to 4 in the SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I add more that 4 input signals?</title><link>https://devzone.nordicsemi.com/thread/53642?ContentTypeID=1</link><pubDate>Mon, 23 May 2016 12:42:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:366ea36c-4071-46de-af55-ec4fc2c18a14</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Because there&amp;#39;s only 4 GPIOTE channels on the device and you&amp;#39;re asking for high accuracy which needs a GPIOTE channel. So when you&amp;#39;ve used 4, there are no more to use.&lt;/p&gt;
&lt;p&gt;The error return &lt;code&gt;NO_CHANNELS&lt;/code&gt; is pretty descriptive, no?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I add more that 4 input signals?</title><link>https://devzone.nordicsemi.com/thread/53639?ContentTypeID=1</link><pubDate>Mon, 23 May 2016 12:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a285fa0-b647-4419-930b-a3354ddf5cbf</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Probably &lt;code&gt;GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS&lt;/code&gt; in nrf_drv_config.h is too low (default is 4). Try changing it to the number of buttons you have.&lt;/p&gt;
&lt;p&gt;Ole&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>