Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Add test for Karakatitsa hardware (https://karakatitsariscv.github.io…
Browse files Browse the repository at this point in the history
  • Loading branch information
COKPOWEHEU committed Jul 28, 2024
1 parent 45f80d4 commit c3487cc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,24 @@ dist:

clean:
rm -f $(OBJ) $(BIN) $(MAN)

test:
@if [ $(PORT)"" = "" ] ; then \
echo "examples: " ;\
echo "make PORT=/dev/ttyUSB0 test" ;\
echo "./"$(BIN)" --port=USB info" ;\
echo "./"$(BIN)" --port='//./COM3' --reset=RTS --boot0=DTR info" ;\
else \
stty -F $(PORT) 300 ;\
stty -F $(PORT) 50 ;\
bash -c "echo 'RBU' > $(PORT)" ;\
bash -c "echo 'rBU' > $(PORT)" ;\
sleep 1 ;\
./$(BIN) --port=$(PORT) info ;\
stty -F $(PORT) 50 ;\
bash -c "echo 'RbU' > $(PORT)" ;\
sleep 1 ;\
bash -c "echo 'rbuz' > $(PORT)" ;\
fi

.PHONY: all install uninstall dist clean test

0 comments on commit c3487cc

Please sign in to comment.