diff options
Diffstat (limited to 'my-project')
-rw-r--r-- | my-project/Makefile | 19 | ||||
-rw-r--r-- | my-project/my-project.c | 6 |
2 files changed, 25 insertions, 0 deletions
diff --git a/my-project/Makefile b/my-project/Makefile new file mode 100644 index 0000000..2d009c3 --- /dev/null +++ b/my-project/Makefile @@ -0,0 +1,19 @@ +PROJECT = awesomesauce +BUILD_DIR = bin + +SHARED_DIR = ../my-common-code +CFILES = my-project.c +CFILES += api.c + +# TODO - you will need to edit these two lines! +DEVICE=stm32f407vgt6 +OOCD_FILE = board/stm32f4discovery.cfg + +# You shouldn't have to edit anything below here. +VPATH += $(SHARED_DIR) +INCLUDES += $(patsubst %,-I%, . $(SHARED_DIR)) +OPENCM3_DIR=../libopencm3 + +include $(OPENCM3_DIR)/mk/genlink-config.mk +include ../rules.mk +include $(OPENCM3_DIR)/mk/genlink-rules.mk diff --git a/my-project/my-project.c b/my-project/my-project.c new file mode 100644 index 0000000..f550c66 --- /dev/null +++ b/my-project/my-project.c @@ -0,0 +1,6 @@ +#include "api.h" + +int main(void) { + /* add your own code */ + return my_func(3); +} |