summaryrefslogtreecommitdiff
path: root/digital/avr/modules/motor/output/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'digital/avr/modules/motor/output/test/Makefile')
-rw-r--r--digital/avr/modules/motor/output/test/Makefile23
1 files changed, 23 insertions, 0 deletions
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