From bea7ef33688b38d85ea65a9ceecf1f0ae5fe1ff1 Mon Sep 17 00:00:00 2001 From: "Grace Copplestone (admin)" <gmpc@mit.edu> Date: Thu, 10 Aug 2017 09:39:25 -0400 Subject: [PATCH] Upload New File --- functionality/interrupt/interrupt.8e5.make | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 functionality/interrupt/interrupt.8e5.make diff --git a/functionality/interrupt/interrupt.8e5.make b/functionality/interrupt/interrupt.8e5.make new file mode 100644 index 0000000..9673d30 --- /dev/null +++ b/functionality/interrupt/interrupt.8e5.make @@ -0,0 +1,18 @@ +PROJECT=interrupt.8e5 +SOURCES=$(PROJECT).c +MMCU=atxmega8e5 +F_CPU = 32000000 +TARGET = x8e5 +PROGRAMMER= atmelice_pdi + +CFLAGS=-mmcu=$(MMCU) -Wall -Os -DF_CPU=$(F_CPU) + +$(PROJECT).hex: $(PROJECT).out + avr-objcopy -O ihex $(PROJECT).out $(PROJECT).c.hex;\ + avr-size --mcu=$(MMCU) --format=avr $(PROJECT).out + +$(PROJECT).out: $(SOURCES) + avr-gcc $(CFLAGS) -I./ -o $(PROJECT).out $(SOURCES) + +program: $(PROJECT).hex + avrdude -p $(TARGET) -c $(PROGRAMMER) -U flash:w:$(PROJECT).c.hex -- GitLab