<?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>Problem exposing nrfx watchdog code.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64723/problem-exposing-nrfx-watchdog-code</link><description>Hi! I was defining NRFX_WDT_ENABLED in sdk_config.h, but found that apply_old_config.h was undefining it. 
 Even though I had WDT_ENABLED defined to zero, the test in apply_old_config.h is for if it was defined AT ALL, not if it was defined to a non-zero</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Aug 2020 12:56:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64723/problem-exposing-nrfx-watchdog-code" /><item><title>RE: Problem exposing nrfx watchdog code.</title><link>https://devzone.nordicsemi.com/thread/264272?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 12:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aee75235-2f64-4d99-88dc-39f17e6c5e76</guid><dc:creator>BenBurch</dc:creator><description>&lt;p&gt;A comment header in sdk_config.h would likely be a good option here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem exposing nrfx watchdog code.</title><link>https://devzone.nordicsemi.com/thread/264222?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 10:33:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbcfbf96-e0d2-46e6-b00c-e4616b92c280</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Ben,&lt;/p&gt;
&lt;p&gt;The actual purpose initially for the apply_old_config.h was to take the settings from sdk_config.h and make it work with the NRFX layer.&lt;/p&gt;
&lt;p&gt;defining anything in sdk_config.h should ideally overseed other defines that are underneath it. So defining _WDT_ENABLED to 0 in sdk_config.h file and defining&amp;nbsp;NRFX_WDT_ENABLED to 1 is wrong.&lt;/p&gt;
&lt;p&gt;But this is not your mistake, I guess it is not clearly documented on how these integration of macros is happening.&lt;/p&gt;
&lt;p&gt;If you are intending to directly use nrfx_wdt then do not define the _WDT_ENABLED at all. I think that the check on WDT_ENABLED is correct, but it seems that the documentation on what was attempted to do here could be improved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem exposing nrfx watchdog code.</title><link>https://devzone.nordicsemi.com/thread/264125?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 17:11:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eb608d7-064e-4b0d-a085-d4f755032e46</guid><dc:creator>BenBurch</dc:creator><description>&lt;p&gt;This would also fail in the legacy case that apply_old_config.h was hoping to solve, as defining WDT_ENABLED prevents compilation of the new nrf wdt code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>