terom@5: AS = avra terom@5: ASFLAGS = terom@5: terom@5: AD_PART = m328p terom@5: AD_PROG = arduino terom@5: AD_BAUD = 57600 terom@5: AD_PORT = /dev/ttyUSB1 terom@5: terom@5: AD = avrdude terom@5: ADFLAGS = -p $(AD_PART) -c $(AD_PROG) -b $(AD_BAUD) -P $(AD_PORT) terom@5: terom@9: PROG = console terom@5: terom@5: all: $(PROG).s.hex terom@5: terom@5: %.s.hex: %.s terom@5: $(AS) $(ASFLAGS) $< terom@5: terom@5: upload: $(PROG).s.hex terom@5: $(AD) $(ADFLAGS) -U flash:w:$(PROG).s.hex terom@5: terom@10: SERIAL_BAUD = 9600 terom@10: SERIAL_FLOW = n terom@10: SERIAL_PARITY = n terom@10: SERIAL_BITS = 8 terom@10: SERIAL_PORT = $(AD_PORT) terom@10: terom@10: SERIAL_TERM = picocom terom@10: SERIAL_FLAGS = -b $(SERIAL_BAUD) -f $(SERIAL_FLOW) -p $(SERIAL_PARITY) -d $(SERIAL_BITS) terom@10: terom@10: chat: terom@10: $(SERIAL_TERM) $(SERIAL_FLAGS) $(SERIAL_PORT) terom@10: