This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to add a custom header and c file into a project.

Hi,

I have a ncs project which currently has only the main.c file.

I want to create a header file and the c file to be included in the main. 

What's the recommended way to do this.

I tried creating them manually in the src folder - failed.

I tried creating separate include folder for the header files - failed.

TIA.

Related