<?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>FreeRTOS with NRFX: clock</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72910/freertos-with-nrfx-clock</link><description>Dear all: 
 I want to implement FreeRTOS using NRFX, I checked the example and discovered that it uses the nrf_drv_clock... and thus it becomes a spaghetti with this legacy and new libraries... 
 My question is the following: 
 would you recommend keeping</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Mar 2021 10:33:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72910/freertos-with-nrfx-clock" /><item><title>RE: FreeRTOS with NRFX: clock</title><link>https://devzone.nordicsemi.com/thread/300342?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 10:33:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8ed790c-c2f9-4658-9c14-17cd1bb13a91</guid><dc:creator>Javiehm</dc:creator><description>&lt;p&gt;Thank you Einar, in the mean time i already included the nrf_drv_clock, and is exactly as you say.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think it would be necessary to make it clearer that drv is not really deprecated, as several examples still use it... I thought i needed to completely switch and leave it aside&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS with NRFX: clock</title><link>https://devzone.nordicsemi.com/thread/300339?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 10:27:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b18edb0-b1f6-4f72-82c5-6978697f646f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]would you recommend keeping old nrf drv clock or should i try to migrate all to nrfx... ?&amp;nbsp;[/quote]
&lt;p&gt;I recommend keeping nrf_drv_clock. In most cases the nrf_drv API just uses the nrfx drivers via preprocessor defines, so you end up with exactly the same code. This is not the case with nrf_drv_clock though, as it handles the SoftDevice, which controls the clock when it is in use. So you should think of nrf_drv_clock as a higher level than nrfx_clock. If you will be using the SoftDevice, then using nrf_drv_clock is the way to go. (Alternatively you will quickly just end up re-implementing it yourself which is probably not time well spent).&lt;/p&gt;
[quote user=""]are there any available FreeRTOS examples that dont use this clock files?&amp;nbsp;[/quote]
&lt;p&gt;No (for the reason explained above).&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>