<?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>Fails to use NRFX modules</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41707/fails-to-use-nrfx-modules</link><description>Hi 
 I try to use the NRFX drivers for some GPIOTE pins and uses SDK15.2. I see a lot of posts about problems with the NRFX drivers, but I can&amp;#39;t seem to find a conclusion. 
 The problem is I enable NRFX_GPIOTE_ENABLED in sdk_config.h, but it always get</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Dec 2018 13:12:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41707/fails-to-use-nrfx-modules" /><item><title>RE: Fails to use NRFX modules</title><link>https://devzone.nordicsemi.com/thread/162661?ContentTypeID=1</link><pubDate>Thu, 20 Dec 2018 13:12:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fee5dd9-b83e-4d31-b227-c35cd0978a8b</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;In SDK 15 the pheriperal drivers are using NRFX, however it may seem like the legacy driver are still used since the legacy API is used. E.g. in the main file of the GPIOTE example, the function&amp;nbsp;&lt;em&gt;nrf_drv_gpiote_init()&lt;/em&gt; is used, however this is remapped to the new NRX function&amp;nbsp;&lt;em&gt;nrfx_gpiote_init()&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;In the sdk_config.h file, both of the legacy definitions and the NRFX definitions are apparent. The way I would go about this (the easy way),&amp;nbsp;is to ignore the NRFX definitions and use the old legacy definitions.&amp;nbsp;In the same way the legacy funtions are remapped to the NRFX functions, the legacy definitions are remapped to the NRFX definitions. For example if you set GPIOTE_ENABLED to 1 and&amp;nbsp;NRFX_GPIOTE_ENABLED to 0. You will end up with&amp;nbsp;&lt;span&gt;NRFX_GPIOTE_ENABLED being equal to 1, due to this line in &lt;em&gt;apply_old_config.h&lt;/em&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#if defined(GPIOTE_ENABLED)

#undef NRFX_GPIOTE_ENABLED
#define NRFX_GPIOTE_ENABLED  GPIOTE_ENABLED&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Does this make sense, or are you even more confused? Please ask if so.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fails to use NRFX modules</title><link>https://devzone.nordicsemi.com/thread/162352?ContentTypeID=1</link><pubDate>Tue, 18 Dec 2018 16:33:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df9b127f-b0fe-4ebc-8e94-e02f0aac57ff</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Drivers from &lt;a href="https://github.com/I-SYST/EHAL/tree/master/ARM/Nordic"&gt;this project&lt;/a&gt; is much better written. &amp;nbsp;You can configure everything at runtime. Unlike the SDK, It doesn&amp;#39;t have thousands of conditional compilation defines. &amp;nbsp; It also supports both C &amp;amp; C++ code optimized and more performance than the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>