Moved main.cpp to test folder
This commit is contained in:
parent
0030fef76e
commit
167b48703f
4
makefile
4
makefile
|
@ -8,7 +8,7 @@ CC=avr-g++
|
||||||
OBJCOPY=avr-objcopy
|
OBJCOPY=avr-objcopy
|
||||||
CFLAGS=-Wall -g -mmcu=${MCU} -DF_CPU=${F_CPU} -I.
|
CFLAGS=-Wall -g -mmcu=${MCU} -DF_CPU=${F_CPU} -I.
|
||||||
TARGET=main
|
TARGET=main
|
||||||
SRCS=src/*.cpp
|
SRCS=src/*.cpp test/main.cpp
|
||||||
|
|
||||||
default: build flash
|
default: build flash
|
||||||
|
|
||||||
|
@ -28,4 +28,4 @@ debug: flash avarice
|
||||||
avr-gdb -ex "target remote :4242" bin/main.elf
|
avr-gdb -ex "target remote :4242" bin/main.elf
|
||||||
|
|
||||||
avarice:
|
avarice:
|
||||||
avarice --file bin/main.elf --part ${MCU} --${DEBUGGER} :4242
|
avarice --file bin/main.elf --part ${MCU} --${DEBUGGER} :4242
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
#include <util/delay.h>
|
#include <util/delay.h>
|
||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
#include "photointerrupter.h"
|
#include "../src/photointerrupter.h"
|
||||||
|
|
||||||
|
|
||||||
int main()
|
int main()
|
Loading…
Reference in New Issue