1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

Passing the ARDUINO constant from the IDE to avr-gcc as a command line argument (so I don't forget to update the version in the .h file).

This commit is contained in:
David A. Mellis 2009-10-23 23:04:03 +00:00
parent de28fadf49
commit 6a15e01ff8
3 changed files with 4 additions and 5 deletions

View File

@ -40,7 +40,7 @@ import processing.core.*;
* files and images, etc) that comes from that.
*/
public class Base {
static final int REVISION = 18;
public static final int REVISION = 18;
static String VERSION_NAME = "0018";
static HashMap<Integer, String> platformNames = new HashMap<Integer, String>();

View File

@ -452,6 +452,7 @@ public class Compiler implements MessageConsumer {
"-assembler-with-cpp",
"-mmcu=" + Preferences.get("boards." + Preferences.get("board") + ".build.mcu"),
"-DF_CPU=" + Preferences.get("boards." + Preferences.get("board") + ".build.f_cpu"),
"-DARDUINO=" + Base.REVISION,
}));
for (int i = 0; i < includePaths.size(); i++) {
@ -478,6 +479,7 @@ public class Compiler implements MessageConsumer {
"-fdata-sections",
"-mmcu=" + Preferences.get("boards." + Preferences.get("board") + ".build.mcu"),
"-DF_CPU=" + Preferences.get("boards." + Preferences.get("board") + ".build.f_cpu"),
"-DARDUINO=" + Base.REVISION,
}));
for (int i = 0; i < includePaths.size(); i++) {
@ -505,6 +507,7 @@ public class Compiler implements MessageConsumer {
"-fdata-sections",
"-mmcu=" + Preferences.get("boards." + Preferences.get("board") + ".build.mcu"),
"-DF_CPU=" + Preferences.get("boards." + Preferences.get("board") + ".build.f_cpu"),
"-DARDUINO=" + Base.REVISION,
}));
for (int i = 0; i < includePaths.size(); i++) {

View File

@ -32,10 +32,6 @@
extern "C"{
#endif
#ifndef ARDUINO
#define ARDUINO 18
#endif
#define HIGH 0x1
#define LOW 0x0