# HG changeset patch # User Tero Marttila # Date 1273187077 -10800 # Node ID faca61cf204c0c7452d0b24452f14ca84c1aa074 # Parent 30c3807baac1ad06c943fd90dc6b05891bc2d598 add a 'make chat' util diff -r 30c3807baac1 -r faca61cf204c Makefile --- a/Makefile Fri May 07 01:46:31 2010 +0300 +++ b/Makefile Fri May 07 02:04:37 2010 +0300 @@ -19,3 +19,15 @@ upload: $(PROG).s.hex $(AD) $(ADFLAGS) -U flash:w:$(PROG).s.hex +SERIAL_BAUD = 9600 +SERIAL_FLOW = n +SERIAL_PARITY = n +SERIAL_BITS = 8 +SERIAL_PORT = $(AD_PORT) + +SERIAL_TERM = picocom +SERIAL_FLAGS = -b $(SERIAL_BAUD) -f $(SERIAL_FLOW) -p $(SERIAL_PARITY) -d $(SERIAL_BITS) + +chat: + $(SERIAL_TERM) $(SERIAL_FLAGS) $(SERIAL_PORT) +