<?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>Can&amp;#39;t open syscall/gpio.h</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119955/can-t-open-syscall-gpio-h</link><description>Hi everyone, 
 I am getting this build error while I am trying to call a function from gpio.h in my custom code 
 
 Looking at my includes I see this 
 
 This is a really old SDK version (2.1.0) because this sample software was created on this version</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Mar 2025 13:24:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119955/can-t-open-syscall-gpio-h" /><item><title>RE: Can't open syscall/gpio.h</title><link>https://devzone.nordicsemi.com/thread/528230?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2025 13:24:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23728e17-690f-4f56-921a-e28c8d3e5ff6</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I believe you&amp;#39;re missing&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;em&gt;#include &amp;lt;zephyr/drivers/gpio.h&amp;gt; &lt;/em&gt;in main.c or&amp;nbsp;&lt;em&gt;CONFIG_GPIO=y &lt;/em&gt;in your prj.conf&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>