<?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>Structure initialization</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/641/structure-initialization</link><description>Hi, I&amp;#39;m just wondering if there&amp;#39;s a reason that the example code is always initializing all structures through functions. Has it something to do with sleep mode and RAM retention? 
 Why are you not initializing the structures when defining the static</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Oct 2013 08:08:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/641/structure-initialization" /><item><title>RE: Structure initialization</title><link>https://devzone.nordicsemi.com/thread/3279?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2013 08:08:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:085dc999-9a42-4b8c-8bfa-557f3acc0b21</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;All I can say is that there is an internal discussion around the matter, which need to take into account older toolchain support vs convenience.
Sorry not to be able to unveil more at this time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Structure initialization</title><link>https://devzone.nordicsemi.com/thread/3278?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2013 08:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e33e459-59db-4d59-84f2-0296477ef8a8</guid><dc:creator>KPE</dc:creator><description>&lt;p&gt;Could you elaborate a little on why C90 is your target?&lt;/p&gt;
&lt;p&gt;Is it just an old habbit, or does it give you a clear advantage, for example if you&amp;#39;d like to port it to other platforms?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Structure initialization</title><link>https://devzone.nordicsemi.com/thread/3277?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2013 06:50:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:426579de-103c-46ba-9586-078df0717cbb</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Your approach to initialize structures requires C99.
While this is usually fine, at Nordic we try to limit ourselves to C90.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Carles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>