<?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>Integrating Adafruit Library with Zephyr on nRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110286/integrating-adafruit-library-with-zephyr-on-nrf52</link><description>Hi everyone, 
 I am currently working on a project using the Zephyr RTOS on an nRF52 board and I&amp;#39;m looking to integrate the Adafruit library into my project. Most of the Adafruit libraries are developed for Arduino and use C++, while the example code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Apr 2024 10:41:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110286/integrating-adafruit-library-with-zephyr-on-nrf52" /><item><title>RE: Integrating Adafruit Library with Zephyr on nRF52</title><link>https://devzone.nordicsemi.com/thread/479667?ContentTypeID=1</link><pubDate>Fri, 19 Apr 2024 10:41:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc77c75a-eab6-4c36-b494-facd397a2616</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="oliver0804"]1. The course mentions how to build Zephyr custom driver code, in fact, I don&amp;#39;t need to build the driver, the introduction may just be a library of algorithms.[/quote]
&lt;p&gt;You don&amp;#39;t need to build new drivers but you will need to port whatever driver that is not in Zephyr. Depending on what driver you need, I would recommend checking the libraries available in Zephyr first. There might already be support.&amp;nbsp;&lt;/p&gt;
[quote user="oliver0804"]2. I have found &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/cpp/hello_world/prj.conf"&gt;github.com/.../prj.conf&lt;/a&gt;&lt;br /&gt;This github guide shows how to do cpp compilation, but what I want is to keep using main.c, not to change to main.cpp, and only call libraries use cpp.[/quote]
&lt;p&gt;If the library/driver is not available in Zephyr OS, then you will need to port it.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You might get a better answer on this question&amp;nbsp;in the &lt;a href="https://discord.com/invite/Ck7jw53nU2"&gt;Zephyr community on Discord&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating Adafruit Library with Zephyr on nRF52</title><link>https://devzone.nordicsemi.com/thread/479155?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 09:09:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6997e97c-c2a9-4def-82f1-3d94a7217706</guid><dc:creator>oliver0804</dc:creator><description>&lt;p&gt;Thank you for your reply, there are a couple of questions in the course you provided that are bothering me.&lt;/p&gt;
&lt;p&gt;1. The course mentions how to build Zephyr custom driver code, in fact, I don&amp;#39;t need to build the driver, the introduction may just be a library of algorithms.&lt;/p&gt;
&lt;p&gt;2. I have found &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/cpp/hello_world/prj.conf"&gt;github.com/.../prj.conf&lt;/a&gt;&lt;br /&gt;This github guide shows how to do cpp compilation, but what I want is to keep using main.c, not to change to main.cpp, and only call libraries use cpp.&lt;/p&gt;
&lt;p&gt;So what I want to ask is whether there is any customized cpp file to add instructions, such as prj.conf need to do CONFIG_CPP=y, or CMakeLists.txt file need to do add such instructions.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating Adafruit Library with Zephyr on nRF52</title><link>https://devzone.nordicsemi.com/thread/479146?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 08:47:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8942e94a-695f-443d-b602-c306e6a1525b</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user=""]I&amp;#39;m wondering if there are any tutorials or guides available that can help with integrating Adafruit libraries into a Zephyr project on the nRF52 platform. [/quote]
&lt;p&gt;You should have a look at our &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/"&gt;intermediate nRF Connect SDK course in our Developer Academy&lt;/a&gt;.&amp;nbsp;This has its own chapter on driver development.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is also more information under&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/dev_model_and_contributions/adding_code.html#recommended_using_the_example_application_repository"&gt;Development model and contributions - Adding your own code&lt;/a&gt;. and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.0/page/zephyr/kernel/drivers/index.html#introduction"&gt;Device Driver Model introduction&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>