aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Delmar Davis <don@suspectdevices.com>2012-09-18 17:30:35 -0700
committerDonald Delmar Davis <don@suspectdevices.com>2012-09-18 17:30:35 -0700
commit4b563e885dad037a38a2519260757bece9387af2 (patch)
tree6c4294d947ff0373f3659135c2cd96e309e465a3
parenta8804b81b822cb630932a6c20e39e018dd2e380c (diff)
Add less trivial example.
-rw-r--r--README.md13
-rw-r--r--arduino/Arduino.mk38
2 files changed, 31 insertions, 20 deletions
diff --git a/README.md b/README.md
index 486e30d..fede110 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,15 @@
arduino-core-0022
=================
-Arduino Core and Make file. \ No newline at end of file
+This is the arduino core from the Arduino-0022 distribution. Please reference the liscencing
+(gpl2 i believe) from the arduino web site as the liscence file was not included in the core.
+
+(I believe this is in violation of its own liscence and will put a liscence file in as soon as I find it)
+
+In the arduino directory is a make include file (Arduino.mk) whick is a hack of the Makefile
+created by Martin Oldfield which can be found at https://github.com/mjoldfield/Arduino-Makefile
+
+Between the core and the makefile is a usable library based system.
+
+I have a trivial example and a not so trivial example in which 5 pdes were munged into a single source file
+(which once you have a sane editor is not so bad) \ No newline at end of file
diff --git a/arduino/Arduino.mk b/arduino/Arduino.mk
index fb8300e..855a22b 100644
--- a/arduino/Arduino.mk
+++ b/arduino/Arduino.mk
@@ -41,7 +41,7 @@
#
# ARDUINO_LIBS = Ethernet Ethernet/utility SPI
# MCU = atmega2560
-# ISP_PORT = /dev/cu.usbmodem12a1
+# AVRDUDE_PORT = /dev/cu.usbmodem12a1
#
# include /usr/local/share/Arduino.mk
#
@@ -51,7 +51,7 @@
# assume these are in
# $(ARDUINO_DIR)/hardware/libraries
#
-# ISP_PORT - The port where the Arduino can be found (only needed
+# AVRDUDE_PORT - The port where the Arduino can be found (only needed
# when uploading
#
# MCU - the name of the processor
@@ -82,8 +82,8 @@
# You need to specify some details of your ISP programmer and might
# also need to specify the fuse values:
#
-# ISP_PROG = -c stk500v2
-# ISP_PORT = /dev/ttyACM0
+# AVRDUDE_PROGRAMMER = -c stk500v2
+# AVRDUDE_PORT = /dev/ttyACM0
#
# You might also need to set the fuse bits, but typically they'll be
#
@@ -132,18 +132,18 @@ endif
UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin)
- ifndef ISP_PORT
- ISP_PORT=$(firstword $(wildcard /dev/tty.usbmodem*))
+ ifndef AVRDUDE_PORT
+ AVRDUDE_PORT=$(firstword $(wildcard /dev/tty.usbmodem*))
endif
else
ifeq ($(UNAME),Linux)
- ifndef ISP_PORT
- ISP_PORT=/dev/ttyACM0
+ ifndef AVRDUDE_PORT
+ AVRDUDE_PORT=/dev/ttyACM0
endif
else
UNAME=Windows
- ifndef ISP_PORT
- ISP_PORT=COM8:
+ ifndef AVRDUDE_PORT
+ AVRDUDE_PORT=COM8:
endif
endif
endif
@@ -209,12 +209,12 @@ F_CPU = 16000000
endif
# normal programming info
-ifndef AVRDUDE_ARD_PROGRAMMER
-AVRDUDE_ARD_PROGRAMMER = stk500v2
+ifndef AVRDUDE_PROGRAMMER
+AVRDUDE_PROGRAMMER = stk500v2
endif
-ifndef AVRDUDE_ARD_BAUDRATE
-AVRDUDE_ARD_BAUDRATE = 115200
+ifndef AVRDUDE_BAUDRATE
+AVRDUDE_BAUDRATE = 115200
endif
# fuses if you're using e.g. ISP
@@ -339,7 +339,7 @@ ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp
LDFLAGS = -mmcu=$(MCU) -Wl,--gc-sections -Os
# Expand and pick the first port
-# ARD_PORT = $(firstword $(wildcard $(ISP_PORT)))
+# ARD_PORT = $(firstword $(wildcard $(AVRDUDE_PORT)))
# Implicit rules for building everything (needed to get everything in
# the right directory)
@@ -446,13 +446,13 @@ ifdef AVRDUDE_CONF
AVRDUDE_COM_OPTS += -C $(AVRDUDE_CONF)
endif
-AVRDUDE_ARD_OPTS = -c $(AVRDUDE_ARD_PROGRAMMER) -b $(AVRDUDE_ARD_BAUDRATE) -P $(ISP_PORT)
+AVRDUDE_ARD_OPTS = -c $(AVRDUDE_PROGRAMMER) -b $(AVRDUDE_BAUDRATE) -P $(AVRDUDE_PORT)
-ifndef ISP_PROG
-ISP_PROG = -c stk500v2
+ifndef AVRDUDE_PROGRAMMER
+AVRDUDE_PROGRAMMER = -c stk500v2
endif
-AVRDUDE_ISP_OPTS = -P $(ISP_PORT) $(ISP_PROG)
+AVRDUDE_ISP_OPTS = -P $(AVRDUDE_PORT) $(AVRDUDE_PROGRAMMER)
########################################################################