From b7cd9859c41b6efd64450455d9182b3bdace26a3 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Wed, 5 Oct 2011 23:59:41 +0200 Subject: [PATCH] Rename config.h.dist to something with a .h suffix. This eases working with colouring text editors and is more consistent with all those board-specific configs. --- Makefile | 6 +++--- README | 4 ++-- config.h.dist => config.default.h | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename config.h.dist => config.default.h (100%) diff --git a/Makefile b/Makefile index 46cf312..c562f79 100644 --- a/Makefile +++ b/Makefile @@ -147,9 +147,9 @@ size: $(PROGRAM).elf @$(OBJDUMP) -h $^ | perl -MPOSIX -ne '/.(data|bss)\s+([0-9a-f]+)/ && do { $$a += eval "0x$$2" }; END { printf " RAM : %5d bytes %3d%% %3d%% %3d%% %3d%%\n", $$a, ceil($$a * 100 / (1 * 1024)), ceil($$a * 100 / (2 * 1024)),ceil($$a * 100 / (4 * 1024)), ceil($$a * 100 / (8 * 1024)) }' @$(OBJDUMP) -h $^ | perl -MPOSIX -ne '/.(eeprom)\s+([0-9a-f]+)/ && do { $$a += eval "0x$$2" }; END { printf " EEPROM: %5d bytes %3d%% %3d%% %3d%% %3d%%\n", $$a, ceil($$a * 100 / (1 * 1024)), ceil($$a * 100 / (2 * 1024)), ceil($$a * 100 / (2 * 1024)), ceil($$a * 100 / (4 * 1024)) }' -config.h: config.h.dist - @echo "Please review config.h, as config.h.dist is more recent." - @echo "To view the differences, run: diff -bBEu config.h config.h.dist" +config.h: config.default.h + @echo "Please review config.h, as config.default.h is more recent." + @echo "To view the differences, run: diff -bBEu config.h config.default.h" @false doc: Doxyfile *.c *.h diff --git a/README b/README index df2abb8..2425fae 100644 --- a/README +++ b/README @@ -155,8 +155,8 @@ Pin mappings and helper functions for various atmegas *** clock.[ch] Regular functions that run in main loop rather than an interrupt -*** config.h.dist, config.h, config.*.h -Configuration for your electronics and hardware. Copy config.h.dist to config.h, edit config.h to suit +*** config.h, config.*.h +Configuration for your electronics and hardware and a bunch of templates to create your own. Copy the template closest to your hardware to config.h and edit it further *** copier.[ch] A totally untested and currently unused chunk of code for copying firmware to another identical chip diff --git a/config.h.dist b/config.default.h similarity index 100% rename from config.h.dist rename to config.default.h