aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSudar <sudar@sudarmuthu.com>2013-08-20 12:17:10 +0530
committerSudar <sudar@sudarmuthu.com>2013-09-15 12:53:19 +0530
commit3f4e2bf2ffbe3d9e07696464dc4acd44f8716ac2 (patch)
tree6a88567487195186c28463d86c1adfdecc5b468b
parentd719847a8a610591d22b1e3acf01ebffaa394153 (diff)
Added detailed instructions for using alternative cores
Should close Issue #60
-rw-r--r--HISTORY.md1
-rw-r--r--arduino-mk/Arduino.mk34
2 files changed, 35 insertions, 0 deletions
diff --git a/HISTORY.md b/HISTORY.md
index 87a8027..0e144f3 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -19,6 +19,7 @@ The following is the rough list of changes that went into different versions. I
- Replace Leonardo detection with Caterina detection (https://github.com/sej7278)
- Autodetect baudrate only if either a .ino/.pde is present
- Allow building with Arduino core, without a .ino/.pde file
+- Ability to support different Arduino cores (https://github.com/sej7278)
### 0.12.0 (2013-06-20)
- Fix "generated_assembly" target, which got broken earlier. Fix issue #76 (https://github.com/matthijskooijman)
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk
index ff8deb3..4294db2 100644
--- a/arduino-mk/Arduino.mk
+++ b/arduino-mk/Arduino.mk
@@ -195,6 +195,40 @@
#
#
########################################################################
+#
+# ALTERNATIVE CORES
+#
+# To use alternative cores for platforms such as ATtiny, you need to
+# specify a few more variables, depending on the core in use.
+#
+# The HLT (attiny-master) core can be used just by specifying
+# ALTERNATE_CORE, assuming your core is in your ~/sketchbook/hardware
+# directory. For example:
+#
+# ISP_PORT = /dev/ttyACM0
+# BOARD_TAG = attiny85
+# ALTERNATE_CORE = attiny-master
+#
+# To use the more complex arduino-tiny and TinyCore2 cores, you must
+# also set ARDUINO_CORE_PATH and ARDUINO_VAR_PATH to the core
+# directory, as these cores essentially replace the main Arduino core.
+# For example:
+#
+# ISP_PORT = /dev/ttyACM0
+# BOARD_TAG = attiny85at8
+# ALTERNATE_CORE = arduino-tiny
+# ARDUINO_VAR_PATH = ~/sketchbook/hardware/arduino-tiny/cores/tiny
+# ARDUINO_CORE_PATH = ~/sketchbook/hardware/arduino-tiny/cores/tiny
+#
+# or....
+#
+# ISP_PORT = /dev/ttyACM0
+# BOARD_TAG = attiny861at8
+# ALTERNATE_CORE = tiny2
+# ARDUINO_VAR_PATH = ~/sketchbook/hardware/tiny2/cores/tiny
+# ARDUINO_CORE_PATH = ~/sketchbook/hardware/tiny2/cores/tiny
+#
+########################################################################
arduino_output =
# When output is not suppressed and we're in the top-level makefile,