<?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 is the function of BSP.h header?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22114/what-is-the-function-of-bsp-h-header</link><description>what is the function of bsp.h header file. if i use my custom product should i also use this header file?
i am tring to make LED blink with custom port pin. (different pin beside DK) how can i able to do that?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 May 2017 07:10:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22114/what-is-the-function-of-bsp-h-header" /><item><title>RE: What is the function of BSP.h header?</title><link>https://devzone.nordicsemi.com/thread/86887?ContentTypeID=1</link><pubDate>Fri, 19 May 2017 07:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc37a751-1bd2-4db7-afcc-19947786dc7e</guid><dc:creator>Shahrear</dc:creator><description>&lt;p&gt;Thanks for you reply boss&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the function of BSP.h header?</title><link>https://devzone.nordicsemi.com/thread/86886?ContentTypeID=1</link><pubDate>Thu, 18 May 2017 12:46:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c7f6428-b65d-42a2-880a-832f4c6bd77d</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi HiberXen&lt;/p&gt;
&lt;p&gt;You can read more about the Board Support Package (BSP) &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/group__bsp.html?cp=4_0_0_6_10_4#details"&gt;here,&lt;/a&gt; or in the BSP tutorial, &lt;a href="https://devzone.nordicsemi.com/tutorials/13/"&gt;here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is possible to use it with a custom board. You can copy one of the existing board files (e.g pca10040.h), rename it to custom_boards.h and the modify it to your requirements (change pin config. etc). After you have created your custom board file, you have to modify the boards.h file to include the file you created.&lt;/p&gt;
&lt;p&gt;Like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;..
#elif defined(BOARD_CUSTOM)
   #include &amp;quot;custom_board.h&amp;quot;
..
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then, in Keil, go to options for target -&amp;gt; C/C++ tab -&amp;gt; Define -&amp;gt; Remove the board_pca10040 and add your BOARD_CUSTOM.&lt;/p&gt;
&lt;p&gt;As for blinking the LED, I would recommend that you take a look at &lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;this&lt;/a&gt; tutorial, which sets up a timer that toggles an LED.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>