diff --git a/makefile b/makefile index 665f8ab..3e8e556 100644 --- a/makefile +++ b/makefile @@ -8,7 +8,7 @@ CC=avr-g++ OBJCOPY=avr-objcopy CFLAGS=-Wall -g -mmcu=${MCU} -DF_CPU=${F_CPU} -I. TARGET=main -SRCS=src/*.cpp +SRCS=src/*.cpp test/main.cpp default: build flash @@ -28,4 +28,4 @@ debug: flash avarice avr-gdb -ex "target remote :4242" bin/main.elf avarice: - avarice --file bin/main.elf --part ${MCU} --${DEBUGGER} :4242 \ No newline at end of file + avarice --file bin/main.elf --part ${MCU} --${DEBUGGER} :4242 diff --git a/src/main.cpp b/test/main.cpp similarity index 97% rename from src/main.cpp rename to test/main.cpp index 452f96d..6a2102c 100644 --- a/src/main.cpp +++ b/test/main.cpp @@ -1,7 +1,7 @@ #define F_CPU 8000000UL #include #include -#include "servo.h" +#include "../src/servo.h" int main() { @@ -56,4 +56,4 @@ } return 0; -} \ No newline at end of file +}