<?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>delay after SPIS uninit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89037/delay-after-spis-uninit</link><description>Hi, 
 Due to shortage of pins SPI CS is reconfigured as GPIO while SPI is not used. Soft device is not used. 
 Problem is the delay that is needed after nrfx_spis_uninit call. 
 Is it possible to check some register to know if uninit is already finished</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Jun 2022 07:57:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89037/delay-after-spis-uninit" /><item><title>RE: delay after SPIS uninit</title><link>https://devzone.nordicsemi.com/thread/373848?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2022 07:57:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b595528a-077a-48d1-9de3-e71d70d21019</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve asked about this internally, and was informed this was expected to work without a delay as the product specification states this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;When the peripheral is disabled, the pins will behave as regular GPIOs and use the configuration in their respective OUT bit field and PIN_CNF[n] register.&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;Can you please check the contents of&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;NRF_SPISx-&amp;gt;PSEL.MISO/MOSI/SCK/CSN&lt;/span&gt; after nrfx_spis_uninit?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And then&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;NRF_P&amp;lt;number of port&amp;gt;-&amp;gt;PIN_CNF[number of pin in port]&lt;/span&gt; after configuring GPIO?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Einar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: delay after SPIS uninit</title><link>https://devzone.nordicsemi.com/thread/373304?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 15:34:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe2c88a7-3e1a-40d6-9f06-2b01945a7af1</guid><dc:creator>kaluzevicius</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Yes, I want to replace delay between&amp;nbsp;SPI uninit and GPIO init.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;If I understood correctly&amp;nbsp;&lt;span&gt;p_cb-&amp;gt;state is set to&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRFX_DRV_STATE_UNINITIALIZED just before leaving&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/master/drivers/src/nrfx_spi.c#L190"&gt;nrfx_spi_uninit()&lt;/a&gt;&amp;nbsp;so it will always be equal to&amp;nbsp;NRFX_DRV_STATE_UNINITIALIZED. Am I right? Or should I check another for another state?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR&lt;br /&gt;Julius&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: delay after SPIS uninit</title><link>https://devzone.nordicsemi.com/thread/373154?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 07:41:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ae145b8-7c29-4c3c-bf88-2625eff06a14</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I thought you wanted to replace the delay between uniniting SPI and initing GPIO by checking when the SPI uninit is finished?&lt;/p&gt;
&lt;p&gt;Now you want to check when GPIO is ready?&lt;/p&gt;
&lt;p&gt;Can you please elaborate?&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: delay after SPIS uninit</title><link>https://devzone.nordicsemi.com/thread/372947?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2022 08:10:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f45b3341-5662-4f21-84f6-cee6727f569b</guid><dc:creator>kaluzevicius</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;It is not that.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Problem is that you cannot use gpio right after calling&amp;nbsp;nrfx_spis_uninit(&amp;amp;spis); Delay is needed to toggle the pin.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Question is how to check when gpio is ready to be used as output after&amp;nbsp;&lt;span&gt;calling&amp;nbsp;&lt;/span&gt;&lt;span&gt;nrfx_spis_uninit(&amp;amp;spis);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Julius&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: delay after SPIS uninit</title><link>https://devzone.nordicsemi.com/thread/372936?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2022 07:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05f2ce39-74d7-4db6-a78c-e68df77c9372</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;Looking at the definition of &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/master/drivers/src/nrfx_spi.c#L190"&gt;nrfx_spi_uninit()&lt;/a&gt;, p_cb-&amp;gt;state is set to&amp;nbsp;&lt;span&gt;NRFX_DRV_STATE_UNINITIALIZED when it&amp;#39;s finished, so you could probably use that?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Einar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>