summaryrefslogtreecommitdiffhomepage
path: root/analog/motor-power-avr/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'analog/motor-power-avr/src/Makefile')
-rw-r--r--analog/motor-power-avr/src/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/analog/motor-power-avr/src/Makefile b/analog/motor-power-avr/src/Makefile
new file mode 100644
index 00000000..f11fc6e9
--- /dev/null
+++ b/analog/motor-power-avr/src/Makefile
@@ -0,0 +1,16 @@
+BASE = ../../../digital/avr
+PROGS = mp
+HOST_PROGS = test_mp
+mp_SOURCES = main.c mp_pwm_L_.c mp_pwm_LR_.c adc.c
+test_mp_SOURCES = test_mp.c
+MODULES = proto uart utils math/fixed
+test_mp_MODULES =
+CONFIGFILE = avrconfig.h
+# atmega8, atmega8535, atmega128...
+AVR_MCU = atmega16
+# -O2 : speed
+# -Os : size
+OPTIMIZE = -O2
+HOST_LIBS = -lm
+
+include $(BASE)/make/Makefile.gen