<?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>nrf52.h vs nrf52840.h?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22694/nrf52-h-vs-nrf52840-h</link><description>Hello, I&amp;#39;m using the nrf52840 SoC, and nrf52840.h appears to be a more &amp;quot;localized&amp;quot; and &amp;quot;specialized&amp;quot; version of nrf52.h for nrf52840. So quite reasonably I should use nrf52840.h. 
 But the thing is, I&amp;#39;m doing a migration from nrf51 devices, can I just</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Jun 2017 01:40:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22694/nrf52-h-vs-nrf52840-h" /><item><title>RE: nrf52.h vs nrf52840.h?</title><link>https://devzone.nordicsemi.com/thread/89224?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 01:40:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b40c921c-b445-4255-ad32-d97be22a6d6e</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;Got it, thanks a whole bunch!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52.h vs nrf52840.h?</title><link>https://devzone.nordicsemi.com/thread/89226?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2017 02:25:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08363ddc-fa5a-4ae7-a6b8-b11be01740c0</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;defined() is very standard C preprocessor syntax, every compiler understands it. It has nothing to do with MDK-ARM. Just define it wherever in your build system you define things. In a makefile it&amp;#39;s -D, in every IDE it&amp;#39;s somewhere in the IDE. Any of the examples for the NRF52840 for your IDE/build system will have it correctly defined, copy that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52.h vs nrf52840.h?</title><link>https://devzone.nordicsemi.com/thread/89225?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2017 02:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71efbfec-0961-42fa-bc0e-edf8b381eb72</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;Well the thing is, the original project kind of had all those specific includes, but instead they were about nrf51.&lt;/p&gt;
&lt;p&gt;So when migrating to the nrf52 platform, I simply changed them to nrf52/nrf52840 etc.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not exactly sure including nrf.h can get things done, since I&amp;#39;ve already done it. Either way, inside nrf.h, all you see is macros that dictate inclusion of nrf52.h, nrf52840.h etc.&lt;/p&gt;
&lt;p&gt;Anyhow, in nrf.h, there&amp;#39;s this line:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#elif defined (NRF52840_XXAA)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;quot;definted&amp;quot; isn&amp;#39;t exactly a C99 standard keyword, so I suppose it has something to do with the MDK-ARM, how do I properly activate this line? By putting down &amp;quot;NRF52840_XXAA&amp;quot; in the magic-wand -&amp;gt; C/C++ tab -&amp;gt; define inputbox?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52.h vs nrf52840.h?</title><link>https://devzone.nordicsemi.com/thread/89223?ContentTypeID=1</link><pubDate>Sun, 11 Jun 2017 09:47:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1aeddcb8-5bb3-4314-94b6-659f6a1bec70</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;must be in a better timezone! It&amp;#39;s nice when two people agree on an answer however.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52.h vs nrf52840.h?</title><link>https://devzone.nordicsemi.com/thread/89222?ContentTypeID=1</link><pubDate>Sun, 11 Jun 2017 09:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af283dd7-bce1-439f-ac4a-3afd4b6b6a61</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hey, you were 15 seconds faster&amp;#39;;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52.h vs nrf52840.h?</title><link>https://devzone.nordicsemi.com/thread/89227?ContentTypeID=1</link><pubDate>Sun, 11 Jun 2017 09:42:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ba3fd88-c3c5-4e1c-99a1-e35b26b2366b</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;I believe you should not manage this manually but instead include simply &lt;code&gt;components\device\nrf.h&lt;/code&gt; and just set correct global defines identifying your target. SDK should do the magic for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52.h vs nrf52840.h?</title><link>https://devzone.nordicsemi.com/thread/89221?ContentTypeID=1</link><pubDate>Sun, 11 Jun 2017 09:42:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae23707f-0e02-482b-9bfe-660bed2ce4e5</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Just include nrf.h and make sure you have the correct defines. nrf.h will (as it always has done) include the right things, which in this case is nrf352840.h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>