diff options
| author | Sudar <sudar@sudarmuthu.com> | 2013-10-06 18:14:58 +0530 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2013-10-06 18:14:58 +0530 |
| commit | 7961a862868210ceb6759a41d03d17c7793cfbec (patch) | |
| tree | f56d2e837f64de0da1a735d8135ca769d0f7738d | |
| parent | a17cf2af96cea3234b4d41b7ad0f02a5d2915ba4 (diff) | |
In ISP mode, read baudrate and programmer from boards.txt
Arduino IDE also reads this from boards.txt file
Fix #125
| -rw-r--r-- | HISTORY.md | 1 | ||||
| -rw-r--r-- | arduino-mk/Arduino.mk | 12 |
2 files changed, 11 insertions, 2 deletions
@@ -7,6 +7,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it ### 1.1.0 (in development) - Don't append port details to avrdude for usbasp. See #123 - Ignore commented lines while parsing boards.txt file. See #124 +- In ISP mode, read baudrate and programmer from boards.txt. See #125 ### 1.0.1 (2013-09-25) - Unconditionally add -D in avrdude options. See #114 diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index d2b3e62..9c1b940 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -976,11 +976,19 @@ endif AVRDUDE_ARD_OPTS = -c $(AVRDUDE_ARD_PROGRAMMER) -b $(AVRDUDE_ARD_BAUDRATE) -P $(call get_monitor_port) ifndef ISP_PROG - ISP_PROG = stk500v1 + ifneq ($(strip $(AVRDUDE_ARD_PROGRAMMER)),) + ISP_PROG = $(AVRDUDE_ARD_PROGRAMMER) + else + ISP_PROG = stk500v1 + endif endif ifndef AVRDUDE_ISP_BAUDRATE - AVRDUDE_ISP_BAUDRATE = 19200 + ifneq ($(strip $(AVRDUDE_ARD_BAUDRATE)),) + AVRDUDE_ISP_BAUDRATE = $(AVRDUDE_ARD_BAUDRATE) + else + AVRDUDE_ISP_BAUDRATE = 19200 + endif endif # Pre fuse settings |
