<?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>Interaction between pwm library and gpiote(error in gpiote init)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19507/interaction-between-pwm-library-and-gpiote-error-in-gpiote-init</link><description>Hi All, 
 Continuing on with my project: a custom board containing nRF52 + ECG front end. 
 Successfully integrates SPI functionality; need 2 more interfaces: 
 
 
 32 KHz clock; using pwm library;
codes taken from the pwm_library
example 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Feb 2017 10:25:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19507/interaction-between-pwm-library-and-gpiote-error-in-gpiote-init" /><item><title>RE: Interaction between pwm library and gpiote(error in gpiote init)</title><link>https://devzone.nordicsemi.com/thread/75793?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2017 10:25:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23d501be-3139-42c1-8a72-2ab42bdc9594</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Correct. You should do like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if(nrf_drv_gpiote_is_init() == false)
{
    err_code = nrf_drv_gpiote_init();
    APP_ERROR_CHECK(err_code);  
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interaction between pwm library and gpiote(error in gpiote init)</title><link>https://devzone.nordicsemi.com/thread/75792?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2017 22:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5192eb4-ba50-4af3-97ed-f0a060fd79c8</guid><dc:creator>leey</dc:creator><description>&lt;p&gt;After reading the doc, noted the reason for my issue; from the doc, the nrf_drv_gpiote_init() is a shared resource; so can only be called once; need to check if gpiote has been initialized or not.
So problem understood.&lt;/p&gt;
&lt;p&gt;Thanks,
Lee&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>