<?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>coding variable naming conventions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4316/coding-variable-naming-conventions</link><description>Hi,
this is my first time I write on this forum and I hope to find some useful suggestions for my work on Nordic platform. I work since many months on nRF81522 chip and I noted the pretty coding used in Nordic&amp;#39;s API for naming convention; I&amp;#39;d like to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Nov 2014 12:17:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4316/coding-variable-naming-conventions" /><item><title>RE: coding variable naming conventions</title><link>https://devzone.nordicsemi.com/thread/15378?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2014 12:17:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7d02f14-36a5-4929-8f42-7d80d31d7db8</guid><dc:creator>dUrbano</dc:creator><description>&lt;p&gt;Thank you very much for your fast and complete answer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: coding variable naming conventions</title><link>https://devzone.nordicsemi.com/thread/15377?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2014 12:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c02ac736-2362-4849-8586-4e65ba6bf80c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We&amp;#39;re not following a specific coding standard, but we&amp;#39;ve used some as inspiration for our internal coding standard.
We use prefixes for globals (g_&lt;em&gt;), static (m_&lt;/em&gt;), and no prefix on auto-variables.
The SoftDevice API calls are all prefixed with sd_&lt;em&gt;, while functions in BLE profiles are prefixed with ble_&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Indentation style is allman:
&lt;a href="http://en.wikipedia.org/wiki/Indent_style#Allman_style"&gt;en.wikipedia.org/.../Indent_style&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>