Makefile
changeset 10 faca61cf204c
parent 9 30c3807baac1
child 17 a7c668003a19
equal deleted inserted replaced
9:30c3807baac1 10:faca61cf204c
    17 	$(AS) $(ASFLAGS) $<
    17 	$(AS) $(ASFLAGS) $<
    18 
    18 
    19 upload: $(PROG).s.hex
    19 upload: $(PROG).s.hex
    20 	$(AD) $(ADFLAGS) -U flash:w:$(PROG).s.hex
    20 	$(AD) $(ADFLAGS) -U flash:w:$(PROG).s.hex
    21 
    21 
       
    22 SERIAL_BAUD = 9600
       
    23 SERIAL_FLOW = n
       
    24 SERIAL_PARITY = n
       
    25 SERIAL_BITS = 8
       
    26 SERIAL_PORT = $(AD_PORT)
       
    27 
       
    28 SERIAL_TERM = picocom
       
    29 SERIAL_FLAGS = -b $(SERIAL_BAUD) -f $(SERIAL_FLOW) -p $(SERIAL_PARITY) -d $(SERIAL_BITS)
       
    30 
       
    31 chat:
       
    32 	$(SERIAL_TERM) $(SERIAL_FLAGS) $(SERIAL_PORT)
       
    33