ringbuffer and tests

This commit is contained in:
2020-10-28 19:40:08 +01:00
parent 73239f4436
commit b8e676299a
12 changed files with 520 additions and 72 deletions

View File

@ -0,0 +1,17 @@
CFLAGS=-I../../cube/User/Inc
test: ringbuffer.o test.o
gcc -o $@ -lcunit $^
./test
ringbuffer.o: ../../cube/User/Src/ringbuffer.c
gcc -c -o $@ $(CFLAGS) $^
test.o: test.c
gcc -c -o $@ $(CFLAGS) $^
.PHONY: clean
clean:
-rm *.o test