forked from ejoerns/contiki-inga
-
Notifications
You must be signed in to change notification settings - Fork 13
Project Setup
ejoerns edited this page Dec 14, 2013
·
5 revisions
This tutorial describes how to create a new project using contiki(-inga).
Prerequisites: Directory with a clone of Contiki
-
Create a directory for your project somewhere.
mkdir myproject
-
Create a
Makefile
with the following structure:CONTIKI_PROJECT = myproject all: $(CONTIKI_PROJECT) PROJECT_SOURCEFILES = file1.c file2.c CONTIKI = /path/to/contiki include $(CONTIKI)/Makefile.include
- Replace
myproject
with the main file of your project - Add other sourcefiles to
PROJECT_SOURCEFILES
- Set
CONTIKI
to the path where your Contiki is located
- Replace
-
Create a project configuration file
touch project-conf.h
-
Save your target platform
make TARGET=inga savetarget
Tell compiler to use project conf.h
-DPROJECT_CONF_H=project-conf.h
In your projects Makefile type
APPS = app-name1 app-name2