<?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>adding #ifdef to driver config  in zephyr macrobatics</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92223/adding-ifdef-to-driver-config-in-zephyr-macrobatics</link><description>hello Nordic 
 
 i am working with nrf52832, with ncs 1.7.1 
 i am writing my own driver which will be used by 2 baords 
 one board have to raise 2 gpios to get power and on has to raise only one 
 i am not sure how to use the phandle array option to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Sep 2022 08:17:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92223/adding-ifdef-to-driver-config-in-zephyr-macrobatics" /><item><title>RE: adding #ifdef to driver config  in zephyr macrobatics</title><link>https://devzone.nordicsemi.com/thread/388687?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 08:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59eb7d39-a6b2-483b-819e-851048d58e9b</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Would you be able share the driver, so I can try to reproduce it on my end? Could you also share the&amp;nbsp;&lt;span&gt;devicetree binding (.yaml) file for the compatible&amp;nbsp;&amp;quot;ti,ads8866_chain&amp;quot;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding #ifdef to driver config  in zephyr macrobatics</title><link>https://devzone.nordicsemi.com/thread/388399?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 14:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54e1eeef-c622-4ce8-826c-4b2b45e5366c</guid><dc:creator>ziv123</dc:creator><description>&lt;p&gt;hi Simon&lt;/p&gt;
&lt;p&gt;i use #ifdefs in my code and that is not the issue i am asking about&lt;/p&gt;
&lt;p&gt;what solved the issue i posted is to take the #ifdef outside of the device_config part and basically write it twice&lt;/p&gt;
&lt;p&gt;the question is why the #ifdef did not work inside the device_config part&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;hope to read from you soon&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Ziv&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding #ifdef to driver config  in zephyr macrobatics</title><link>https://devzone.nordicsemi.com/thread/387683?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 11:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b37a785-df99-4922-a41c-7cd44ce3b113</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I played around with the hello_world sample, and was able to include/exclude a field from a stuct depending on whether a Kconfig was enabled or not. Test it out yourself and use the same approach in your driver.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/macrobatics.zip"&gt;devzone.nordicsemi.com/.../macrobatics.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>