<?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>Where should the SPI master enable definition be set? (nRF51 SDK v9)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9890/where-should-the-spi-master-enable-definition-be-set-nrf51-sdk-v9</link><description>The nRF51 SDK (version 9) documentation tells to activate SPI using the SPI_MASTER_0_ENABLE and SPI_MASTER_1_ENABLE macros. Where should these definitions be made? Other components seem to use nrf_drv_config.h for their configuration but spi_master does</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Nov 2015 17:09:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9890/where-should-the-spi-master-enable-definition-be-set-nrf51-sdk-v9" /><item><title>RE: Where should the SPI master enable definition be set? (nRF51 SDK v9)</title><link>https://devzone.nordicsemi.com/thread/36676?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 17:09:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b6910d2-fa7d-4fc4-a889-64ec5a5bd6ec</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;ok, I see your point.  All drivers that have nrf_drv_*  prefix have been included in the nrf_drv_config.h setup. I suspect the SPI will eventually be put into the same platform. Meanwhile, it is still spi_master, but until it becomes nrf_drv_spi_master, I guess it will be enabled with a preprocessor symbol.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where should the SPI master enable definition be set? (nRF51 SDK v9)</title><link>https://devzone.nordicsemi.com/thread/36677?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 11:42:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:289f8a74-52b3-4cfd-9a20-bc3ce6779323</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;Hi Stefan,
thanks for the feedback. In fact, I now that I can set preprocessor symbols (I&amp;#39;m using GCC with makefile, though). I was just wondering why the SPI driver is treated differently (or if there is a differnet place where all drivers should be configured). For a straightforward software design, it would be nice to have all hardware configuration in the same place. Sorry for not making this clear in my initial question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where should the SPI master enable definition be set? (nRF51 SDK v9)</title><link>https://devzone.nordicsemi.com/thread/36675?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 11:19:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f609aba0-c1e1-4aab-a1d2-d7a4a0a22031</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;As gortok points out you enable the SPI by inserting the processor symbols in Keil&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SPI_MASTER_0_ENABLE    
SPI_MASTER_1_ENABLE  
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is set in e.g. spi_master example in nRF51 SDK 9.0.0 as shown in the following screenshot&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Capture-_2D00_-processor-symbols-to-enable-SPI.JPG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where should the SPI master enable definition be set? (nRF51 SDK v9)</title><link>https://devzone.nordicsemi.com/thread/36674?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2015 20:31:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e1df245-5d10-43b2-b40b-ca0a0cf8da05</guid><dc:creator>gortok</dc:creator><description>&lt;p&gt;I just define them as a compiler argument; in gcc it&amp;#39;d be -DSPI_MASTER_0_ENABLE  . Not sure why it&amp;#39;s different.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where should the SPI master enable definition be set? (nRF51 SDK v9)</title><link>https://devzone.nordicsemi.com/thread/36672?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2015 12:41:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15f92ac0-43ed-41ec-8985-dad08b161c5f</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;Hi Stefan,
I&amp;#39;m using SDK 9.0.0.
Concerning the SPI master driver, I also hope that we will get a method for switching the SS signal during operation, something like described in this thread: &lt;a href="https://devzone.nordicsemi.com/question/29156/spi-with-multiple-chip-selects/."&gt;devzone.nordicsemi.com/.../.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where should the SPI master enable definition be set? (nRF51 SDK v9)</title><link>https://devzone.nordicsemi.com/thread/36673?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2015 08:54:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb92ce6d-600c-4b5c-8bec-a49a46bf2532</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;sorry for the late response.&lt;/p&gt;
&lt;p&gt;What nRF51 SDK version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>