summaryrefslogtreecommitdiff
path: root/digital/avr/modules/motor/output/test/Makefile
blob: 33c13d9cc858b5c1edb9177bb1fe6cd0d337c4ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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