From: tmk Date: Wed, 6 May 2020 00:36:28 +0000 (+0900) Subject: core: Add 'dude' makefile target for avrdude X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=46bd3670cf6b1fc40f764ac9656e79dbe9e4653d;p=max%2Ftmk_keyboard.git core: Add 'dude' makefile target for avrdude Run like `make dude DEV=/dev/ttyACM0` to program Arduino such as Pro Micro and Leonardo --- diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk index 978f3c06..3c386b1f 100644 --- a/tmk_core/rules.mk +++ b/tmk_core/rules.mk @@ -411,6 +411,9 @@ gccversion : program: $(TARGET).hex $(TARGET).eep $(PROGRAM_CMD) +dude: $(TARGET).hex + avrdude -p$(MCU) -cavr109 -b57600 -Uflash:w:$(TARGET).hex -P$(DEV) + teensy: $(TARGET).hex teensy_loader_cli -mmcu=$(MCU) -w -v $(TARGET).hex