<?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>Why is ble_cus.c not a header file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22789/why-is-ble_cus-c-not-a-header-file</link><description>In this tutorial 
 github.com/.../custom_ble_service_example 
 There are two additional files added to the template project 
 ble_cus.c
ble_cus.h
 
 I understand that ble_cus.h must be included as a header in both ble_cus.c and main.c 
 However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Jun 2017 07:31:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22789/why-is-ble_cus-c-not-a-header-file" /><item><title>RE: Why is ble_cus.c not a header file</title><link>https://devzone.nordicsemi.com/thread/89601?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 07:31:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:354bdc52-5e01-4025-92b1-cf8a8108561e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should not include source files the same way you include header files. The header files provide the declaration of variables and functions to your main application, while the source code should contain implementation of functions. Source files are included in the project and is compiled separately into object files. The object files are then linked into the complete application, together with main.&lt;/p&gt;
&lt;p&gt;In Keil, you add source files by right clicking the group you want to the file to, for instance &lt;em&gt;nRF_BLE_Services&lt;/em&gt;, and click &amp;quot;Add Existing Files to Group &amp;#39;...&amp;#39;&amp;quot;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>