]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
core: Add 'dude' makefile target for avrdude
authortmk <hasu@tmk-kbd.com>
Wed, 6 May 2020 00:36:28 +0000 (09:36 +0900)
committertmk <hasu@tmk-kbd.com>
Wed, 6 May 2020 00:36:28 +0000 (09:36 +0900)
Run like `make dude DEV=/dev/ttyACM0` to program
Arduino such as Pro Micro and Leonardo

tmk_core/rules.mk

index 978f3c06558a24ba65ade19948f6ebef388ce66f..3c386b1f7f340a164ff91a7418b96011b04a03f0 100644 (file)
@@ -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