<?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>Set a button as an interrupt source</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23789/set-a-button-as-an-interrupt-source</link><description>Hi,
I&amp;#39;m trying to set a button as an interrupt source. I wrote this code: 
 void Init(void){
	pwrmng_MainStatus = PWRMNG_STS_STARTUP;
	//LED
	#ifdef DEBUG_LED
	nrf_gpio_cfg_output(LED_R);
	nrf_gpio_cfg_output(LED_G);
	LED_G_TURN_OFF();
	LED_R_TURN_OFF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jul 2017 13:49:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23789/set-a-button-as-an-interrupt-source" /><item><title>RE: Set a button as an interrupt source</title><link>https://devzone.nordicsemi.com/thread/93576?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 13:49:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73a048c4-fd4d-4079-b92b-27813353b9bb</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Could you answer my other questions, and could you upload the entire project, for debugging?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set a button as an interrupt source</title><link>https://devzone.nordicsemi.com/thread/93578?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 12:36:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6facfa54-1046-4789-aa0b-aaccd7466600</guid><dc:creator>Francesca</dc:creator><description>&lt;p&gt;The example works.. but copying the code (I paid attention to change pin and interrupt handler) in mine, it doesn&amp;#39;t work!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set a button as an interrupt source</title><link>https://devzone.nordicsemi.com/thread/93579?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 10:26:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99472631-3b52-4897-a716-6157fea6b22b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you test the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/pin_change_int_example.html?cp=4_0_2_4_5_16"&gt;pin_change_interrupt example&lt;/a&gt; in the SDK? Are you testing this on a nRF51 DK, or a custom board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set a button as an interrupt source</title><link>https://devzone.nordicsemi.com/thread/93577?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 10:04:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71248ee4-d2e3-405b-b638-ccc0cefd50d0</guid><dc:creator>Francesca</dc:creator><description>&lt;p&gt;Unfortunately, it doesn&amp;#39;t work!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set a button as an interrupt source</title><link>https://devzone.nordicsemi.com/thread/93575?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 09:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7521834f-a555-4dbb-94e7-5fb79e9a9d4e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you tried with &lt;code&gt;nrf_drv_gpiote_in_config_t config_pin = GPIOTE_CONFIG_IN_SENSE_HITOLO(true);&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>