From 46bd3670cf6b1fc40f764ac9656e79dbe9e4653d Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 6 May 2020 09:36:28 +0900 Subject: [PATCH] core: Add 'dude' makefile target for avrdude Run like `make dude DEV=/dev/ttyACM0` to program Arduino such as Pro Micro and Leonardo --- tmk_core/rules.mk | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.46.2