summaryrefslogtreecommitdiff
path: root/n/avr
diff options
context:
space:
mode:
Diffstat (limited to 'n/avr')
-rw-r--r--n/avr/doc/makefile.txt58
-rw-r--r--n/avr/make/Makefile.avr54
-rw-r--r--n/avr/make/Makefile.gen44
-rw-r--r--n/avr/make/Makefile.host25
-rw-r--r--n/avr/modules/host/test/Makefile5
-rw-r--r--n/avr/modules/math/fixed/test/Makefile4
-rw-r--r--n/avr/modules/math/random/test/Makefile5
-rw-r--r--n/avr/modules/math/random/test/avrconfig.h1
-rw-r--r--n/avr/modules/proto/test/Makefile5
-rw-r--r--n/avr/modules/twi/master/test/Makefile5
-rw-r--r--n/avr/modules/twi/master/test/avrconfig.h1
-rw-r--r--n/avr/modules/twi/slave/test/Makefile5
-rw-r--r--n/avr/modules/twi/slave/test/avrconfig.h1
-rw-r--r--n/avr/modules/uart/test/Makefile8
-rw-r--r--n/avr/modules/utils/test/Makefile5
-rw-r--r--n/avr/modules/utils/test/test_utils.c3
16 files changed, 114 insertions, 115 deletions
diff --git a/n/avr/doc/makefile.txt b/n/avr/doc/makefile.txt
index f46bf40..82b616f 100644
--- a/n/avr/doc/makefile.txt
+++ b/n/avr/doc/makefile.txt
@@ -1,42 +1,64 @@
-Liste des variables utilisées dans les Makefiles
+Liste des variables utilisées dans les Makefiles (usage interne uniquement si
+indenté).
+
+BASE chemin vers la base des modules
-BASE
PROGS compilés en AVR et HOST
-AVR_PROGS AVR seulement
-HOST_PROGS HOST seulement
+AVR_PROGS AVR seulement (+ PROGS)
+HOST_PROGS HOST seulement (+ PROGS)
SIMU_PROGS SIMU seulement
ALL_PROGS tout les programes
+ AVR_ELFS
+ AVR_SIMU_ELFS
+ HOST_EXES
-prog_SOURCES sources pour un programme (sources des modules ajoutées
- ensuite)
+prog_SOURCES sources pour un programme
mod_SOURCES sources pour un module
- (ALL_SOURCES toutes les sources
+ ALL_SOURCES toutes les sources
+ AVR_SOURCES
+ AVR_C_SOURCES
+ AVR_S_SOURCES
+ AVR_OBJECTS
+ AVR_SIMU_OBJECTS
+ HOST_SOURCES
+ HOST_OBJECTS
MODULES modules pour tous
-(AVR_MODULES modules pour avr seulement
-(HOST_MODULES modules pour host seulement
prog_MODULES remplace la liste de modules pour prog
+ ALL_MODULES tout les modules
-CONFIGFILE
+CONFIGFILE fichier de configuration inclus automatiquement
-AVR_MCU
-OPTIMIZE
+AVR_MCU processeur
+OPTIMIZE niveau d optimisation
DEFS
+AVR_DEFS
+HOST_DEFS
LIBS
prog_LIBS
+AVR_LIBS
HOST_LIBS
INCLUDES
CFLAGS
+ AVR_CFLAGS
+ HOST_CFLAGS
ASFLAGS
+ AVR_ASFLAGS
CPPFLAGS
+ AVR_CPPFLAGS
+ HOST_CPPFLAGS
LDFLAGS
+ AVR_LDFLAGS
+ HOST_LDFLAGS
LDLIBS
+ AVR_LDLIBS
+ HOST_LDLIBS
-DOC
-EXTRACTDOC
+EXTRA_CLEAN_FILES fichiers supprimés par la régle clean
-TEST_MCU
-TEST_CONFIGFILES
-prog_MCU
+DOC cibles pour la doc
+EXTRACTDOC sources utilisées pour générer le .exd
-include $(BASE)/make/Makefile.gen
+TEST_MCU liste des MCU utilisés pour les tests de compilation
+TEST_CONFIGFILES liste des fichiers de config pour les tests de compilation
+conf_TEST_MCUA liste de MCU pour un fichier de configuration particulier
diff --git a/n/avr/make/Makefile.avr b/n/avr/make/Makefile.avr
index 81a0c74..b063fe5 100644
--- a/n/avr/make/Makefile.avr
+++ b/n/avr/make/Makefile.avr
@@ -2,41 +2,44 @@
#
# Flags.
-AVR_CFLAGS = $(CFLAGS) -mmcu=$(AVR_MCU)
-AVR_ASFLAGS = $(ASFLAGS) -mmcu=$(AVR_MCU)
-AVR_CPPFLAGS = $(CPPFLAGS) $(AVR_DEFS)
-AVR_LDFLAGS = $(LDFLAGS)
-AVR_LDLIBS = $(LDLIBS) $(AVR_LIBS)
-
-AVR_CC = avr-gcc
-AVR_OBJCOPY = avr-objcopy
-AVR_OBJDUMP = avr-objdump
+AVR_CFLAGS := $(CFLAGS) -mmcu=$(AVR_MCU)
+AVR_ASFLAGS := $(ASFLAGS) -mmcu=$(AVR_MCU)
+AVR_CPPFLAGS := $(CPPFLAGS) $(AVR_DEFS)
+AVR_LDFLAGS := $(LDFLAGS)
+AVR_LDLIBS := $(LDLIBS) $(AVR_LIBS)
+
+AVR_CC := avr-gcc
+AVR_OBJCOPY := avr-objcopy
+AVR_OBJDUMP := avr-objdump
AVR_COMPILE.c = $(AVR_CC) $(AVR_CFLAGS) $(AVR_CPPFLAGS) -c
ifdef L
AVR_COMPILE.c += -Wa,-adhlns=$(@:%.avr.o=%.c.avr.lst)
endif
-AVR_COMPILE.S = $(AVR_CC) $(AVR_ASFLAGS) $(AVR_CPPFLAGS) -c
-AVR_LINK.o = $(AVR_CC) $(AVR_CFLAGS) $(AVR_LDFLAGS)
+AVR_COMPILE.S := $(AVR_CC) $(AVR_ASFLAGS) $(AVR_CPPFLAGS) -c
+AVR_LINK.o := $(AVR_CC) $(AVR_CFLAGS) $(AVR_LDFLAGS)
# Main rules.
avr: elf lst hex
-.PHONY: avr clean.avr elf lst text hex srec bin eeprom ehex esrec ebin
+simu: simuelf
+
+.PHONY: avr simu clean.avr elf simuelf lst \
+ text hex srec bin eeprom ehex esrec ebin
# General rules.
AVR_PROGS += $(PROGS)
-AVR_ELFS = $(AVR_PROGS:%=%.avr.elf)
-AVR_SIMU_ELFS = $(AVR_ELFS:%.avr.elf=%.avr.simu.elf)
-AVR_SOURCES = $(filter-out %.host.c,$(SOURCES))
-AVR_C_SOURCES = $(filter %.c,$(AVR_SOURCES))
-AVR_S_SOURCES = $(filter %.S,$(AVR_SOURCES))
-AVR_OBJECTS = $(AVR_C_SOURCES:%.c=%.avr.o) $(AVR_S_SOURCES:%.S=%.avr.o)
-AVR_SIMU_OBJECTS = $(AVR_OBJECTS:%.avr.o=%.avr.simu.o)
+AVR_ELFS := $(AVR_PROGS:%=%.avr.elf)
+AVR_SIMU_ELFS := $(SIMU_PROGS:%=%.avr.simu.elf)
+AVR_SOURCES := $(filter-out %.host.c,$(ALL_SOURCES))
+AVR_C_SOURCES := $(filter %.c,$(AVR_SOURCES))
+AVR_S_SOURCES := $(filter %.S,$(AVR_SOURCES))
+AVR_OBJECTS := $(AVR_C_SOURCES:%.c=%.avr.o) $(AVR_S_SOURCES:%.S=%.avr.o)
+AVR_SIMU_OBJECTS := $(AVR_OBJECTS:%.avr.o=%.avr.simu.o)
elf: $(AVR_ELFS)
-simu: $(AVR_SIMU_ELFS)
+simuelf: $(AVR_SIMU_ELFS)
lst: $(AVR_PROGS:%=%.avr.lst)
define AVR_PROG_template
@@ -72,7 +75,7 @@ $(AVR_ELFS) $(AVR_SIMU_ELFS):
# Rules for building the .text rom images.
-TEXTS = $(AVR_PROGS:%=%.hex) $(AVR_PROGS:%=%.bin) $(AVR_PROGS:%=%.srec)
+TEXTS := $(AVR_PROGS:%=%.hex) $(AVR_PROGS:%=%.bin) $(AVR_PROGS:%=%.srec)
text: hex
@@ -91,8 +94,8 @@ srec: $(AVR_PROGS:%=%.srec)
# Rules for building the .eeprom rom images.
-EEPROMS = $(AVR_PROGS:%=%_eeprom.hex) $(AVR_PROGS:%=%_eeprom.bin) \
- $(AVR_PROGS:%=%_eeprom.srec)
+EEPROMS := $(AVR_PROGS:%=%_eeprom.hex) $(AVR_PROGS:%=%_eeprom.bin) \
+ $(AVR_PROGS:%=%_eeprom.srec)
eeprom: ehex
@@ -112,6 +115,7 @@ esrec: $(AVR_PROGS:%=%_eeprom.srec)
# Cleaning.
clean.avr:
- rm -f *.avr.o *.avr.d $(AVR_ELFS) *.avr.simu.o *.avr.simu.d $(AVR_SIMU_ELFS)
- rm -f *.avr.lst *.avr.map $(TEXTS) $(EEPROMS)
+ rm -f *.avr.o *.avr.d $(AVR_ELFS) \
+ *.avr.simu.o *.avr.simu.d $(AVR_SIMU_ELFS) \
+ *.avr.lst *.avr.map $(TEXTS) $(EEPROMS)
diff --git a/n/avr/make/Makefile.gen b/n/avr/make/Makefile.gen
index e403923..5193e43 100644
--- a/n/avr/make/Makefile.gen
+++ b/n/avr/make/Makefile.gen
@@ -2,46 +2,50 @@
# Flags
-INCLUDES = -I$(BASE) -I$(BASE)/common
-CFLAGS = -g -Wall -W -Wundef -Wno-unused-parameter $(OPTIMIZE)
-ASFLAGS = -Wa,--gstabs
-CPPFLAGS = $(DEFS) $(INCLUDES) -MMD \
- $(if $(CONFIGFILE),$(CONFIGFILE:%=-include %))
-LDFLAGS =
-LDLIBS = $(LIBS)
+INCLUDES := -I$(BASE) -I$(BASE)/common
+CFLAGS := -g -Wall -W -Wundef -Wno-unused-parameter $(OPTIMIZE)
+ASFLAGS := -Wa,--gstabs
+CPPFLAGS := $(DEFS) $(INCLUDES) -MMD \
+ $(if $(CONFIGFILE),$(CONFIGFILE:%=-include %))
+LDFLAGS :=
+LDLIBS := $(LIBS)
+
+# Usefull macros.
+## Return $(A) only if defined, else return B.
+## $(call defval A,B)
+defval = $(if $(filter undefined,$(origin $(1))),$(2),$($(1)))
# Main rules.
-all: avr host
+all: avr simu host
.PHONY: all clean doc
# General rules.
-ALL_PROGS = $(PROGS) $(AVR_PROGS) $(HOST_PROGS)
-SOURCES = $(foreach prog,$(ALL_PROGS),$($(prog)_SOURCES))
+ALL_PROGS := $(PROGS) $(AVR_PROGS) $(HOST_PROGS) $(SIMU_PROGS)
+ALL_SOURCES = $(foreach prog,$(ALL_PROGS),$($(prog)_SOURCES))
# Modules.
MODULES += host
-ifneq (,$(MODULES))
-include $(MODULES:%=$(BASE)/modules/%/Makefile.module)
-endif
+ALL_MODULES := $(sort $(MODULES) \
+ $(foreach prog,$(ALL_PROGS),$($(prog)_MODULES)))
-none_SOURCES =
+include $(ALL_MODULES:%=$(BASE)/modules/%/Makefile.module)
define MODULES_template
$(1)_SOURCES += $(foreach module,\
- $(if $($(1)_MODULES),$($(1)_MODULES),$(MODULES)),\
+ $(call defval,$(1)_MODULES,$(MODULES)),\
$($(subst /,_,$(module))_SOURCES)\
)
endef
$(foreach prog,$(ALL_PROGS),$(eval $(call MODULES_template,$(prog))))
-vpath %.c $(MODULES:%=$(BASE)/modules/%)
-vpath %.S $(MODULES:%=$(BASE)/modules/%)
+vpath %.c $(ALL_MODULES:%=$(BASE)/modules/%)
+vpath %.S $(ALL_MODULES:%=$(BASE)/modules/%)
# Compilation test rules.
@@ -51,7 +55,8 @@ test.sub::
endef
define TEST_template
-$$(foreach mcu,$$(if $$($(1:%.h=%)_MCU),$$($(1:%.h=%)_MCU),$$(TEST_MCU)),\
+$$(foreach mcu,\
+ $$(if $$($(1:%.h=%)_TEST_MCU),$$($(1:%.h=%)_TEST_MCU),$$(TEST_MCU)),\
$$(eval $$(call TEST_MCU_template,$(1),$$(mcu))))
test.sub::
$$(MAKE) CONFIGFILE=$(1) clean host
@@ -63,7 +68,7 @@ test: test.sub clean
# Include other Makefiles.
-ifneq (,$(filter-out %.c %.avr.S,$(SOURCES)))
+ifneq (,$(filter-out %.c %.avr.S,$(ALL_SOURCES)))
$(error Sources should be .c or .avr.S files)
endif
@@ -72,6 +77,7 @@ include $(BASE)/make/Makefile.avr
include $(BASE)/make/Makefile.host
else
avr:
+simu:
host:
clean.avr:
clean.host:
diff --git a/n/avr/make/Makefile.host b/n/avr/make/Makefile.host
index 3fd343f..d294250 100644
--- a/n/avr/make/Makefile.host
+++ b/n/avr/make/Makefile.host
@@ -2,13 +2,13 @@
#
# Flags.
-HOST_CFLAGS = $(CFLAGS)
-HOST_CPPFLAGS = $(CPPFLAGS) $(HOST_DEFS) -DHOST=1
-HOST_LDFLAGS = $(LDFLAGS)
-HOST_LDLIBS = $(LDLIBS) $(HOST_LIBS)
+HOST_CFLAGS := $(CFLAGS)
+HOST_CPPFLAGS := $(CPPFLAGS) $(HOST_DEFS) -DHOST=1
+HOST_LDFLAGS := $(LDFLAGS)
+HOST_LDLIBS := $(LDLIBS) $(HOST_LIBS)
-HOST_COMPILE.c = $(CC) $(HOST_CFLAGS) $(HOST_CPPFLAGS) -c
-HOST_LINK.o = $(CC) $(HOST_CFLAGS) $(HOST_LDFLAGS)
+HOST_COMPILE.c := $(CC) $(HOST_CFLAGS) $(HOST_CPPFLAGS) -c
+HOST_LINK.o := $(CC) $(HOST_CFLAGS) $(HOST_LDFLAGS)
# Main rules.
@@ -19,17 +19,18 @@ host: exe
# General rules.
HOST_PROGS += $(PROGS)
-HOST_EXES = $(HOST_PROGS:%=%.host)
-HOST_SOURCES = $(filter-out %.avr.c %.avr.S,$(SOURCES))
-HOST_OBJECTS = $(HOST_SOURCES:%.c=%.host.o)
+HOST_EXES := $(HOST_PROGS:%=%.host)
+HOST_SOURCES := $(filter-out %.avr.c %.avr.S,$(ALL_SOURCES))
+HOST_OBJECTS := $(HOST_SOURCES:%.c=%.host.o)
exe: $(HOST_EXES)
-define AVR_PROG_template
-$(1).host: $$(patsubst %.c,%.host.o,$$(filter-out %.avr.c %.avr.S,$$($(1)_SOURCES)))
+define HOST_PROG_template
+$(1).host: $$(patsubst %.c,%.host.o,\
+ $$(filter-out %.avr.c %.avr.S,$$($(1)_SOURCES)))
endef
-$(foreach prog,$(HOST_PROGS),$(eval $(call AVR_PROG_template,$(prog))))
+$(foreach prog,$(HOST_PROGS),$(eval $(call HOST_PROG_template,$(prog))))
$(HOST_EXES):
$(HOST_LINK.o) $^ $(HOST_LDLIBS) -o $@
diff --git a/n/avr/modules/host/test/Makefile b/n/avr/modules/host/test/Makefile
index 6c3ec51..5f8343c 100644
--- a/n/avr/modules/host/test/Makefile
+++ b/n/avr/modules/host/test/Makefile
@@ -1,8 +1,6 @@
BASE = ../../..
HOST_PROGS = test_host
test_host_SOURCES = test_host.c
-DOC =
-EXTRACTDOC =
MODULES = host
CONFIGFILE = avrconfig.h
# atmega8, atmega8535, atmega128...
@@ -11,7 +9,4 @@ AVR_MCU = none
# -Os : size
OPTIMIZE = -O2
-DEFS =
-LIBS =
-
include $(BASE)/make/Makefile.gen
diff --git a/n/avr/modules/math/fixed/test/Makefile b/n/avr/modules/math/fixed/test/Makefile
index f35e939..04aa4cf 100644
--- a/n/avr/modules/math/fixed/test/Makefile
+++ b/n/avr/modules/math/fixed/test/Makefile
@@ -1,8 +1,7 @@
BASE = ../../../..
PROGS = test_fixed
+SIMU_PROGS = test_fixed
test_fixed_SOURCES = test_fixed.c
-DOC =
-EXTRACTDOC =
MODULES = uart proto utils math/fixed math/random
CONFIGFILE = avrconfig.h
# atmega8, atmega8535, atmega128...
@@ -11,7 +10,6 @@ AVR_MCU = atmega128
# -Os : size
OPTIMIZE = -O2
-DEFS =
HOST_LIBS = -lm
include $(BASE)/make/Makefile.gen
diff --git a/n/avr/modules/math/random/test/Makefile b/n/avr/modules/math/random/test/Makefile
index 354961c..0bc3c0e 100644
--- a/n/avr/modules/math/random/test/Makefile
+++ b/n/avr/modules/math/random/test/Makefile
@@ -1,8 +1,6 @@
BASE = ../../../..
PROGS = test_random
test_random_SOURCES = test_random.c
-DOC =
-EXTRACTDOC =
MODULES = uart proto math/random
CONFIGFILE = avrconfig.h
# atmega8, atmega8535, atmega128...
@@ -11,7 +9,4 @@ AVR_MCU = atmega8
# -Os : size
OPTIMIZE = -Os
-DEFS =
-LIBS =
-
include $(BASE)/make/Makefile.gen
diff --git a/n/avr/modules/math/random/test/avrconfig.h b/n/avr/modules/math/random/test/avrconfig.h
index fa460aa..5f25426 100644
--- a/n/avr/modules/math/random/test/avrconfig.h
+++ b/n/avr/modules/math/random/test/avrconfig.h
@@ -71,6 +71,7 @@
#define AC_UART1_SEND_BUFFER_SIZE 32
#define AC_UART1_RECV_BUFFER_SIZE 32
#define AC_UART1_SEND_BUFFER_FULL WAIT
+#define AC_UART1_HOST_DRIVER STDIO
/* proto - Protocol module. */
/** Maximum argument size. */
diff --git a/n/avr/modules/proto/test/Makefile b/n/avr/modules/proto/test/Makefile
index a1506be..801870a 100644
--- a/n/avr/modules/proto/test/Makefile
+++ b/n/avr/modules/proto/test/Makefile
@@ -1,8 +1,6 @@
BASE = ../../..
PROGS = test_proto
test_proto_SOURCES = test_proto.c
-DOC =
-EXTRACTDOC =
MODULES = proto uart utils
CONFIGFILE = avrconfig.h
# atmega8, atmega8535, atmega128...
@@ -11,7 +9,4 @@ AVR_MCU = atmega8
# -Os : size
OPTIMIZE = -O2
-DEFS =
-LIBS =
-
include $(BASE)/make/Makefile.gen
diff --git a/n/avr/modules/twi/master/test/Makefile b/n/avr/modules/twi/master/test/Makefile
index 80e6caa..e018323 100644
--- a/n/avr/modules/twi/master/test/Makefile
+++ b/n/avr/modules/twi/master/test/Makefile
@@ -1,8 +1,6 @@
BASE = ../../../..
AVR_PROGS = test_twi_master
test_twi_master_SOURCES = test_twi_master.c
-DOC =
-EXTRACTDOC =
MODULES = uart proto twi/master
CONFIGFILE = avrconfig.h
# atmega8, atmega8535, atmega128...
@@ -11,9 +9,6 @@ AVR_MCU = atmega8
# -Os : size
OPTIMIZE = -O2
-DEFS =
-LIBS =
-
# Test compilations.
TEST_MCU = atmega8535 atmega128
TEST_CONFIGFILES = avrconfig.h
diff --git a/n/avr/modules/twi/master/test/avrconfig.h b/n/avr/modules/twi/master/test/avrconfig.h
index 2115fab..dc2c28b 100644
--- a/n/avr/modules/twi/master/test/avrconfig.h
+++ b/n/avr/modules/twi/master/test/avrconfig.h
@@ -71,6 +71,7 @@
#define AC_UART1_SEND_BUFFER_SIZE 32
#define AC_UART1_RECV_BUFFER_SIZE 32
#define AC_UART1_SEND_BUFFER_FULL WAIT
+#define AC_UART1_HOST_DRIVER PTS
/* proto - Protocol module. */
/** Maximum argument size. */
diff --git a/n/avr/modules/twi/slave/test/Makefile b/n/avr/modules/twi/slave/test/Makefile
index 219ae62..f28b954 100644
--- a/n/avr/modules/twi/slave/test/Makefile
+++ b/n/avr/modules/twi/slave/test/Makefile
@@ -1,8 +1,6 @@
BASE = ../../../..
AVR_PROGS = test_twi_slave
test_twi_slave_SOURCES = test_twi_slave.c
-DOC =
-EXTRACTDOC =
MODULES = uart twi/slave
CONFIGFILE = avrconfig.h
# atmega8, atmega8535, atmega128...
@@ -11,9 +9,6 @@ AVR_MCU = atmega8
# -Os : size
OPTIMIZE = -O2
-DEFS =
-LIBS =
-
# Test compilations.
TEST_MCU = atmega8535 atmega128
TEST_CONFIGFILES = avrconfig.h
diff --git a/n/avr/modules/twi/slave/test/avrconfig.h b/n/avr/modules/twi/slave/test/avrconfig.h
index b18877a..bc1e909 100644
--- a/n/avr/modules/twi/slave/test/avrconfig.h
+++ b/n/avr/modules/twi/slave/test/avrconfig.h
@@ -71,6 +71,7 @@
#define AC_UART1_SEND_BUFFER_SIZE 32
#define AC_UART1_RECV_BUFFER_SIZE 32
#define AC_UART1_SEND_BUFFER_FULL WAIT
+#define AC_UART1_HOST_DRIVER PTS
/* twi.slave - TWI slave module. */
/** Reception buffer size. */
diff --git a/n/avr/modules/uart/test/Makefile b/n/avr/modules/uart/test/Makefile
index 3f162fc..4f394f2 100644
--- a/n/avr/modules/uart/test/Makefile
+++ b/n/avr/modules/uart/test/Makefile
@@ -1,8 +1,7 @@
BASE = ../../..
PROGS = test_uart
+SIMU_PROGS = test_uart
test_uart_SOURCES = test_uart.c
-DOC =
-EXTRACTDOC =
MODULES = uart utils
CONFIGFILE = avrconfig_ring.h
# atmega8, atmega8535, atmega128...
@@ -11,12 +10,9 @@ AVR_MCU = atmega8
# -Os : size
OPTIMIZE = -O2
-DEFS =
-LIBS =
-
# Test compilations.
TEST_MCU = atmega8 atmega8535 atmega128
TEST_CONFIGFILES = avrconfig_ring.h avrconfig_polling.h avrconfig_twoports.h
-avrconfig_twoports_MCU = atmega128
+avrconfig_twoports_TEST_MCU = atmega128
include $(BASE)/make/Makefile.gen
diff --git a/n/avr/modules/utils/test/Makefile b/n/avr/modules/utils/test/Makefile
index 535ac0e..783d792 100644
--- a/n/avr/modules/utils/test/Makefile
+++ b/n/avr/modules/utils/test/Makefile
@@ -4,8 +4,6 @@ AVR_PROGS = test_byte_methods
test_utils_SOURCES = test_utils.c
test_byte_SOURCES = test_byte.c
test_byte_methods_SOURCES = test_byte_methods.c
-DOC =
-EXTRACTDOC =
MODULES = utils
CONFIGFILE = avrconfig.h
# atmega8, atmega8535, atmega128...
@@ -14,7 +12,4 @@ AVR_MCU = atmega128
# -Os : size
OPTIMIZE = -O2
-DEFS =
-LIBS =
-
include $(BASE)/make/Makefile.gen
diff --git a/n/avr/modules/utils/test/test_utils.c b/n/avr/modules/utils/test/test_utils.c
index 5d5408b..4c85c45 100644
--- a/n/avr/modules/utils/test/test_utils.c
+++ b/n/avr/modules/utils/test/test_utils.c
@@ -22,6 +22,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* }}} */
+#include "common.h"
#include "modules/utils/utils.h"
#include "io.h"
@@ -34,8 +35,6 @@ main (void)
0, 0, 0, 0, 0, 1, 1, 1);
TCCR0 = regv (FOC0, WGM00, COM01, COM0, WGM01, CS02, CS01, CS00,
0, 0, 0, 0, 0, 1, 1, 1);
-#else
- printf ("TODO: reset message\n");
#endif
/* Test delays, use sei to separate loops in assembly listing. */
sei (); utils_delay_ns (1);