#\r
# -----------------------------------------------------------------------------\r
\r
+# Sanity-check values of mandatory user-supplied variables\r
+MCU ?= $(error Makefile MCU value not set.)\r
+TARGET ?= $(error Makefile TARGET value not set.)\r
+\r
# Output Messages\r
MSG_COPY_CMD = ' [CP] :'\r
MSG_REMOVE_CMD = ' [RM] :'\r
MSG_DFU_CMD = ' [DFU] :'\r
\r
-# Sanity check the user MCU and TARGET makefile options\r
-MCU ?= $(error Makefile MCU value not set.)\r
-TARGET ?= $(error Makefile TARGET value not set.)\r
-\r
flip: $(TARGET).hex\r
@echo $(MSG_DFU_CMD) Programming FLASH with batchisp using \"$(TARGET).hex\"\r
batchisp -hardware usb -device $(MCU) -operation erase f\r