mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-06 01:08:25 +01:00
Renaming pins/ directory to the more generic variants/
http://code.google.com/p/arduino/issues/detail?id=588
This commit is contained in:
parent
6886910f3d
commit
d00f0949ed
@ -91,19 +91,19 @@ public class Compiler implements MessageConsumer {
|
|||||||
corePath = coreFolder.getAbsolutePath();
|
corePath = coreFolder.getAbsolutePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
String pins = boardPreferences.get("build.pins");
|
String variant = boardPreferences.get("build.variant");
|
||||||
String pinsPath = null;
|
String variantPath = null;
|
||||||
|
|
||||||
if (pins != null) {
|
if (variant != null) {
|
||||||
if (pins.indexOf(':') == -1) {
|
if (variant.indexOf(':') == -1) {
|
||||||
Target t = Base.getTarget();
|
Target t = Base.getTarget();
|
||||||
File pinsFolder = new File(new File(t.getFolder(), "pins"), pins);
|
File variantFolder = new File(new File(t.getFolder(), "variants"), variant);
|
||||||
pinsPath = pinsFolder.getAbsolutePath();
|
variantPath = variantFolder.getAbsolutePath();
|
||||||
} else {
|
} else {
|
||||||
Target t = Base.targetsTable.get(pins.substring(0, pins.indexOf(':')));
|
Target t = Base.targetsTable.get(variant.substring(0, variant.indexOf(':')));
|
||||||
File pinsFolder = new File(t.getFolder(), "pins");
|
File variantFolder = new File(t.getFolder(), "variants");
|
||||||
pinsFolder = new File(pinsFolder, pins.substring(pins.indexOf(':') + 1));
|
variantFolder = new File(variantFolder, variant.substring(variant.indexOf(':') + 1));
|
||||||
pinsPath = pinsFolder.getAbsolutePath();
|
variantPath = variantFolder.getAbsolutePath();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ public class Compiler implements MessageConsumer {
|
|||||||
sketch.setCompilingProgress(20);
|
sketch.setCompilingProgress(20);
|
||||||
List includePaths = new ArrayList();
|
List includePaths = new ArrayList();
|
||||||
includePaths.add(corePath);
|
includePaths.add(corePath);
|
||||||
if (pinsPath != null) includePaths.add(pinsPath);
|
if (variantPath != null) includePaths.add(variantPath);
|
||||||
for (File file : sketch.getImportedLibraries()) {
|
for (File file : sketch.getImportedLibraries()) {
|
||||||
includePaths.add(file.getPath());
|
includePaths.add(file.getPath());
|
||||||
}
|
}
|
||||||
@ -162,7 +162,7 @@ public class Compiler implements MessageConsumer {
|
|||||||
sketch.setCompilingProgress(50);
|
sketch.setCompilingProgress(50);
|
||||||
includePaths.clear();
|
includePaths.clear();
|
||||||
includePaths.add(corePath); // include path for core only
|
includePaths.add(corePath); // include path for core only
|
||||||
if (pinsPath != null) includePaths.add(pinsPath);
|
if (variantPath != null) includePaths.add(variantPath);
|
||||||
List<File> coreObjectFiles =
|
List<File> coreObjectFiles =
|
||||||
compileFiles(avrBasePath, buildPath, includePaths,
|
compileFiles(avrBasePath, buildPath, includePaths,
|
||||||
findFilesInPath(corePath, "S", true),
|
findFilesInPath(corePath, "S", true),
|
||||||
|
@ -14,7 +14,7 @@ uno.bootloader.lock_bits=0x0F
|
|||||||
uno.build.mcu=atmega328p
|
uno.build.mcu=atmega328p
|
||||||
uno.build.f_cpu=16000000L
|
uno.build.f_cpu=16000000L
|
||||||
uno.build.core=arduino
|
uno.build.core=arduino
|
||||||
uno.build.pins=standard
|
uno.build.variant=standard
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ atmega328.bootloader.lock_bits=0x0F
|
|||||||
atmega328.build.mcu=atmega328p
|
atmega328.build.mcu=atmega328p
|
||||||
atmega328.build.f_cpu=16000000L
|
atmega328.build.f_cpu=16000000L
|
||||||
atmega328.build.core=arduino
|
atmega328.build.core=arduino
|
||||||
atmega328.build.pins=standard
|
atmega328.build.variant=standard
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ diecimila.bootloader.lock_bits=0x0F
|
|||||||
diecimila.build.mcu=atmega168
|
diecimila.build.mcu=atmega168
|
||||||
diecimila.build.f_cpu=16000000L
|
diecimila.build.f_cpu=16000000L
|
||||||
diecimila.build.core=arduino
|
diecimila.build.core=arduino
|
||||||
diecimila.build.pins=standard
|
diecimila.build.variant=standard
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ mega2560.bootloader.lock_bits=0x0F
|
|||||||
mega2560.build.mcu=atmega2560
|
mega2560.build.mcu=atmega2560
|
||||||
mega2560.build.f_cpu=16000000L
|
mega2560.build.f_cpu=16000000L
|
||||||
mega2560.build.core=arduino
|
mega2560.build.core=arduino
|
||||||
mega2560.build.pins=mega
|
mega2560.build.variant=mega
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ mega.bootloader.lock_bits=0x0F
|
|||||||
mega.build.mcu=atmega1280
|
mega.build.mcu=atmega1280
|
||||||
mega.build.f_cpu=16000000L
|
mega.build.f_cpu=16000000L
|
||||||
mega.build.core=arduino
|
mega.build.core=arduino
|
||||||
mega.build.pins=mega
|
mega.build.variant=mega
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ mini.bootloader.lock_bits=0x0F
|
|||||||
mini.build.mcu=atmega168
|
mini.build.mcu=atmega168
|
||||||
mini.build.f_cpu=16000000L
|
mini.build.f_cpu=16000000L
|
||||||
mini.build.core=arduino
|
mini.build.core=arduino
|
||||||
mini.build.pins=standard
|
mini.build.variant=standard
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ fio.bootloader.lock_bits=0x0F
|
|||||||
fio.build.mcu=atmega328p
|
fio.build.mcu=atmega328p
|
||||||
fio.build.f_cpu=8000000L
|
fio.build.f_cpu=8000000L
|
||||||
fio.build.core=arduino
|
fio.build.core=arduino
|
||||||
fio.build.pins=standard
|
fio.build.variant=standard
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -162,7 +162,7 @@ bt328.bootloader.lock_bits=0x0F
|
|||||||
bt328.build.mcu=atmega328p
|
bt328.build.mcu=atmega328p
|
||||||
bt328.build.f_cpu=16000000L
|
bt328.build.f_cpu=16000000L
|
||||||
bt328.build.core=arduino
|
bt328.build.core=arduino
|
||||||
bt328.build.pins=standard
|
bt328.build.variant=standard
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ bt.bootloader.lock_bits=0x0F
|
|||||||
bt.build.mcu=atmega168
|
bt.build.mcu=atmega168
|
||||||
bt.build.f_cpu=16000000L
|
bt.build.f_cpu=16000000L
|
||||||
bt.build.core=arduino
|
bt.build.core=arduino
|
||||||
bt.build.pins=standard
|
bt.build.variant=standard
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -205,7 +205,7 @@ lilypad328.bootloader.lock_bits=0x0F
|
|||||||
lilypad328.build.mcu=atmega328p
|
lilypad328.build.mcu=atmega328p
|
||||||
lilypad328.build.f_cpu=8000000L
|
lilypad328.build.f_cpu=8000000L
|
||||||
lilypad328.build.core=arduino
|
lilypad328.build.core=arduino
|
||||||
lilypad328.build.pins=standard
|
lilypad328.build.variant=standard
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -226,7 +226,7 @@ lilypad.bootloader.lock_bits=0x0F
|
|||||||
lilypad.build.mcu=atmega168
|
lilypad.build.mcu=atmega168
|
||||||
lilypad.build.f_cpu=8000000L
|
lilypad.build.f_cpu=8000000L
|
||||||
lilypad.build.core=arduino
|
lilypad.build.core=arduino
|
||||||
lilypad.build.pins=standard
|
lilypad.build.variant=standard
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ pro5v328.bootloader.lock_bits=0x0F
|
|||||||
pro5v328.build.mcu=atmega328p
|
pro5v328.build.mcu=atmega328p
|
||||||
pro5v328.build.f_cpu=16000000L
|
pro5v328.build.f_cpu=16000000L
|
||||||
pro5v328.build.core=arduino
|
pro5v328.build.core=arduino
|
||||||
pro5v328.build.pins=standard
|
pro5v328.build.variant=standard
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -268,7 +268,7 @@ pro5v.bootloader.lock_bits=0x0F
|
|||||||
pro5v.build.mcu=atmega168
|
pro5v.build.mcu=atmega168
|
||||||
pro5v.build.f_cpu=16000000L
|
pro5v.build.f_cpu=16000000L
|
||||||
pro5v.build.core=arduino
|
pro5v.build.core=arduino
|
||||||
pro5v.build.pins=standard
|
pro5v.build.variant=standard
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -289,7 +289,7 @@ pro328.bootloader.lock_bits=0x0F
|
|||||||
pro328.build.mcu=atmega328p
|
pro328.build.mcu=atmega328p
|
||||||
pro328.build.f_cpu=8000000L
|
pro328.build.f_cpu=8000000L
|
||||||
pro328.build.core=arduino
|
pro328.build.core=arduino
|
||||||
pro328.build.pins=standard
|
pro328.build.variant=standard
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -310,7 +310,7 @@ pro.bootloader.lock_bits=0x0F
|
|||||||
pro.build.mcu=atmega168
|
pro.build.mcu=atmega168
|
||||||
pro.build.f_cpu=8000000L
|
pro.build.f_cpu=8000000L
|
||||||
pro.build.core=arduino
|
pro.build.core=arduino
|
||||||
pro.build.pins=standard
|
pro.build.variant=standard
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -331,7 +331,7 @@ atmega168.bootloader.lock_bits=0x0F
|
|||||||
atmega168.build.mcu=atmega168
|
atmega168.build.mcu=atmega168
|
||||||
atmega168.build.f_cpu=16000000L
|
atmega168.build.f_cpu=16000000L
|
||||||
atmega168.build.core=arduino
|
atmega168.build.core=arduino
|
||||||
atmega168.build.pins=standard
|
atmega168.build.variant=standard
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
@ -351,4 +351,4 @@ atmega8.bootloader.lock_bits=0x0F
|
|||||||
atmega8.build.mcu=atmega8
|
atmega8.build.mcu=atmega8
|
||||||
atmega8.build.f_cpu=16000000L
|
atmega8.build.f_cpu=16000000L
|
||||||
atmega8.build.core=arduino
|
atmega8.build.core=arduino
|
||||||
atmega8.build.pins=standard
|
atmega8.build.variant=standard
|
||||||
|
Loading…
x
Reference in New Issue
Block a user