aboutsummaryrefslogtreecommitdiff
path: root/arduino-mk/Arduino.mk
diff options
context:
space:
mode:
Diffstat (limited to 'arduino-mk/Arduino.mk')
-rw-r--r--arduino-mk/Arduino.mk40
1 files changed, 21 insertions, 19 deletions
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk
index 1e80e79..25dfd66 100644
--- a/arduino-mk/Arduino.mk
+++ b/arduino-mk/Arduino.mk
@@ -447,25 +447,6 @@ else
$(call show_config_variable,USER_LIB_PATH,[USER])
endif
-########################################################################
-# Reset
-#
-ifndef RESET_CMD
- ifneq ($(CATERINA),)
- RESET_CMD = $(ARDMK_PATH)/ard-reset-arduino --caterina \
- $(ARD_RESET_OPTS) $(call get_arduino_port)
- else
- RESET_CMD = $(ARDMK_PATH)/ard-reset-arduino \
- $(ARD_RESET_OPTS) $(call get_arduino_port)
- endif
-endif
-
-ifneq ($(CATERINA),)
- ERROR_ON_LEONARDO = $(error On Leonardo, raw_xxx operation is not supported)
-else
- ERROR_ON_LEONARDO =
-endif
-
########################################################################
# boards.txt parsing
@@ -563,6 +544,27 @@ else
$(call show_config_variable,OBJDIR,[USER])
endif
+
+########################################################################
+# Reset
+#
+ifndef RESET_CMD
+ ifneq ($(CATERINA),)
+ RESET_CMD = $(ARDMK_PATH)/ard-reset-arduino --caterina \
+ $(ARD_RESET_OPTS) $(call get_arduino_port)
+ else
+ RESET_CMD = $(ARDMK_PATH)/ard-reset-arduino \
+ $(ARD_RESET_OPTS) $(call get_arduino_port)
+ endif
+endif
+
+ifneq ($(CATERINA),)
+ ERROR_ON_LEONARDO = $(error On Leonardo, raw_xxx operation is not supported)
+else
+ ERROR_ON_LEONARDO =
+endif
+
+
########################################################################
# Local sources
#