/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to arduino.mk

  • Committer: edam
  • Date: 2012-02-15 22:34:20 UTC
  • Revision ID: edam@waxworlds.org-20120215223420-gsp7ywxbp02u3u3x
added part no.s

Show diffs side-by-side

added added

removed removed

176
176
 
177
177
# no serial device? make a poor attempt to detect an arduino
178
178
ifeq ($(SERIALDEV), )
179
 
SERIALDEV := $(firstword $(wildcard \
180
 
        /dev/ttyACM? /dev/ttyUSB? /dev/tty.usbmodem*))
 
179
SERIALDEV := $(firstword $(wildcard /dev/ttyACM? /dev/ttyUSB?))
181
180
endif
182
181
 
183
182
# software
231
230
AVRDUDEFLAGS += -c $(BOARD_UPLOAD_PROTOCOL) -b $(BOARD_UPLOAD_SPEED)
232
231
LINKFLAGS := -Os -Wl,--gc-sections -mmcu=$(BOARD_BUILD_MCU)
233
232
 
234
 
# figure out which arg to use with stty
235
 
STTYFARG := $(shell stty --help > /dev/null 2>&1 && echo -F || echo -f)
236
 
 
237
233
# default rule
238
234
.DEFAULT_GOAL := all
239
235
 
251
247
        @test -n "$(SERIALDEV)" || { \
252
248
                echo "error: SERIALDEV could not be determined automatically." >&2; \
253
249
                exit 1; }
254
 
        stty $(STTYFARG) $(SERIALDEV) hupcl
 
250
        stty -F $(SERIALDEV) hupcl
255
251
        $(AVRDUDE) $(AVRDUDEFLAGS) -U flash:w:$(TARGET).hex:i
256
252
 
257
253
clean: