/make/arduino-mk

To get this branch, use:
bzr branch http://bzr.ed.am/make/arduino-mk

« back to all changes in this revision

Viewing changes to arduino.mk

  • Committer: edam
  • Date: 2012-12-16 18:43:33 UTC
  • Revision ID: tim@ed.am-20121216184333-f03y3fdjot8024ph
fixed resetting Leonardos before upload

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
        $(shell sed -ne "s/$(BOARD).build.vid=\(.*\)/\1/p" $(BOARDS_FILE))
259
259
BOARD_USB_PID := \
260
260
        $(shell sed -ne "s/$(BOARD).build.pid=\(.*\)/\1/p" $(BOARDS_FILE))
 
261
BOARD_BOOTLOADER_PATH := \
 
262
        $(shell sed -ne "s/$(BOARD).bootloader.path=\(.*\)/\1/p" $(BOARDS_FILE))
261
263
 
262
264
# invalid board?
263
265
ifeq "$(BOARD_BUILD_MCU)" ""
313
315
        @test 0 -eq $(SERIALDEVGUESS) || { \
314
316
                echo "*GUESSING* at serial device:" $(SERIALDEV); \
315
317
                echo; }
 
318
ifeq "$(BOARD_BOOTLOADER_PATH)" "caterina"
 
319
        stty $(STTYFARG) $(SERIALDEV) speed 1200
 
320
        sleep 1
 
321
endif
316
322
        stty $(STTYFARG) $(SERIALDEV) hupcl
317
323
        $(AVRDUDE) $(AVRDUDEFLAGS) -U flash:w:$(TARGET).hex:i
318
324