From b1f14380727106642388a6d32baa3a4103a03a9b Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 3 Oct 2011 21:03:58 +0200 Subject: digital/avr/modules/motor: add new output module --- digital/avr/modules/motor/output/test/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 digital/avr/modules/motor/output/test/Makefile (limited to 'digital/avr/modules/motor/output/test/Makefile') diff --git a/digital/avr/modules/motor/output/test/Makefile b/digital/avr/modules/motor/output/test/Makefile new file mode 100644 index 00000000..33c13d9c --- /dev/null +++ b/digital/avr/modules/motor/output/test/Makefile @@ -0,0 +1,23 @@ +BASE = ../../../.. +PROGS = test_output +test_output_SOURCES = test_output.c +MODULES = utils uart proto motor/output $(OUTPUT_MODULE) +CONFIGFILE = avrconfig_ocr.h +# atmega8, atmega8535, atmega128... +AVR_MCU = atmega32 +# -O2 : speed +# -Os : size +OPTIMIZE = -Os + +ifeq ($(CONFIGFILE),avrconfig_ocr.h) +OUTPUT_MODULE = motor/output/pwm_ocr +else ifeq ($(CONFIGFILE),avrconfig_mp.h) +OUTPUT_MODULE = motor/output/pwm_mp spi +else +OUTPUT_MODULE = motor/output/pwm_ocr motor/output/pwm_mp spi +endif + +TEST_MCU = atmega128 +TEST_CONFIGFILES = avrconfig_mp.h avrconfig_both.h + +include $(BASE)/make/Makefile.gen -- cgit v1.2.3