Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add driver to custom project? #3

Open
rlimberger opened this issue Mar 10, 2024 · 0 comments
Open

How to add driver to custom project? #3

rlimberger opened this issue Mar 10, 2024 · 0 comments

Comments

@rlimberger
Copy link

rlimberger commented Mar 10, 2024

Thank you for sharing this driver and sorry for abusing the issue system for a question .

Could you describe what one needs to do to add this driver to a custom application? What i did is the following:

  • copy the following directories to my workspace (the folder above my application folder): drivers, nrf_servo, include
  • add the boards folder to my own application folder (next to my src)
  • add CONFIG_NRF_SERVO=y to my proj.conf
  • add #include "drivers/nrf_servo.h>" to mu main.c

However, when i build my project i get:

workspace/blinky_3/prj.conf:2: warning: attempt to assign the value 'y' to the undefined symbol NRF_SERVO

I assume that the driver (added to my workspace) is not seen by cmake? However, i cannot see how that is configured from your example project. Could you elaborate how you got the custom driver to be recognized?

I should say that i am new to zephyr and nRF Connect so i might be missing something obvious.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant