<?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>File location of event handlers</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21291/file-location-of-event-handlers</link><description>Hi all, 
 When using GCC and Eclipse with SDK 13.0.0 to program an nRF52832 with the Serial and ESB libraries, are there any limitations as to where you can put event handlers? Do they have to be in the same file as the main() function or can you split</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Apr 2017 09:24:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21291/file-location-of-event-handlers" /><item><title>RE: File location of event handlers</title><link>https://devzone.nordicsemi.com/thread/83397?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 09:24:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a809d344-c3f1-4895-8aab-d521213cfdd0</guid><dc:creator>Steve H</dc:creator><description>&lt;p&gt;Thanks, endnode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File location of event handlers</title><link>https://devzone.nordicsemi.com/thread/83399?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 09:24:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c87e539f-82ec-48e5-a526-fc6d9cc55136</guid><dc:creator>Steve H</dc:creator><description>&lt;p&gt;Thanks, Radosław.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File location of event handlers</title><link>https://devzone.nordicsemi.com/thread/83398?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2017 12:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e902c7-b329-4be1-8c46-69c192bb27f3</guid><dc:creator>Radoslaw Koppel</dc:creator><description>&lt;p&gt;This is a linker with connects event handlers with an array at the beginning of the memory. So it does not matter in witch file would it be implemented as long as the name matches and the function is externally visible (basically it cannot be static).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File location of event handlers</title><link>https://devzone.nordicsemi.com/thread/83396?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2017 12:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73526a46-6ed1-40f5-94f8-6783b686bd3e</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Place them anywhere you want, they will be linked into homogeneous binary during linking anyway.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>