<?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>how do i view header files in keil component classes?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13087/how-do-i-view-header-files-in-keil-component-classes</link><description>I have installed Keil v5.18a
and have installed MDK for nRF51-DK. 
 Examining the basic LED blink examples showed that in some projects, the &amp;#39;bsp.h&amp;#39; which would be the header file for &amp;#39;bsp.c&amp;#39; is shown and in some other projects it is not available.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Apr 2016 14:03:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13087/how-do-i-view-header-files-in-keil-component-classes" /><item><title>RE: how do i view header files in keil component classes?</title><link>https://devzone.nordicsemi.com/thread/49902?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2016 14:03:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6f1ac85-77cb-4291-9808-118dead58577</guid><dc:creator>chadrick</dc:creator><description>&lt;p&gt;yep i think you&amp;#39;re right. I think compiling it is the key.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how do i view header files in keil component classes?</title><link>https://devzone.nordicsemi.com/thread/49901?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2016 12:50:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:289024be-5d44-4499-8821-d156f871c10f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Chadrick,
I believe if you can manage to compile the project, you will see the list of header files for each file.
Do you have any problem when you compile the &amp;quot;issue&amp;quot; project ?
Note that in the latest SDK, we moved away from packs. Have a look &lt;a href="https://devzone.nordicsemi.com/blogs/880/deprecating-support-for-cmsis-pack-in-nrf5-sdk/"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how do i view header files in keil component classes?</title><link>https://devzone.nordicsemi.com/thread/49903?ContentTypeID=1</link><pubDate>Sun, 10 Apr 2016 13:19:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87d9be43-9ed4-4d23-ab48-f7a70e8e1c6b</guid><dc:creator>chadrick</dc:creator><description>&lt;p&gt;okay I have found out half of the reason why this happens.&lt;/p&gt;
&lt;p&gt;Part of the reason behind this difference was the &amp;#39;variant&amp;#39; configuration of &amp;#39;software components&amp;#39;. Here&amp;#39;s a walkthough showing what difference this can make.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;User can manage their software components via &amp;#39;manage run-time environment&amp;#39; icon.
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/a00.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;in my case, I&amp;#39;m interested in the &amp;#39;board support&amp;#39; software component.
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0434.a01.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;there are four variants in total. I&amp;#39;m not sure what each of those variants do but I do have a fair-guess of my own. If you want to get the same amount of hunch that I do now, take a look at &amp;#39;bsp.h&amp;#39; file. In that file, there is a small piece of code that looks like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/* BSP_UART_SUPPORT
 * This define enables UART support module.
 */
#ifdef BSP_UART_SUPPORT
#include &amp;quot;app_uart.h&amp;quot;
#endif // BSP_UART_SUPPORT
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So, my hunch is that depending on the variant, the &amp;#39;bsp.h&amp;#39; file will include some more features or not. Therefore, I&amp;#39;m pretty sure that it is safe to assume that &amp;#39;default&amp;#39; variant is the &amp;#39;default&amp;#39; version of &amp;#39;bsp.h&amp;#39;.
However, I have no clue on what &amp;#39;defines&amp;#39; variant could be. also, there isn&amp;#39;t another &amp;quot;#ifdef&amp;quot; at all, leaving me curious what the &amp;#39;Simple_with_uart&amp;#39; variant could possibly be.
Despite many unanswered questions, I&amp;#39;ll show what results occur depending on the &amp;#39;defines&amp;#39; and &amp;#39;default&amp;#39; variants.&lt;/p&gt;
&lt;p&gt;First, when I choose the &amp;#39;defines&amp;#39; variant the project panel looks like this:
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1033.a02.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;the &amp;#39;board support&amp;#39; component cannot be extended further.&lt;/p&gt;
&lt;p&gt;If I can the variant to &amp;#39;default&amp;#39;:
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4265.a03.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;then I get:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5165.a04.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;this time, I have an extendable &amp;#39;board support&amp;#39; component.&lt;/p&gt;
&lt;p&gt;I have found that in some examles projects, the &amp;#39;board support&amp;#39; component does not become extensive despite using the &amp;#39;default&amp;#39; variant. That is why I think I&amp;#39;ve only found half of my answer.&lt;/p&gt;
&lt;p&gt;If anyone could enlighten me on the key difference between &amp;#39;defines&amp;#39; and &amp;#39;default&amp;#39; variant of software components, I would be grateful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>