<?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>What needs to be done to enable the Serial and UARTE features?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58899/what-needs-to-be-done-to-enable-the-serial-and-uarte-features</link><description>Hi! I am trying to enable UARTE and Serial in my app, but somehow the nrf_serial code is not compiled because it fails the &amp;quot;#if NRF_MODULE_ENABLED(NRF_SERIAL)&amp;quot; test. 
 How do I select this? I do not see &amp;quot;NRF_SERIAL&amp;quot; in the sdk_config.h file. I have enabled</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Mar 2020 13:09:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58899/what-needs-to-be-done-to-enable-the-serial-and-uarte-features" /><item><title>RE: What needs to be done to enable the Serial and UARTE features?</title><link>https://devzone.nordicsemi.com/thread/239114?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 13:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:805d1d3c-675f-4b91-b6c0-80f436ce22af</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;In order to use the functions in nrf_serial.h/c, you have to set&amp;nbsp;NRF_SERIAL_ENABLED to 1 in &lt;em&gt;sdk_config.h&lt;/em&gt;, then the test &amp;quot;&lt;span&gt;NRF_MODULE_ENABLED(NRF_SERIAL)&amp;quot; will succeed. The reason for this is because the macro&amp;nbsp;NRF_MODULE_ENABLED will append &amp;quot;_ENABLED&amp;quot; at the end of the input and check that configuration:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRF_MODULE_ENABLED(module) \
    ((defined(module ## _ENABLED) &amp;amp;&amp;amp; (module ## _ENABLED)) ? 1 : 0)
#endif&lt;/pre&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>