<?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>BSP header files and board selection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13003/bsp-header-files-and-board-selection</link><description>Hi. 
 I am on nRF52 DK (PCA10040 v0.9.0, s132 SD), SDK 0.9.2 and Linux (Ubuntu). 
 I am currently working on the SDK&amp;#39;s example ble_app_uart. 
 I am only using gcc, and with the Makefile provided in the SDK, I&amp;#39;m able to run make, get the hex binary</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Apr 2016 00:54:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13003/bsp-header-files-and-board-selection" /><item><title>RE: BSP header files and board selection</title><link>https://devzone.nordicsemi.com/thread/49557?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2016 00:54:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e80b110-a87a-4d39-a6d6-93542a87f177</guid><dc:creator>Jean</dc:creator><description>&lt;p&gt;Thank you, it&amp;#39;s there. For most example #include &amp;quot;board.h&amp;quot; is included in main.c but for ble_app_uart it isn&amp;#39;t and bsp.h  acts as a fallback it seems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BSP header files and board selection</title><link>https://devzone.nordicsemi.com/thread/49556?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2016 15:51:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a94776e0-3fdd-4497-889a-b576e528ebc8</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;Ok, in that example boards.h is included by bsp.h. Boards.h includes pca10036.h, and it has definitions like buttons etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BSP header files and board selection</title><link>https://devzone.nordicsemi.com/thread/49555?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2016 15:46:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bef871ba-4926-4df7-8011-9ffa58428011</guid><dc:creator>Jean</dc:creator><description>&lt;p&gt;I agree that it seems like a natural place to be, but I cannot find any reference to boards.h in my nrf52_sdk_092/examples/ble_peripheral/ble_app_uart/main.c and that&amp;#39;s my issue. Should I look somewhere else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BSP header files and board selection</title><link>https://devzone.nordicsemi.com/thread/49554?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2016 15:38:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b21f6114-3033-49f8-a11f-2e6e6bd3bac2</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;In ble_app_hrs example it is included in main.c file. I think in the rest of examples it is similar. It is not called anywhere. Defines from it are used in various places...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BSP header files and board selection</title><link>https://devzone.nordicsemi.com/thread/49553?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2016 15:37:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51054860-5d74-44aa-a7f9-ecfb34552e35</guid><dc:creator>Jean</dc:creator><description>&lt;p&gt;Thanks Wojtek. I have seen this line, but my question was more : where is boards.h being called (rather where is it included) in the overall C code? I cannot find it (apologies if it is obvious).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BSP header files and board selection</title><link>https://devzone.nordicsemi.com/thread/49552?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2016 15:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f811e76-b84f-41a3-b792-3b16d4c92730</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;There is a line in boards.h:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#elif defined(BOARD_PCA10040)
#include &amp;quot;pca10040.h&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So, when you have BOARD_PCA10040 defines (which you have, because of CFLAGS), line &amp;quot;#include &amp;quot;pca10040.h&amp;quot; is used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>