1
0
mirror of https://github.com/nicolai86/ErgoDox-EZ.git synced 2026-05-06 03:18:58 -07:00

add makefile for atmega firmware mgmt

This commit is contained in:
Raphael Randschau
2018-10-13 10:37:21 -07:00
parent ae746b27b2
commit 831af59416
3 changed files with 28 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
prepare:
mkdir -p build
clean: prepare
rm -fr build/*
compile: clean
avr-gcc -Og -g -mmcu=atmega168 -o build/main src/*.c
build: compile
avr-objcopy -j .text -j .data -O ihex build/main build/main.hex
flash:
avrdude -P usb -b 19200 -c avrispmkII -p m168 -U lfuse:w:0xee:m -U hfuse:w:0xdf:m -U efuse:w:0xf9:m -U flash:w:build/main.hex