<?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>Help me understand the &amp;quot;DRV_RTC_INSTANCE&amp;quot; macro</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70306/help-me-understand-the-drv_rtc_instance-macro</link><description>I am reading through the code and would like to understand the following macro 
 #define DRV_RTC_INSTANCE(id) \ { \ .p_reg = NRFX_CONCAT_2(NRF_RTC, id), \ .irq = NRFX_CONCAT_3(RTC, id, _IRQn), \ .instance_id = NRFX_CONCAT_3(DRV_RTC_RTC, id, _INST_IDX</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Jan 2021 18:53:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70306/help-me-understand-the-drv_rtc_instance-macro" /><item><title>RE: Help me understand the "DRV_RTC_INSTANCE" macro</title><link>https://devzone.nordicsemi.com/thread/288474?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 18:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:704402f3-99d5-4020-b470-a841da153a50</guid><dc:creator>doryhealth</dc:creator><description>&lt;p&gt;Thank you Einar.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help me understand the "DRV_RTC_INSTANCE" macro</title><link>https://devzone.nordicsemi.com/thread/288384?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 13:08:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b1492ec-6e3f-422d-9a94-72780f839e82</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Jerome,&lt;/p&gt;
[quote user=""]Or is it simply a concatenation of strings resulting in NRF_RTC1, in this case?[/quote]
&lt;p&gt;Yes, that is what it is. So in this case you get:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;.p_reg =&amp;nbsp;NRF_RTC1&lt;/li&gt;
&lt;li&gt;.irq =&amp;nbsp;RTC1_IRQn&lt;/li&gt;
&lt;li&gt;.instance_id =&amp;nbsp;DRV_RTC_RTC1_INST_IDX&lt;/li&gt;
&lt;li&gt;.cc_channel_count =&amp;nbsp;RTC1_CC_NUM = 4&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>