From 851f439038566e73bf77baec4e50ade1e5c0ef15 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 13 Apr 2007 03:55:16 +0000 Subject: sketched out EEPROM library support, but it doesn't work yet ; renamed some variables for clarity ; made digital pins set to OUTPUT by default so that you don't get lots of random data, unless you want it ;) svn path=/trunk/externals/hardware/arduino/; revision=7558 --- Pd_firmware/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Pd_firmware/Makefile') diff --git a/Pd_firmware/Makefile b/Pd_firmware/Makefile index d31c48a..82af842 100644 --- a/Pd_firmware/Makefile +++ b/Pd_firmware/Makefile @@ -43,16 +43,20 @@ # 7. Type "make upload", reset your Arduino board, and press enter to # upload your program to the Arduino board. # -# $Id: Makefile,v 1.5 2007-03-05 04:34:32 eighthave Exp $ +# $Id: Makefile,v 1.6 2007-04-13 03:55:16 eighthave Exp $ -PORT = /dev/tty.usbserial-1* +PORT = /dev/tty.usbserial-* TARGET = Pd_firmware ARDUINO = /Applications/arduino-0007 ARDUINO_SRC = $(ARDUINO)/lib/targets/arduino -INCLUDE = -I$(ARDUINO_SRC) -I$(ARDUINO)/tools/avr/avr/include +ARDUINO_LIB_SRC = $(ARDUINO)/lib/targets/libraries +INCLUDE = -I$(ARDUINO_SRC) -I$(ARDUINO)/tools/avr/avr/include \ + -I$(ARDUINO)/lib/targets/libraries/EEPROM \ + -I$(ARDUINO)/lib/targets/libraries SRC = $(ARDUINO_SRC)/pins_arduino.c $(ARDUINO_SRC)/wiring.c \ $(ARDUINO_SRC)/WInterrupts.c CXXSRC = applet/$(TARGET).cpp $(ARDUINO_SRC)/HardwareSerial.cpp \ + $(ARDUINO_LIB_SRC)/EEPROM/EEPROM.cpp \ $(ARDUINO_SRC)/WRandom.cpp MCU = atmega8 F_CPU = 16000000 @@ -215,6 +219,7 @@ clean: $(REMOVE) applet/$(TARGET).hex applet/$(TARGET).eep applet/$(TARGET).cof applet/$(TARGET).elf \ $(TARGET).map applet/$(TARGET).sym applet/$(TARGET).lss \ $(OBJ) $(LST) $(SRC:.c=.s) $(SRC:.c=.d) $(CXXSRC:.cpp=.s) $(CXXSRC:.cpp=.d) + find $(ARDUINO)/lib/ -name '*.o' -delete depend: if grep '^# DO NOT DELETE' $(MAKEFILE) >/dev/null; \ -- cgit v1.2.1