<?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>Request a sample code for zephyr semaphore dependent SPI API calls</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84221/request-a-sample-code-for-zephyr-semaphore-dependent-spi-api-calls</link><description>Hi, 
 
 I am working with nCS SPI HAL, wherein i want semaphore in place at the HAL, which can avoid multiple slaves&amp;#39; concurrent access. 
 Can you kindly point me to any such semaphore logic or sample program available. 
 
 Thanks,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Feb 2022 10:28:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84221/request-a-sample-code-for-zephyr-semaphore-dependent-spi-api-calls" /><item><title>RE: Request a sample code for zephyr semaphore dependent SPI API calls</title><link>https://devzone.nordicsemi.com/thread/352280?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 10:28:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a38ff4da-04f2-413d-9ef9-3be54102529e</guid><dc:creator>sipan112</dc:creator><description>&lt;p&gt;hello &lt;a href="https://devzone.nordicsemi.com/members/ubaid_5f00_m"&gt;Ubaid_M&lt;/a&gt;&lt;br /&gt;when i get a sample available, i will share it with you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Request a sample code for zephyr semaphore dependent SPI API calls</title><link>https://devzone.nordicsemi.com/thread/352250?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 09:14:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:497a4fd7-a970-4fb2-9b39-d2137c81c75d</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;I have evaluated and completed my coding.&lt;br /&gt;Please mark this case as closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Request a sample code for zephyr semaphore dependent SPI API calls</title><link>https://devzone.nordicsemi.com/thread/352207?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 06:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09dae794-2b40-4a3d-b32b-495a2f0a8a22</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/dejans"&gt;dejans&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/84221/request-a-sample-code-for-zephyr-semaphore-dependent-spi-api-calls/350791#350791"]Have you checked&amp;nbsp;&lt;span&gt;zephyr\drivers\spi?&lt;/span&gt;[/quote]
&lt;p&gt;No semaphore usage in SPI driver files under the path nor in SPI test code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Request a sample code for zephyr semaphore dependent SPI API calls</title><link>https://devzone.nordicsemi.com/thread/350791?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 08:48:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49e2c1ce-ae48-4b52-ab35-f2d57528d0f6</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Have you checked&amp;nbsp;&lt;span&gt;zephyr\drivers\spi?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Request a sample code for zephyr semaphore dependent SPI API calls</title><link>https://devzone.nordicsemi.com/thread/350788?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 08:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6db0d183-e7fb-4a99-86f3-999ec9a4fe93</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/dejans"&gt;dejans&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/84221/request-a-sample-code-for-zephyr-semaphore-dependent-spi-api-calls/350700#350700"]searching for functions k_sem_define(), k_sem_give() and k_sem_take() from VS Code.[/quote]
&lt;p&gt;This I saw in the documentation, rather I am asking for a &lt;em&gt;&lt;strong&gt;sample code &amp;amp; project demonstrating the use of semaphore&lt;/strong&gt;&lt;/em&gt; and these APIs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Request a sample code for zephyr semaphore dependent SPI API calls</title><link>https://devzone.nordicsemi.com/thread/350700?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 13:55:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39d2090b-62c7-46b5-a8ae-4dce077bbce0</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You could try searching for functions k_sem_define(), k_sem_give() and k_sem_take() from VS Code. For example, you could look at zephyr\drivers\spi.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Request a sample code for zephyr semaphore dependent SPI API calls</title><link>https://devzone.nordicsemi.com/thread/350654?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 12:11:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9c358d2-ffb1-40b9-8fa5-95578244ab89</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/dejans"&gt;dejans&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;I am aware of&amp;nbsp;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/84221/request-a-sample-code-for-zephyr-semaphore-dependent-spi-api-calls/350645#350645"]information about semaphores[/quote]
&lt;p&gt;I am requesting for a sample project on usage of semaphores.&lt;/p&gt;
[quote userid="108934" url="~/f/nordic-q-a/84221/request-a-sample-code-for-zephyr-semaphore-dependent-spi-api-calls"]wherein i want semaphore in place at the HAL, which can avoid multiple slaves&amp;#39; concurrent access[/quote]
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Request a sample code for zephyr semaphore dependent SPI API calls</title><link>https://devzone.nordicsemi.com/thread/350645?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 11:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8a40d8d-bf3f-4067-84b3-1613d5f3f123</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You can get more information about semaphores under&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/reference/kernel/synchronization/semaphores.html"&gt;Zephyr semaphores&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Request a sample code for zephyr semaphore dependent SPI API calls</title><link>https://devzone.nordicsemi.com/thread/350358?ContentTypeID=1</link><pubDate>Mon, 31 Jan 2022 08:32:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c297b097-04e5-42ac-baf0-081888242f15</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/sipan112"&gt;sipan112&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="113039" url="~/f/nordic-q-a/84221/request-a-sample-code-for-zephyr-semaphore-dependent-spi-api-calls/350336#350336"]check this[/quote]
&lt;p&gt;This is just a sample app for SPI_Write() demo.&lt;br /&gt;&lt;br /&gt;I am rather looking for a sample project demonstrating use of semaphore.&lt;/p&gt;
[quote userid="108934" url="~/f/nordic-q-a/84221/request-a-sample-code-for-zephyr-semaphore-dependent-spi-api-calls"]wherein i want semaphore in place at the HAL, which can avoid multiple slaves&amp;#39; concurrent access.[/quote][quote userid="108934" url="~/f/nordic-q-a/84221/request-a-sample-code-for-zephyr-semaphore-dependent-spi-api-calls"]Can you kindly point me to any such semaphore logic or sample program available.[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Request a sample code for zephyr semaphore dependent SPI API calls</title><link>https://devzone.nordicsemi.com/thread/350336?ContentTypeID=1</link><pubDate>Sun, 30 Jan 2022 17:42:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69c19593-5eab-441e-967c-32a252131454</guid><dc:creator>sipan112</dc:creator><description>&lt;p&gt;hello Ubaid&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;you can check this:&amp;nbsp;&lt;a href="https://gist.github.com/disposedtrolley/f0edbef0e65dbd7b56207e4ffc35c8d1"&gt;Basic SPI on STM32 with Zephyr &amp;middot; GitHub&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>