├── Example ├── Debug.hpp └── Example.ino ├── .vscode └── settings.json ├── Desktop-Example ├── Desktop-Example ├── Makefile ├── Desktop-Example.cpp └── README.md ├── Screenshot-Arduino-IDE-Debug.png ├── README.md ├── Debug.hpp ├── LICENSE └── boards.txt.example /Example/Debug.hpp: -------------------------------------------------------------------------------- 1 | ../Debug.hpp -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "iomanip": "cpp" 4 | } 5 | } -------------------------------------------------------------------------------- /Desktop-Example/Desktop-Example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tttapa/Arduino-Debugging/HEAD/Desktop-Example/Desktop-Example -------------------------------------------------------------------------------- /Screenshot-Arduino-IDE-Debug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tttapa/Arduino-Debugging/HEAD/Screenshot-Arduino-IDE-Debug.png -------------------------------------------------------------------------------- /Desktop-Example/Makefile: -------------------------------------------------------------------------------- 1 | CXX := g++ 2 | CXXFLAGS := -Wall -std=c++11 3 | 4 | release: 5 | ${CXX} ${CXXFLAGS} -o Desktop-Example Desktop-Example.cpp 6 | 7 | debug: 8 | ${CXX} ${CXXFLAGS} -DDEBUG_OUT=cout -o Desktop-Example Desktop-Example.cpp 9 | -------------------------------------------------------------------------------- /Desktop-Example/Desktop-Example.cpp: -------------------------------------------------------------------------------- 1 | #include "../Debug.hpp" 2 | #include "math.h" 3 | 4 | int someFunction(int answer); 5 | 6 | int main() { 7 | DEBUG( "This is the result of `DEBUG`" ); 8 | DEBUGREF( "This is the result of `DEBUGREF`" ); 9 | DEBUGFN( "This is the result of `DEBUGFN`" ); 10 | int a = 1, b = 2, c = 3; 11 | DEBUGVAL( a, b, c ); 12 | DEBUGVAL( log10(1000) - 2 ); 13 | someFunction(42); 14 | return 0; 15 | } 16 | 17 | int someFunction(int parameter) { 18 | DEBUGFN( NAMEDVALUE(parameter) ); 19 | return parameter; 20 | } -------------------------------------------------------------------------------- /Example/Example.ino: -------------------------------------------------------------------------------- 1 | #define PRINTSTREAM_FALLBACK 2 | #define DEBUG_OUT Serial 3 | #include "Debug.hpp" 4 | 5 | void setup() { 6 | Serial.begin(115200); 7 | while (!Serial); 8 | } 9 | 10 | void loop() { 11 | DEBUG( "This is the result of `DEBUG`" ); 12 | DEBUGREF( "This is the result of `DEBUGREF`" ); 13 | DEBUGFN( "This is the result of `DEBUGFN`" ); 14 | DEBUGTIME( "This is the result of `DEBUGTIME`" ); 15 | int a = 1, b = 2, c = 3; 16 | DEBUGVAL( a, b, c ); 17 | DEBUGVAL( log10(1000) - 2 ); 18 | DEBUGVAL( millis() ); 19 | DEBUGVAL( Serial.read() ); 20 | someFunction(42); 21 | DEBUG(""); 22 | delay(5000); 23 | } 24 | 25 | int someFunction(int parameter) { 26 | DEBUGFN( NAMEDVALUE(parameter) ); 27 | return parameter; 28 | } 29 | -------------------------------------------------------------------------------- /Desktop-Example/README.md: -------------------------------------------------------------------------------- 1 | # Desktop example 2 | 3 | This is an example of a desktop C++ file using the Arduino-Debugging library. 4 | Think of it as a file containing your unit tests, for example. 5 | 6 | ```cpp 7 | #include "../Debug.hpp" 8 | #include "math.h" // log10 9 | 10 | int someFunction(int answer); 11 | 12 | int main() { 13 | DEBUG( "This is the result of `DEBUG`" ); 14 | DEBUGREF( "This is the result of `DEBUGREF`" ); 15 | DEBUGFN( "This is the result of `DEBUGFN`" ); 16 | int a = 1, b = 2, c = 3; 17 | DEBUGVAL( a, b, c ); 18 | DEBUGVAL( log10(1000) - 2 ); 19 | someFunction(42); 20 | return 0; 21 | } 22 | 23 | int someFunction(int parameter) { 24 | DEBUGFN( NAMEDVALUE(parameter) ); 25 | return parameter; 26 | } 27 | ``` 28 | 29 | ## Compiling 30 | 31 | To compile a version without debugging, open a terminal in this folder, and run: 32 | ```sh 33 | make 34 | ``` 35 | 36 | To compile a version with debugging, run: 37 | ```sh 38 | make debug 39 | ``` 40 | 41 | To execute the result, just run: 42 | ```sh 43 | ./Desktop-Example 44 | ``` 45 | 46 | The expected output of the version with debugging enabled is: 47 | ``` 48 | This is the result of `DEBUG` 49 | [Desktop-Example.cpp:8]: This is the result of `DEBUGREF` 50 | [int main() @ line 9]: This is the result of `DEBUGFN` 51 | a = 1, b = 2, c = 3 52 | log10(1000) - 2 = 1 53 | [int someFunction(int) @ line 18]: parameter = 42 54 | ``` 55 | 56 | Running the executable without debugging enabled will print nothing. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Arduino Debugging 2 | 3 | When working on an Arduino sketch or library, you often find yourself writing an awful lot of `Serial.print(...)` statements for debugging. It can be quite hard to keep track of where all of this data comes from, and it's a pain to remove or comment out all of it when preparing for a release. 4 | 5 | This library aims at facilitating the debugging process by providing simple macros that add no overhead whatsoever when debugging is disabled. It can also automatically print out information about the context, like function name, filename and line number. 6 | 7 | On top of that, it can be used for the Arduino, as well as desktop C++. This makes it easier to develop on your computer, run unit tests on your computer, and then compile for the Arduino using the exact same code. 8 | 9 | ## Use the updated version 10 | 11 | This library has been merged into the [**Arduino Helpers**](https://github.com/tttapa/Arduino-Helpers) utility library. This repository will no longer be actively maintained. 12 | [**Documentation**](https://tttapa.github.io/Arduino-Helpers/Doxygen/d4/da5/group__AH__Debug.html) 13 | [**Examples**](https://tttapa.github.io/Arduino-Helpers/Doxygen/d5/d99/Debug_8ino-example.html) 14 | 15 | --- 16 | 17 | # Legacy documentation 18 | 19 | It is _strongly_ recommended to use the [new version](https://tttapa.github.io/Arduino-Helpers/Doxygen/d4/da5/group__AH__Debug.html). The documentation below was the original documentation for this repository, and will no longer be updated. 20 | 21 | ## Dependencies 22 | 23 | You can install the [Arduino PrintStream library](https://github.com/tttapa/Arduino-PrintStream), that adds more advanced printing options, with `std::cout`-like syntax for the Arduino (using the `<<`-operator). 24 | If you're tight on memory, or if you don't want to add the extra dependency, you can also use this debugging library without installing the PrintStream library. (See [below](#not-including-printstream)) 25 | 26 | ## Installation 27 | 28 | The easiest way is to just paste the `Debug.hpp` file into your sketch or project folder. If you're using the Arduino IDE, you can use `CTRL+K` (or _Sketch > Show Sketch Folder_) and paste it there. 29 | 30 | ## API 31 | 32 | The library provides five macros: 33 | 34 | 1. `DEBUG(x)` 35 | This is the easiest one: it just prints out `x` to the debug output if debugging is enabled. It also terminates the line. 36 | 2. `DEBUGREF(x)` 37 | This one behaves similar to `DEBUG`, but it also prints out a reference to the filename and line number where it was called. 38 | 3. `DEBUGFN(x)` 39 | Rather than printing the entire filename, this one prints out just the function name and the line number where it was called. 40 | 4. `DEBUGTIME(x)` 41 | This macro prints the time since start (format `h:m:s.ms`). This is only supported on Arduino. 42 | 5. `DEBUGVAL(...)` 43 | This is a variadic macro, and will print the name and value of up to 10 different expressions or variables. 44 | 45 | There's also a helper macro that can be used inside of any of the first 4 macros above: 46 | `NAMEDVALUE` 47 | It will print out the name and value of an expression or variable. 48 | 49 | ## Example 50 | 51 | ```cpp 52 | #include "Debug.hpp" 53 | 54 | void setup() { 55 | Serial.begin(115200); 56 | while (!Serial); 57 | } 58 | 59 | void loop() { 60 | DEBUG( "This is the result of `DEBUG`" ); 61 | DEBUGREF( "This is the result of `DEBUGREF`" ); 62 | DEBUGFN( "This is the result of `DEBUGFN`" ); 63 | DEBUGTIME( "This is the result of `DEBUGTIME`" ); 64 | int a = 1, b = 2, c = 3; 65 | DEBUGVAL( a, b, c ); 66 | DEBUGVAL( log10(1000) - 2 ); 67 | DEBUGVAL( millis() ); 68 | DEBUGVAL( Serial.read() ); 69 | someFunction(42); 70 | DEBUG(""); 71 | delay(5000); 72 | } 73 | 74 | int someFunction(int parameter) { 75 | DEBUGFN( NAMEDVALUE(parameter) ); 76 | return parameter; 77 | } 78 | ``` 79 | When debugging is enabled the code above produces the following output: 80 | ``` 81 | This is the result of `DEBUG` 82 | [/home/pieter/GitHub/Arduino-Debugging/Example/Example.ino:12]: This is the result of `DEBUGREF` 83 | [void loop() @ line 13]: This is the result of `DEBUGFN` 84 | [0:2:11.085]: This is the result of `DEBUGTIME` 85 | a = 1, b = 2, c = 3 86 | log10(1000) - 2 = 1.00 87 | millis() = 131085 88 | Serial.read() = -1 89 | [int someFunction(int) @ line 26]: parameter = 42 90 | ``` 91 | 92 | ## Enabling debugging and selecting the output stream 93 | 94 | The easiest way to enable debugging, is to define the output stream before including the `Debug.hpp` file: 95 | ```cpp 96 | #define DEBUG_OUT Serial 97 | #include "Debug.hpp" 98 | ``` 99 | These two lines will enable debugging to the output `Serial`. 100 | 101 | If you want to disable debugging, just comment out (or remove) the first line. Now no output will be printed, and no overhead will be caused by your `DEBUG(...)` statements, because they will be removed before the compilation even starts. 102 | 103 | ## Adding a 'Debug' menu in the Arduino IDE (Optional) 104 | 105 | If you are going to be debugging a lot, it might be usefull to just add a menu option in the IDE to disable/enable debugging. 106 | This can be easily done by editing the `boards.txt` file. 107 | 108 | Open the `boards.txt` file of the board you are using. If you're using version 1.8.x of the Arduino IDE, it'll be located in `~/.arduino15/packages//hardware///` or `C:\users\\AppData\Local\Arduino15\packages\\hardware\\\` 109 | Open it using a text editor (e.g. Gedit on Linux, or Notepad on Windows). 110 | 111 | First, create the menu option by adding the following line at the top of the file: 112 | ``` 113 | menu.debug=Debug output 114 | ``` 115 | 116 | Then for your board, just add the different debug options. 117 | For example, if you're using an Arduino UNO: 118 | ``` 119 | uno.menu.debug.None=None 120 | uno.menu.debug.None.build.debug_output= 121 | uno.menu.debug.Serial=Serial 122 | uno.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 123 | ``` 124 | Then add the debugging to the compilation options by adding the line: 125 | ``` 126 | uno.build.extra_flags={build.debug_output} 127 | ``` 128 | 129 | If your board already has an `extra_flags` entry, just add ` {build.debug_output}` to the end (separated by a space). 130 | 131 | A complete list of all the AVR boards and their added debug options can be found in [boards.txt.example](boards.txt.example). 132 | 133 | Finally, restart the IDE. 134 | If you now open your the `Tools` menu in the Arduino IDE, you should see the debug options: 135 | ![Screenshot-Arduino-IDE-Debug](Screenshot-Arduino-IDE-Debug.png) 136 | 137 | ## Flushing the Serial port after each message 138 | By default, the DEBUG macros don't block. They simply write the message to the 139 | transmit buffer of the Arduino, and it gets sent out asynchronously, while the 140 | code after the debug statement is executing. 141 | The advantage is that it doesn't affect the timing (as long as you're not 142 | sending more data than can fit in the transmit buffer). 143 | On the other hand, it might mean that not all debugging information is printed 144 | when the Arduino crashes, or when interrupts are disabled. 145 | If that's the case you can define the macro `FLUSH_ON_EVERY_DEBUG_STATEMENT` to 146 | flush the Serial port after each line of debugging information. 147 | 148 | Flushing is not supported on ESP32 and ESP8266 boards, because the `Print` class 149 | on these platforms doesn't have a `flush` method. (See [issue #1](https://github.com/tttapa/Arduino-Debugging/issues/1)) 150 | 151 | ## A note on memory usage 152 | `DEBUGREF` saves the file name and line number in PROGMEM. `DEBUGFN` stores the function name in RAM, and the line number in PROGMEM. This is because the preprocessor doesn't know the function name, only the compiler does. 153 | 154 | If you want to save RAM on your own debug statements, you can use the `F(...)` macro, as usual: 155 | ```cpp 156 | DEBUG( F( "I am a debug statement stored in PROGMEM" ) ); 157 | ``` 158 | ## Not including PrintStream 159 | 160 | The PrintStream library contains some useful features, like printing in hexadecimal or binary, setting floating point precision, etc. 161 | However, there are good reasons why you would not want to include it (e.g. it adds another dependency, it costs a few bytes of extra memory). 162 | 163 | You can still use this Debugging library without installing the PrintStream library, by using the macro `PRINTSTREAM_FALLBACK`: 164 | ```cpp 165 | #define PRINTSTREAM_FALLBACK 166 | #include "Debug.hpp" 167 | ``` 168 | -------------------------------------------------------------------------------- /Debug.hpp: -------------------------------------------------------------------------------- 1 | #ifndef DEBUG_HPP 2 | #define DEBUG_HPP 3 | 4 | // Uncomment this line to flush the output after each debug statement 5 | // #define FLUSH_ON_EVERY_DEBUG_STATEMENT 6 | 7 | #ifdef FLUSH_ON_EVERY_DEBUG_STATEMENT 8 | #define ENDL endl 9 | #else 10 | #define ENDL "\r\n" 11 | #endif 12 | 13 | #ifdef ARDUINO 14 | 15 | // Uncomment this line to override Arduino IDE debug output 16 | // #define DEBUG_OUT Serial 17 | 18 | #if (defined(ESP32) || defined(ESP8266)) && \ 19 | defined(FLUSH_ON_EVERY_DEBUG_STATEMENT) 20 | #error "ESP32 and ESP8266 don't support flushing `Print` objects" 21 | #endif 22 | 23 | #ifndef PRINTSTREAM_FALLBACK 24 | #include 25 | #else 26 | #include // Print 27 | typedef Print &manipulator(Print &); 28 | inline Print &endl(Print &printer) { 29 | printer.println(); 30 | #if !(defined(ESP32) || defined(ESP8266)) 31 | printer.flush(); 32 | #endif 33 | return printer; 34 | } 35 | template inline Print &operator<<(Print &printer, const T printable) { 36 | printer.print(printable); 37 | return printer; 38 | } 39 | template <> inline Print &operator<<(Print &printer, manipulator pf) { 40 | return pf(printer); 41 | } 42 | #endif 43 | 44 | #else // No Arduino 45 | 46 | #include 47 | #include 48 | using std::boolalpha; 49 | using std::cout; 50 | using std::dec; 51 | using std::endl; 52 | using std::flush; 53 | using std::hex; 54 | using std::noboolalpha; 55 | using std::noshowbase; 56 | using std::nouppercase; 57 | using std::setbase; 58 | using std::setprecision; 59 | using std::showbase; 60 | using std::uppercase; 61 | #define F(x) (x) 62 | 63 | #endif 64 | 65 | #define STR_HELPER(x) #x 66 | #define STR(x) STR_HELPER(x) 67 | 68 | #define FUNC_LOCATION \ 69 | '[' << __PRETTY_FUNCTION__ << F(" @ line " STR(__LINE__) "]:\t") 70 | #define LOCATION "[" __FILE__ ":" STR(__LINE__) "]:\t" 71 | 72 | #define NAMEDVALUE(x) F(STR(x) " = ") << x 73 | 74 | #ifdef DEBUG_OUT 75 | 76 | #pragma message("Debugging enabled on output " STR(DEBUG_OUT)) 77 | 78 | #define DEBUG(x) \ 79 | do { \ 80 | DEBUG_OUT << x << ENDL; \ 81 | } while (0) 82 | 83 | #define DEBUGREF(x) \ 84 | do { \ 85 | DEBUG_OUT << F(LOCATION) << x << ENDL; \ 86 | } while (0) 87 | 88 | #define DEBUGFN(x) \ 89 | do { \ 90 | DEBUG_OUT << FUNC_LOCATION << x << ENDL; \ 91 | } while (0) 92 | 93 | #ifdef ARDUINO 94 | #define DEBUGTIME(x) \ 95 | do { \ 96 | unsigned long t = millis(); \ 97 | unsigned long h = t / (60UL * 60 * 1000); \ 98 | unsigned long m = (t / (60UL * 1000)) % 60; \ 99 | unsigned long s = (t / (1000UL)) % 60; \ 100 | unsigned long ms = t % 1000; \ 101 | const char *ms_zeros = ms > 99 ? "" : (ms > 9 ? "0" : "00"); \ 102 | DEBUG_OUT << '[' << h << ':' << m << ':' << s << '.' << ms_zeros << ms \ 103 | << "]:\t" << x << ENDL; \ 104 | } while (0) 105 | #endif 106 | 107 | #define DEBUGVAL(...) DEBUGVALN(COUNT(__VA_ARGS__))(__VA_ARGS__) 108 | 109 | #define COUNT(...) COUNT_HELPER(__VA_ARGS__, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1) 110 | #define COUNT_HELPER(N1, N2, N3, N4, N5, N6, N7, N8, N9, N10, N, ...) N 111 | 112 | #define DEBUGVALN(N) DEBUGVALN_HELPER(N) 113 | #define DEBUGVALN_HELPER(N) DEBUGVAL##N 114 | 115 | #define DEBUGVAL10(x, ...) \ 116 | do { \ 117 | DEBUG_OUT << NAMEDVALUE(x) << ", "; \ 118 | DEBUGVAL9(__VA_ARGS__); \ 119 | } while (0) 120 | #define DEBUGVAL9(x, ...) \ 121 | do { \ 122 | DEBUG_OUT << NAMEDVALUE(x) << ", "; \ 123 | DEBUGVAL8(__VA_ARGS__); \ 124 | } while (0) 125 | #define DEBUGVAL8(x, ...) \ 126 | do { \ 127 | DEBUG_OUT << NAMEDVALUE(x) << ", "; \ 128 | DEBUGVAL7(__VA_ARGS__); \ 129 | } while (0) 130 | #define DEBUGVAL7(x, ...) \ 131 | do { \ 132 | DEBUG_OUT << NAMEDVALUE(x) << ", "; \ 133 | DEBUGVAL6(__VA_ARGS__); \ 134 | } while (0) 135 | #define DEBUGVAL6(x, ...) \ 136 | do { \ 137 | DEBUG_OUT << NAMEDVALUE(x) << ", "; \ 138 | DEBUGVAL5(__VA_ARGS__); \ 139 | } while (0) 140 | #define DEBUGVAL5(x, ...) \ 141 | do { \ 142 | DEBUG_OUT << NAMEDVALUE(x) << ", "; \ 143 | DEBUGVAL4(__VA_ARGS__); \ 144 | } while (0) 145 | #define DEBUGVAL4(x, ...) \ 146 | do { \ 147 | DEBUG_OUT << NAMEDVALUE(x) << ", "; \ 148 | DEBUGVAL3(__VA_ARGS__); \ 149 | } while (0) 150 | #define DEBUGVAL3(x, ...) \ 151 | do { \ 152 | DEBUG_OUT << NAMEDVALUE(x) << ", "; \ 153 | DEBUGVAL2(__VA_ARGS__); \ 154 | } while (0) 155 | #define DEBUGVAL2(x, ...) \ 156 | do { \ 157 | DEBUG_OUT << NAMEDVALUE(x) << ", "; \ 158 | DEBUGVAL1(__VA_ARGS__); \ 159 | } while (0) 160 | #define DEBUGVAL1(x) \ 161 | do { \ 162 | DEBUG_OUT << NAMEDVALUE(x) << ENDL; \ 163 | } while (0) 164 | 165 | #else // Debugging disabled 166 | 167 | #define DEBUG(x) \ 168 | do { \ 169 | } while (0) 170 | #define DEBUGREF(x) \ 171 | do { \ 172 | } while (0) 173 | #define DEBUGFN(x) \ 174 | do { \ 175 | } while (0) 176 | #ifdef ARDUINO 177 | #define DEBUGTIME(x) \ 178 | do { \ 179 | } while (0) 180 | #endif 181 | #define DEBUGVAL(...) \ 182 | do { \ 183 | } while (0) 184 | 185 | #endif 186 | 187 | #endif 188 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /boards.txt.example: -------------------------------------------------------------------------------- 1 | # See: http://code.google.com/p/arduino/wiki/Platforms 2 | 3 | menu.cpu=Processor 4 | menu.debug=Debug output 5 | 6 | 7 | ############################################################## 8 | 9 | yun.name=Arduino Yún 10 | yun.upload.via_ssh=true 11 | 12 | yun.vid.0=0x2341 13 | yun.pid.0=0x0041 14 | yun.vid.1=0x2341 15 | yun.pid.1=0x8041 16 | yun.vid.2=0x2A03 17 | yun.pid.2=0x0041 18 | yun.vid.3=0x2A03 19 | yun.pid.3=0x8041 20 | 21 | yun.upload.tool=avrdude 22 | yun.upload.protocol=avr109 23 | yun.upload.maximum_size=28672 24 | yun.upload.maximum_data_size=2560 25 | yun.upload.speed=57600 26 | yun.upload.disable_flushing=true 27 | yun.upload.use_1200bps_touch=true 28 | yun.upload.wait_for_upload_port=true 29 | 30 | yun.bootloader.tool=avrdude 31 | yun.bootloader.low_fuses=0xff 32 | yun.bootloader.high_fuses=0xd8 33 | yun.bootloader.extended_fuses=0xfb 34 | yun.bootloader.file=caterina/Caterina-Yun.hex 35 | yun.bootloader.noblink=caterina/Caterina-Yun-noblink.hex 36 | yun.bootloader.unlock_bits=0x3F 37 | yun.bootloader.lock_bits=0x2F 38 | 39 | yun.build.mcu=atmega32u4 40 | yun.build.f_cpu=16000000L 41 | yun.build.vid=0x2341 42 | yun.build.pid=0x8041 43 | yun.build.usb_product="Arduino Yun" 44 | yun.build.board=AVR_YUN 45 | yun.build.core=arduino 46 | yun.build.variant=yun 47 | yun.build.extra_flags={build.usb_flags} 48 | 49 | ############################################################## 50 | 51 | uno.name=Arduino/Genuino Uno 52 | 53 | uno.vid.0=0x2341 54 | uno.pid.0=0x0043 55 | uno.vid.1=0x2341 56 | uno.pid.1=0x0001 57 | uno.vid.2=0x2A03 58 | uno.pid.2=0x0043 59 | uno.vid.3=0x2341 60 | uno.pid.3=0x0243 61 | 62 | uno.upload.tool=avrdude 63 | uno.upload.protocol=arduino 64 | uno.upload.maximum_size=32256 65 | uno.upload.maximum_data_size=2048 66 | uno.upload.speed=115200 67 | 68 | uno.bootloader.tool=avrdude 69 | uno.bootloader.low_fuses=0xFF 70 | uno.bootloader.high_fuses=0xDE 71 | uno.bootloader.extended_fuses=0xFD 72 | uno.bootloader.unlock_bits=0x3F 73 | uno.bootloader.lock_bits=0x0F 74 | uno.bootloader.file=optiboot/optiboot_atmega328.hex 75 | 76 | uno.build.mcu=atmega328p 77 | uno.build.f_cpu=16000000L 78 | uno.build.board=AVR_UNO 79 | uno.build.core=arduino 80 | uno.build.variant=standard 81 | 82 | # DEBUG OUTPUT 83 | uno.menu.debug.None=None 84 | uno.menu.debug.None.build.debug_output= 85 | uno.menu.debug.Serial=Serial 86 | uno.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 87 | 88 | uno.build.extra_flags={build.debug_output} 89 | 90 | ############################################################## 91 | 92 | diecimila.name=Arduino Duemilanove or Diecimila 93 | 94 | diecimila.upload.tool=avrdude 95 | diecimila.upload.protocol=arduino 96 | 97 | diecimila.bootloader.tool=avrdude 98 | diecimila.bootloader.low_fuses=0xFF 99 | diecimila.bootloader.unlock_bits=0x3F 100 | diecimila.bootloader.lock_bits=0x0F 101 | 102 | diecimila.build.f_cpu=16000000L 103 | diecimila.build.board=AVR_DUEMILANOVE 104 | diecimila.build.core=arduino 105 | diecimila.build.variant=standard 106 | 107 | ## Arduino Duemilanove or Diecimila w/ ATmega328P 108 | ## ---------------------------------------------- 109 | diecimila.menu.cpu.atmega328=ATmega328P 110 | 111 | diecimila.menu.cpu.atmega328.upload.maximum_size=30720 112 | diecimila.menu.cpu.atmega328.upload.maximum_data_size=2048 113 | diecimila.menu.cpu.atmega328.upload.speed=57600 114 | 115 | diecimila.menu.cpu.atmega328.bootloader.high_fuses=0xDA 116 | diecimila.menu.cpu.atmega328.bootloader.extended_fuses=0xFD 117 | diecimila.menu.cpu.atmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex 118 | 119 | diecimila.menu.cpu.atmega328.build.mcu=atmega328p 120 | 121 | ## Arduino Duemilanove or Diecimila w/ ATmega168 122 | ## --------------------------------------------- 123 | diecimila.menu.cpu.atmega168=ATmega168 124 | 125 | diecimila.menu.cpu.atmega168.upload.maximum_size=14336 126 | diecimila.menu.cpu.atmega168.upload.maximum_data_size=1024 127 | diecimila.menu.cpu.atmega168.upload.speed=19200 128 | 129 | diecimila.menu.cpu.atmega168.bootloader.high_fuses=0xdd 130 | diecimila.menu.cpu.atmega168.bootloader.extended_fuses=0xF8 131 | diecimila.menu.cpu.atmega168.bootloader.file=atmega/ATmegaBOOT_168_diecimila.hex 132 | 133 | diecimila.menu.cpu.atmega168.build.mcu=atmega168 134 | 135 | # DEBUG OUTPUT 136 | diecimila.menu.debug.None=None 137 | diecimila.menu.debug.None.build.debug_output= 138 | diecimila.menu.debug.Serial=Serial 139 | diecimila.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 140 | 141 | diecimila.build.extra_flags={build.debug_output} 142 | 143 | ############################################################## 144 | 145 | nano.name=Arduino Nano 146 | 147 | nano.upload.tool=avrdude 148 | nano.upload.protocol=arduino 149 | 150 | nano.bootloader.tool=avrdude 151 | nano.bootloader.unlock_bits=0x3F 152 | nano.bootloader.lock_bits=0x0F 153 | 154 | nano.build.f_cpu=16000000L 155 | nano.build.board=AVR_NANO 156 | nano.build.core=arduino 157 | nano.build.variant=eightanaloginputs 158 | 159 | ## Arduino Nano w/ ATmega328P 160 | ## -------------------------- 161 | nano.menu.cpu.atmega328=ATmega328P 162 | 163 | nano.menu.cpu.atmega328.upload.maximum_size=30720 164 | nano.menu.cpu.atmega328.upload.maximum_data_size=2048 165 | nano.menu.cpu.atmega328.upload.speed=115200 166 | 167 | nano.menu.cpu.atmega328.bootloader.low_fuses=0xFF 168 | nano.menu.cpu.atmega328.bootloader.high_fuses=0xDA 169 | nano.menu.cpu.atmega328.bootloader.extended_fuses=0xFD 170 | nano.menu.cpu.atmega328.bootloader.file=optiboot/optiboot_atmega328.hex 171 | 172 | nano.menu.cpu.atmega328.build.mcu=atmega328p 173 | 174 | ## Arduino Nano w/ ATmega328P (old bootloader) 175 | ## -------------------------- 176 | nano.menu.cpu.atmega328old=ATmega328P (Old Bootloader) 177 | 178 | nano.menu.cpu.atmega328old.upload.maximum_size=30720 179 | nano.menu.cpu.atmega328old.upload.maximum_data_size=2048 180 | nano.menu.cpu.atmega328old.upload.speed=57600 181 | 182 | nano.menu.cpu.atmega328old.bootloader.low_fuses=0xFF 183 | nano.menu.cpu.atmega328old.bootloader.high_fuses=0xDA 184 | nano.menu.cpu.atmega328old.bootloader.extended_fuses=0xFD 185 | nano.menu.cpu.atmega328old.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex 186 | 187 | nano.menu.cpu.atmega328old.build.mcu=atmega328p 188 | 189 | ## Arduino Nano w/ ATmega168 190 | ## ------------------------- 191 | nano.menu.cpu.atmega168=ATmega168 192 | 193 | nano.menu.cpu.atmega168.upload.maximum_size=14336 194 | nano.menu.cpu.atmega168.upload.maximum_data_size=1024 195 | nano.menu.cpu.atmega168.upload.speed=19200 196 | 197 | nano.menu.cpu.atmega168.bootloader.low_fuses=0xff 198 | nano.menu.cpu.atmega168.bootloader.high_fuses=0xdd 199 | nano.menu.cpu.atmega168.bootloader.extended_fuses=0xF8 200 | nano.menu.cpu.atmega168.bootloader.file=atmega/ATmegaBOOT_168_diecimila.hex 201 | 202 | nano.menu.cpu.atmega168.build.mcu=atmega168 203 | 204 | # DEBUG OUTPUT 205 | nano.menu.debug.None=None 206 | nano.menu.debug.None.build.debug_output= 207 | nano.menu.debug.Serial=Serial 208 | nano.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 209 | 210 | nano.build.extra_flags={build.debug_output} 211 | 212 | ############################################################## 213 | 214 | mega.name=Arduino/Genuino Mega or Mega 2560 215 | 216 | mega.vid.0=0x2341 217 | mega.pid.0=0x0010 218 | mega.vid.1=0x2341 219 | mega.pid.1=0x0042 220 | mega.vid.2=0x2A03 221 | mega.pid.2=0x0010 222 | mega.vid.3=0x2A03 223 | mega.pid.3=0x0042 224 | mega.vid.4=0x2341 225 | mega.pid.4=0x0210 226 | mega.vid.5=0x2341 227 | mega.pid.5=0x0242 228 | 229 | mega.upload.tool=avrdude 230 | mega.upload.maximum_data_size=8192 231 | 232 | mega.bootloader.tool=avrdude 233 | mega.bootloader.low_fuses=0xFF 234 | mega.bootloader.unlock_bits=0x3F 235 | mega.bootloader.lock_bits=0x0F 236 | 237 | mega.build.f_cpu=16000000L 238 | mega.build.core=arduino 239 | mega.build.variant=mega 240 | # default board may be overridden by the cpu menu 241 | mega.build.board=AVR_MEGA2560 242 | 243 | ## Arduino/Genuino Mega w/ ATmega2560 244 | ## ------------------------- 245 | mega.menu.cpu.atmega2560=ATmega2560 (Mega 2560) 246 | 247 | mega.menu.cpu.atmega2560.upload.protocol=wiring 248 | mega.menu.cpu.atmega2560.upload.maximum_size=253952 249 | mega.menu.cpu.atmega2560.upload.speed=115200 250 | 251 | mega.menu.cpu.atmega2560.bootloader.high_fuses=0xD8 252 | mega.menu.cpu.atmega2560.bootloader.extended_fuses=0xFD 253 | mega.menu.cpu.atmega2560.bootloader.file=stk500v2/stk500boot_v2_mega2560.hex 254 | 255 | mega.menu.cpu.atmega2560.build.mcu=atmega2560 256 | mega.menu.cpu.atmega2560.build.board=AVR_MEGA2560 257 | 258 | ## Arduino Mega w/ ATmega1280 259 | ## ------------------------- 260 | mega.menu.cpu.atmega1280=ATmega1280 261 | 262 | mega.menu.cpu.atmega1280.upload.protocol=arduino 263 | mega.menu.cpu.atmega1280.upload.maximum_size=126976 264 | mega.menu.cpu.atmega1280.upload.speed=57600 265 | 266 | mega.menu.cpu.atmega1280.bootloader.high_fuses=0xDA 267 | mega.menu.cpu.atmega1280.bootloader.extended_fuses=0xF5 268 | mega.menu.cpu.atmega1280.bootloader.file=atmega/ATmegaBOOT_168_atmega1280.hex 269 | 270 | mega.menu.cpu.atmega1280.build.mcu=atmega1280 271 | mega.menu.cpu.atmega1280.build.board=AVR_MEGA 272 | 273 | # DEBUG OUTPUT 274 | mega.menu.debug.None=None 275 | mega.menu.debug.None.build.debug_output= 276 | mega.menu.debug.Serial=Serial 277 | mega.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 278 | mega.menu.debug.Serial1=Serial1 279 | mega.menu.debug.Serial1.build.debug_output=-DDEBUG_OUT=Serial1 280 | mega.menu.debug.Serial2=Serial2 281 | mega.menu.debug.Serial2.build.debug_output=-DDEBUG_OUT=Serial2 282 | mega.menu.debug.Serial3=Serial3 283 | mega.menu.debug.Serial3.build.debug_output=-DDEBUG_OUT=Serial3 284 | 285 | mega.build.extra_flags={build.debug_output} 286 | 287 | ############################################################## 288 | 289 | megaADK.name=Arduino Mega ADK 290 | 291 | megaADK.vid.0=0x2341 292 | megaADK.pid.0=0x003f 293 | megaADK.vid.1=0x2341 294 | megaADK.pid.1=0x0044 295 | megaADK.vid.2=0x2A03 296 | megaADK.pid.2=0x003f 297 | megaADK.vid.3=0x2A03 298 | megaADK.pid.3=0x0044 299 | 300 | megaADK.upload.tool=avrdude 301 | megaADK.upload.protocol=wiring 302 | megaADK.upload.maximum_size=253952 303 | megaADK.upload.maximum_data_size=8192 304 | megaADK.upload.speed=115200 305 | 306 | megaADK.bootloader.tool=avrdude 307 | megaADK.bootloader.low_fuses=0xFF 308 | megaADK.bootloader.high_fuses=0xD8 309 | megaADK.bootloader.extended_fuses=0xFD 310 | megaADK.bootloader.file=stk500v2/stk500boot_v2_mega2560.hex 311 | megaADK.bootloader.unlock_bits=0x3F 312 | megaADK.bootloader.lock_bits=0x0F 313 | 314 | megaADK.build.mcu=atmega2560 315 | megaADK.build.f_cpu=16000000L 316 | megaADK.build.board=AVR_ADK 317 | megaADK.build.core=arduino 318 | megaADK.build.variant=mega 319 | 320 | # DEBUG OUTPUT 321 | megaADK.menu.debug.None=None 322 | megaADK.menu.debug.None.build.debug_output= 323 | megaADK.menu.debug.Serial=Serial 324 | megaADK.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 325 | megaADK.menu.debug.Serial1=Serial1 326 | megaADK.menu.debug.Serial1.build.debug_output=-DDEBUG_OUT=Serial1 327 | megaADK.menu.debug.Serial2=Serial2 328 | megaADK.menu.debug.Serial2.build.debug_output=-DDEBUG_OUT=Serial2 329 | megaADK.menu.debug.Serial3=Serial3 330 | megaADK.menu.debug.Serial3.build.debug_output=-DDEBUG_OUT=Serial3 331 | 332 | megaADK.build.extra_flags={build.debug_output} 333 | 334 | ############################################################## 335 | 336 | leonardo.name=Arduino Leonardo 337 | leonardo.vid.0=0x2341 338 | leonardo.pid.0=0x0036 339 | leonardo.vid.1=0x2341 340 | leonardo.pid.1=0x8036 341 | leonardo.vid.2=0x2A03 342 | leonardo.pid.2=0x0036 343 | leonardo.vid.3=0x2A03 344 | leonardo.pid.3=0x8036 345 | 346 | leonardo.upload.tool=avrdude 347 | leonardo.upload.protocol=avr109 348 | leonardo.upload.maximum_size=28672 349 | leonardo.upload.maximum_data_size=2560 350 | leonardo.upload.speed=57600 351 | leonardo.upload.disable_flushing=true 352 | leonardo.upload.use_1200bps_touch=true 353 | leonardo.upload.wait_for_upload_port=true 354 | 355 | leonardo.bootloader.tool=avrdude 356 | leonardo.bootloader.low_fuses=0xff 357 | leonardo.bootloader.high_fuses=0xd8 358 | leonardo.bootloader.extended_fuses=0xcb 359 | leonardo.bootloader.file=caterina/Caterina-Leonardo.hex 360 | leonardo.bootloader.unlock_bits=0x3F 361 | leonardo.bootloader.lock_bits=0x2F 362 | 363 | leonardo.build.mcu=atmega32u4 364 | leonardo.build.f_cpu=16000000L 365 | leonardo.build.vid=0x2341 366 | leonardo.build.pid=0x8036 367 | leonardo.build.usb_product="Arduino Leonardo" 368 | leonardo.build.board=AVR_LEONARDO 369 | leonardo.build.core=arduino 370 | leonardo.build.variant=leonardo 371 | 372 | # DEBUG OUTPUT 373 | leonardo.menu.debug.None=None 374 | leonardo.menu.debug.None.build.debug_output= 375 | leonardo.menu.debug.Serial=Serial 376 | leonardo.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 377 | leonardo.menu.debug.Serial1=Serial1 378 | leonardo.menu.debug.Serial1.build.debug_output=-DDEBUG_OUT=Serial1 379 | 380 | leonardo.build.extra_flags={build.usb_flags} {build.debug_output} 381 | 382 | ############################################################## 383 | 384 | leonardoeth.name=Arduino Leonardo ETH 385 | leonardoeth.vid.0=0x2a03 386 | leonardoeth.pid.0=0x0040 387 | leonardoeth.vid.1=0x2a03 388 | leonardoeth.pid.1=0x8040 389 | 390 | leonardoeth.upload.tool=avrdude 391 | leonardoeth.upload.protocol=avr109 392 | leonardoeth.upload.maximum_size=28672 393 | leonardoeth.upload.maximum_data_size=2560 394 | leonardoeth.upload.speed=57600 395 | leonardoeth.upload.disable_flushing=true 396 | leonardoeth.upload.use_1200bps_touch=true 397 | leonardoeth.upload.wait_for_upload_port=true 398 | 399 | leonardoeth.bootloader.tool=avrdude 400 | leonardoeth.bootloader.low_fuses=0xff 401 | leonardoeth.bootloader.high_fuses=0xd8 402 | leonardoeth.bootloader.extended_fuses=0xcb 403 | leonardoeth.bootloader.file=caterina/Caterina-LeonardoEthernet.hex 404 | leonardoeth.bootloader.unlock_bits=0x3F 405 | leonardoeth.bootloader.lock_bits=0x2F 406 | 407 | leonardoeth.build.mcu=atmega32u4 408 | leonardoeth.build.f_cpu=16000000L 409 | leonardoeth.build.vid=0x2a03 410 | leonardoeth.build.pid=0x8040 411 | leonardoeth.build.usb_product="Arduino Leonardo ETH" 412 | leonardoeth.build.board=AVR_LEONARDO_ETH 413 | leonardoeth.build.core=arduino 414 | leonardoeth.build.variant=leonardo 415 | 416 | # DEBUG OUTPUT 417 | leonardoeth.menu.debug.None=None 418 | leonardoeth.menu.debug.None.build.debug_output= 419 | leonardoeth.menu.debug.Serial=Serial 420 | leonardoeth.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 421 | leonardoeth.menu.debug.Serial1=Serial1 422 | leonardoeth.menu.debug.Serial1.build.debug_output=-DDEBUG_OUT=Serial1 423 | 424 | leonardoeth.build.extra_flags={build.usb_flags} {build.debug_output} 425 | 426 | ############################################################## 427 | 428 | micro.name=Arduino/Genuino Micro 429 | 430 | micro.vid.0=0x2341 431 | micro.pid.0=0x0037 432 | micro.vid.1=0x2341 433 | micro.pid.1=0x8037 434 | micro.vid.2=0x2A03 435 | micro.pid.2=0x0037 436 | micro.vid.3=0x2A03 437 | micro.pid.3=0x8037 438 | 439 | micro.vid.4=0x2341 440 | micro.pid.4=0x0237 441 | # If the board is a 2341:0237 use 2341:8237 for build and set 442 | # other parameters as well 443 | micro.vid.4.build.vid=0x2341 444 | micro.vid.4.build.pid=0x8237 445 | micro.vid.4.build.usb_product="Genuino Micro" 446 | micro.vid.4.bootloader.file=caterina/Caterina-Genuino-Micro.hex 447 | 448 | micro.vid.5=0x2341 449 | micro.pid.5=0x8237 450 | # If the board is a 2341:8237 use 2341:8237 for build and set 451 | # other paramters as well 452 | micro.vid.5.build.vid=0x2341 453 | micro.vid.5.build.pid=0x8237 454 | micro.vid.5.build.usb_product="Genuino Micro" 455 | micro.vid.5.bootloader.file=caterina/Caterina-Genuino-Micro.hex 456 | 457 | micro.upload.tool=avrdude 458 | micro.upload.protocol=avr109 459 | micro.upload.maximum_size=28672 460 | micro.upload.maximum_data_size=2560 461 | micro.upload.speed=57600 462 | micro.upload.disable_flushing=true 463 | micro.upload.use_1200bps_touch=true 464 | micro.upload.wait_for_upload_port=true 465 | 466 | micro.bootloader.tool=avrdude 467 | micro.bootloader.low_fuses=0xff 468 | micro.bootloader.high_fuses=0xd8 469 | micro.bootloader.extended_fuses=0xcb 470 | micro.bootloader.file=caterina/Caterina-Micro.hex 471 | micro.bootloader.unlock_bits=0x3F 472 | micro.bootloader.lock_bits=0x2F 473 | 474 | micro.build.mcu=atmega32u4 475 | micro.build.f_cpu=16000000L 476 | micro.build.vid=0x2341 477 | micro.build.pid=0x8037 478 | micro.build.usb_product="Arduino Micro" 479 | micro.build.board=AVR_MICRO 480 | micro.build.core=arduino 481 | micro.build.variant=micro 482 | 483 | # DEBUG OUTPUT 484 | micro.menu.debug.None=None 485 | micro.menu.debug.None.build.debug_output= 486 | micro.menu.debug.Serial=Serial 487 | micro.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 488 | micro.menu.debug.Serial1=Serial1 489 | micro.menu.debug.Serial1.build.debug_output=-DDEBUG_OUT=Serial1 490 | 491 | micro.build.extra_flags={build.usb_flags} {build.debug_output} 492 | 493 | ############################################################## 494 | 495 | esplora.name=Arduino Esplora 496 | esplora.vid.0=0x2341 497 | esplora.pid.0=0x003C 498 | esplora.vid.1=0x2341 499 | esplora.pid.1=0x803C 500 | esplora.vid.2=0x2A03 501 | esplora.pid.2=0x003C 502 | esplora.vid.3=0x2A03 503 | esplora.pid.3=0x803C 504 | 505 | esplora.upload.tool=avrdude 506 | esplora.upload.protocol=avr109 507 | esplora.upload.maximum_size=28672 508 | esplora.upload.maximum_data_size=2560 509 | esplora.upload.speed=57600 510 | esplora.upload.disable_flushing=true 511 | esplora.upload.use_1200bps_touch=true 512 | esplora.upload.wait_for_upload_port=true 513 | 514 | esplora.bootloader.tool=avrdude 515 | esplora.bootloader.low_fuses=0xff 516 | esplora.bootloader.high_fuses=0xd8 517 | esplora.bootloader.extended_fuses=0xcb 518 | esplora.bootloader.file=caterina/Caterina-Esplora.hex 519 | esplora.bootloader.unlock_bits=0x3F 520 | esplora.bootloader.lock_bits=0x2F 521 | 522 | esplora.build.mcu=atmega32u4 523 | esplora.build.f_cpu=16000000L 524 | esplora.build.vid=0x2341 525 | esplora.build.pid=0x803c 526 | esplora.build.usb_product="Arduino Esplora" 527 | esplora.build.board=AVR_ESPLORA 528 | esplora.build.core=arduino 529 | esplora.build.variant=leonardo 530 | esplora.build.extra_flags={build.usb_flags} 531 | 532 | # DEBUG OUTPUT 533 | esplora.menu.debug.None=None 534 | esplora.menu.debug.None.build.debug_output= 535 | esplora.menu.debug.Serial=Serial 536 | esplora.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 537 | esplora.menu.debug.Serial1=Serial1 538 | esplora.menu.debug.Serial1.build.debug_output=-DDEBUG_OUT=Serial1 539 | 540 | esplora.build.extra_flags={build.usb_flags} {build.debug_output} 541 | 542 | ############################################################## 543 | 544 | mini.name=Arduino Mini 545 | 546 | mini.upload.tool=avrdude 547 | mini.upload.protocol=arduino 548 | 549 | mini.bootloader.tool=avrdude 550 | mini.bootloader.low_fuses=0xff 551 | mini.bootloader.unlock_bits=0x3F 552 | mini.bootloader.lock_bits=0x0F 553 | 554 | mini.build.f_cpu=16000000L 555 | mini.build.board=AVR_MINI 556 | mini.build.core=arduino 557 | mini.build.variant=eightanaloginputs 558 | 559 | ## Arduino Mini w/ ATmega328P 560 | ## -------------------------- 561 | mini.menu.cpu.atmega328=ATmega328P 562 | 563 | mini.menu.cpu.atmega328.upload.maximum_size=28672 564 | mini.menu.cpu.atmega328.upload.maximum_data_size=2048 565 | mini.menu.cpu.atmega328.upload.speed=115200 566 | 567 | mini.menu.cpu.atmega328.bootloader.high_fuses=0xd8 568 | mini.menu.cpu.atmega328.bootloader.extended_fuses=0xFD 569 | mini.menu.cpu.atmega328.bootloader.file=optiboot/optiboot_atmega328-Mini.hex 570 | 571 | mini.menu.cpu.atmega328.build.mcu=atmega328p 572 | 573 | ## Arduino Mini w/ ATmega168 574 | ## ------------------------- 575 | mini.menu.cpu.atmega168=ATmega168 576 | 577 | mini.menu.cpu.atmega168.upload.maximum_size=14336 578 | mini.menu.cpu.atmega168.upload.maximum_data_size=1024 579 | mini.menu.cpu.atmega168.upload.speed=19200 580 | 581 | mini.menu.cpu.atmega168.bootloader.high_fuses=0xdd 582 | mini.menu.cpu.atmega168.bootloader.extended_fuses=0xF8 583 | mini.menu.cpu.atmega168.bootloader.file=atmega/ATmegaBOOT_168_ng.hex 584 | 585 | mini.menu.cpu.atmega168.build.mcu=atmega168 586 | 587 | # DEBUG OUTPUT 588 | mini.menu.debug.None=None 589 | mini.menu.debug.None.build.debug_output= 590 | mini.menu.debug.Serial=Serial 591 | mini.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 592 | 593 | mini.build.extra_flags={build.debug_output} 594 | 595 | ############################################################## 596 | 597 | ethernet.name=Arduino Ethernet 598 | 599 | ethernet.upload.tool=avrdude 600 | ethernet.upload.protocol=arduino 601 | ethernet.upload.maximum_size=32256 602 | ethernet.upload.maximum_data_size=2048 603 | ethernet.upload.speed=115200 604 | 605 | ethernet.bootloader.tool=avrdude 606 | ethernet.bootloader.low_fuses=0xff 607 | ethernet.bootloader.high_fuses=0xde 608 | ethernet.bootloader.extended_fuses=0xFD 609 | ethernet.bootloader.file=optiboot/optiboot_atmega328.hex 610 | ethernet.bootloader.unlock_bits=0x3F 611 | ethernet.bootloader.lock_bits=0x0F 612 | 613 | ethernet.build.variant=ethernet 614 | ethernet.build.mcu=atmega328p 615 | ethernet.build.f_cpu=16000000L 616 | ethernet.build.board=AVR_ETHERNET 617 | ethernet.build.core=arduino 618 | 619 | # DEBUG OUTPUT 620 | ethernet.menu.debug.None=None 621 | ethernet.menu.debug.None.build.debug_output= 622 | ethernet.menu.debug.Serial=Serial 623 | ethernet.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 624 | 625 | ethernet.build.extra_flags={build.debug_output} 626 | 627 | ############################################################## 628 | 629 | fio.name=Arduino Fio 630 | 631 | fio.upload.tool=avrdude 632 | fio.upload.protocol=arduino 633 | fio.upload.maximum_size=30720 634 | fio.upload.maximum_data_size=2048 635 | fio.upload.speed=57600 636 | 637 | fio.bootloader.tool=avrdude 638 | fio.bootloader.low_fuses=0xFF 639 | fio.bootloader.high_fuses=0xDA 640 | fio.bootloader.extended_fuses=0xFD 641 | fio.bootloader.file=atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex 642 | fio.bootloader.unlock_bits=0x3F 643 | fio.bootloader.lock_bits=0x0F 644 | 645 | fio.build.mcu=atmega328p 646 | fio.build.f_cpu=8000000L 647 | fio.build.board=AVR_FIO 648 | fio.build.core=arduino 649 | fio.build.variant=eightanaloginputs 650 | 651 | # DEBUG OUTPUT 652 | fio.menu.debug.None=None 653 | fio.menu.debug.None.build.debug_output= 654 | fio.menu.debug.Serial=Serial 655 | fio.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 656 | 657 | fio.build.extra_flags={build.debug_output} 658 | 659 | ############################################################## 660 | 661 | bt.name=Arduino BT 662 | 663 | bt.upload.tool=avrdude 664 | bt.upload.protocol=arduino 665 | bt.upload.speed=19200 666 | bt.upload.disable_flushing=true 667 | 668 | bt.bootloader.tool=avrdude 669 | bt.bootloader.low_fuses=0xff 670 | bt.bootloader.unlock_bits=0x3F 671 | bt.bootloader.lock_bits=0x0F 672 | 673 | bt.build.f_cpu=16000000L 674 | bt.build.board=AVR_BT 675 | bt.build.core=arduino 676 | bt.build.variant=eightanaloginputs 677 | 678 | ## Arduino BT w/ ATmega328P 679 | ## ------------------------ 680 | bt.menu.cpu.atmega328=ATmega328P 681 | bt.menu.cpu.atmega328.upload.maximum_size=28672 682 | bt.menu.cpu.atmega328.upload.maximum_data_size=2048 683 | 684 | bt.menu.cpu.atmega328.bootloader.high_fuses=0xd8 685 | bt.menu.cpu.atmega328.bootloader.extended_fuses=0xFD 686 | bt.menu.cpu.atmega328.bootloader.file=bt/ATmegaBOOT_168_atmega328_bt.hex 687 | 688 | bt.menu.cpu.atmega328.build.mcu=atmega328p 689 | 690 | ## Arduino BT w/ ATmega168 691 | ## ----------------------- 692 | bt.menu.cpu.atmega168=ATmega168 693 | bt.menu.cpu.atmega168.upload.maximum_size=14336 694 | bt.menu.cpu.atmega168.upload.maximum_data_size=1024 695 | 696 | bt.menu.cpu.atmega168.bootloader.high_fuses=0xdd 697 | bt.menu.cpu.atmega168.bootloader.extended_fuses=0xF8 698 | bt.menu.cpu.atmega168.bootloader.file=bt/ATmegaBOOT_168.hex 699 | 700 | bt.menu.cpu.atmega168.build.mcu=atmega168 701 | 702 | 703 | # DEBUG OUTPUT 704 | bt.menu.debug.None=None 705 | bt.menu.debug.None.build.debug_output= 706 | bt.menu.debug.Serial=Serial 707 | bt.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 708 | 709 | bt.build.extra_flags={build.debug_output} 710 | 711 | ############################################################## 712 | 713 | LilyPadUSB.name=LilyPad Arduino USB 714 | LilyPadUSB.vid.0=0x1B4F 715 | LilyPadUSB.pid.0=0x9207 716 | LilyPadUSB.vid.1=0x1B4F 717 | LilyPadUSB.pid.1=0x9208 718 | 719 | LilyPadUSB.upload.tool=avrdude 720 | LilyPadUSB.upload.protocol=avr109 721 | LilyPadUSB.upload.maximum_size=28672 722 | LilyPadUSB.upload.maximum_data_size=2560 723 | LilyPadUSB.upload.speed=57600 724 | LilyPadUSB.upload.disable_flushing=true 725 | LilyPadUSB.upload.use_1200bps_touch=true 726 | LilyPadUSB.upload.wait_for_upload_port=true 727 | 728 | LilyPadUSB.bootloader.tool=avrdude 729 | LilyPadUSB.bootloader.low_fuses=0xff 730 | LilyPadUSB.bootloader.high_fuses=0xd8 731 | LilyPadUSB.bootloader.extended_fuses=0xce 732 | LilyPadUSB.bootloader.file=caterina-LilyPadUSB/Caterina-LilyPadUSB.hex 733 | LilyPadUSB.bootloader.unlock_bits=0x3F 734 | LilyPadUSB.bootloader.lock_bits=0x2F 735 | 736 | LilyPadUSB.build.mcu=atmega32u4 737 | LilyPadUSB.build.f_cpu=8000000L 738 | LilyPadUSB.build.vid=0x1B4F 739 | LilyPadUSB.build.pid=0x9208 740 | LilyPadUSB.build.usb_product="LilyPad USB" 741 | LilyPadUSB.build.board=AVR_LILYPAD_USB 742 | LilyPadUSB.build.core=arduino 743 | LilyPadUSB.build.variant=leonardo 744 | 745 | # DEBUG OUTPUT 746 | LilyPadUSB.menu.debug.None=None 747 | LilyPadUSB.menu.debug.None.build.debug_output= 748 | LilyPadUSB.menu.debug.Serial=Serial 749 | LilyPadUSB.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 750 | LilyPadUSB.menu.debug.Serial1=Serial1 751 | LilyPadUSB.menu.debug.Serial1.build.debug_output=-DDEBUG_OUT=Serial1 752 | 753 | LilyPadUSB.build.extra_flags={build.usb_flags} {build.debug_output} 754 | 755 | ############################################################## 756 | 757 | lilypad.name=LilyPad Arduino 758 | 759 | lilypad.upload.tool=avrdude 760 | lilypad.upload.protocol=arduino 761 | 762 | lilypad.bootloader.tool=avrdude 763 | lilypad.bootloader.unlock_bits=0x3F 764 | lilypad.bootloader.lock_bits=0x0F 765 | 766 | lilypad.build.f_cpu=8000000L 767 | lilypad.build.board=AVR_LILYPAD 768 | lilypad.build.core=arduino 769 | lilypad.build.variant=standard 770 | 771 | ## LilyPad Arduino w/ ATmega328P 772 | ## ----------------------------- 773 | lilypad.menu.cpu.atmega328=ATmega328P 774 | 775 | lilypad.menu.cpu.atmega328.upload.maximum_size=30720 776 | lilypad.menu.cpu.atmega328.upload.maximum_data_size=2048 777 | lilypad.menu.cpu.atmega328.upload.speed=57600 778 | 779 | lilypad.menu.cpu.atmega328.bootloader.low_fuses=0xFF 780 | lilypad.menu.cpu.atmega328.bootloader.high_fuses=0xDA 781 | lilypad.menu.cpu.atmega328.bootloader.extended_fuses=0xFD 782 | lilypad.menu.cpu.atmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex 783 | 784 | lilypad.menu.cpu.atmega328.build.mcu=atmega328p 785 | 786 | ## LilyPad Arduino w/ ATmega168 787 | ## ---------------------------- 788 | lilypad.menu.cpu.atmega168=ATmega168 789 | 790 | lilypad.menu.cpu.atmega168.upload.maximum_size=14336 791 | lilypad.menu.cpu.atmega168.upload.maximum_data_size=1024 792 | lilypad.menu.cpu.atmega168.upload.speed=19200 793 | 794 | lilypad.menu.cpu.atmega168.bootloader.low_fuses=0xe2 795 | lilypad.menu.cpu.atmega168.bootloader.high_fuses=0xdd 796 | lilypad.menu.cpu.atmega168.bootloader.extended_fuses=0xF8 797 | lilypad.menu.cpu.atmega168.bootloader.file=lilypad/LilyPadBOOT_168.hex 798 | 799 | lilypad.menu.cpu.atmega168.build.mcu=atmega168 800 | 801 | # DEBUG OUTPUT 802 | lilypad.menu.debug.None=None 803 | lilypad.menu.debug.None.build.debug_output= 804 | lilypad.menu.debug.Serial=Serial 805 | lilypad.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 806 | 807 | lilypad.build.extra_flags={build.debug_output} 808 | 809 | ############################################################## 810 | 811 | pro.name=Arduino Pro or Pro Mini 812 | 813 | pro.upload.tool=avrdude 814 | pro.upload.protocol=arduino 815 | 816 | pro.bootloader.tool=avrdude 817 | pro.bootloader.unlock_bits=0x3F 818 | pro.bootloader.lock_bits=0x0F 819 | 820 | pro.build.board=AVR_PRO 821 | pro.build.core=arduino 822 | pro.build.variant=eightanaloginputs 823 | 824 | ## Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328P 825 | ## -------------------------------------------------- 826 | pro.menu.cpu.16MHzatmega328=ATmega328P (5V, 16 MHz) 827 | 828 | pro.menu.cpu.16MHzatmega328.upload.maximum_size=30720 829 | pro.menu.cpu.16MHzatmega328.upload.maximum_data_size=2048 830 | pro.menu.cpu.16MHzatmega328.upload.speed=57600 831 | 832 | pro.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF 833 | pro.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA 834 | pro.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0xFD 835 | pro.menu.cpu.16MHzatmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex 836 | 837 | pro.menu.cpu.16MHzatmega328.build.mcu=atmega328p 838 | pro.menu.cpu.16MHzatmega328.build.f_cpu=16000000L 839 | 840 | ## Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328P 841 | ## --------------------------------------------------- 842 | pro.menu.cpu.8MHzatmega328=ATmega328P (3.3V, 8 MHz) 843 | 844 | pro.menu.cpu.8MHzatmega328.upload.maximum_size=30720 845 | pro.menu.cpu.8MHzatmega328.upload.maximum_data_size=2048 846 | pro.menu.cpu.8MHzatmega328.upload.speed=57600 847 | 848 | pro.menu.cpu.8MHzatmega328.bootloader.low_fuses=0xFF 849 | pro.menu.cpu.8MHzatmega328.bootloader.high_fuses=0xDA 850 | pro.menu.cpu.8MHzatmega328.bootloader.extended_fuses=0xFD 851 | pro.menu.cpu.8MHzatmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex 852 | 853 | pro.menu.cpu.8MHzatmega328.build.mcu=atmega328p 854 | pro.menu.cpu.8MHzatmega328.build.f_cpu=8000000L 855 | 856 | ## Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega168 857 | ## ------------------------------------------------- 858 | pro.menu.cpu.16MHzatmega168=ATmega168 (5V, 16 MHz) 859 | 860 | pro.menu.cpu.16MHzatmega168.upload.maximum_size=14336 861 | pro.menu.cpu.16MHzatmega168.upload.maximum_data_size=1024 862 | pro.menu.cpu.16MHzatmega168.upload.speed=19200 863 | 864 | pro.menu.cpu.16MHzatmega168.bootloader.low_fuses=0xff 865 | pro.menu.cpu.16MHzatmega168.bootloader.high_fuses=0xdd 866 | pro.menu.cpu.16MHzatmega168.bootloader.extended_fuses=0xF8 867 | pro.menu.cpu.16MHzatmega168.bootloader.file=atmega/ATmegaBOOT_168_diecimila.hex 868 | 869 | pro.menu.cpu.16MHzatmega168.build.mcu=atmega168 870 | pro.menu.cpu.16MHzatmega168.build.f_cpu=16000000L 871 | 872 | ## Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega168 873 | ## -------------------------------------------------- 874 | pro.menu.cpu.8MHzatmega168=ATmega168 (3.3V, 8 MHz) 875 | 876 | pro.menu.cpu.8MHzatmega168.upload.maximum_size=14336 877 | pro.menu.cpu.8MHzatmega168.upload.maximum_data_size=1024 878 | pro.menu.cpu.8MHzatmega168.upload.speed=19200 879 | 880 | pro.menu.cpu.8MHzatmega168.bootloader.low_fuses=0xc6 881 | pro.menu.cpu.8MHzatmega168.bootloader.high_fuses=0xdd 882 | pro.menu.cpu.8MHzatmega168.bootloader.extended_fuses=0xF8 883 | pro.menu.cpu.8MHzatmega168.bootloader.file=atmega/ATmegaBOOT_168_pro_8MHz.hex 884 | 885 | pro.menu.cpu.8MHzatmega168.build.mcu=atmega168 886 | pro.menu.cpu.8MHzatmega168.build.f_cpu=8000000L 887 | 888 | # DEBUG OUTPUT 889 | pro.menu.debug.None=None 890 | pro.menu.debug.None.build.debug_output= 891 | pro.menu.debug.Serial=Serial 892 | pro.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 893 | 894 | pro.build.extra_flags={build.debug_output} 895 | 896 | ############################################################## 897 | 898 | atmegang.name=Arduino NG or older 899 | 900 | atmegang.upload.tool=avrdude 901 | atmegang.upload.protocol=arduino 902 | atmegang.upload.speed=19200 903 | 904 | atmegang.bootloader.tool=avrdude 905 | atmegang.bootloader.unlock_bits=0x3F 906 | atmegang.bootloader.lock_bits=0x0F 907 | 908 | atmegang.build.mcu=atmegang 909 | atmegang.build.f_cpu=16000000L 910 | atmegang.build.board=AVR_NG 911 | atmegang.build.core=arduino 912 | atmegang.build.variant=standard 913 | 914 | ## Arduino NG or older w/ ATmega168 915 | ## -------------------------------- 916 | atmegang.menu.cpu.atmega168=ATmega168 917 | 918 | atmegang.menu.cpu.atmega168.upload.maximum_size=14336 919 | atmegang.menu.cpu.atmega168.upload.maximum_data_size=1024 920 | 921 | atmegang.menu.cpu.atmega168.bootloader.low_fuses=0xff 922 | atmegang.menu.cpu.atmega168.bootloader.high_fuses=0xdd 923 | atmegang.menu.cpu.atmega168.bootloader.extended_fuses=0xF8 924 | atmegang.menu.cpu.atmega168.bootloader.file=atmega/ATmegaBOOT_168_ng.hex 925 | 926 | atmegang.menu.cpu.atmega168.build.mcu=atmega168 927 | 928 | ## Arduino NG or older w/ ATmega8 929 | ## ------------------------------ 930 | atmegang.menu.cpu.atmega8=ATmega8 931 | 932 | atmegang.menu.cpu.atmega8.upload.maximum_size=7168 933 | atmegang.menu.cpu.atmega8.upload.maximum_data_size=1024 934 | 935 | atmegang.menu.cpu.atmega8.bootloader.low_fuses=0xdf 936 | atmegang.menu.cpu.atmega8.bootloader.high_fuses=0xca 937 | atmegang.menu.cpu.atmega8.bootloader.extended_fuses= 938 | atmegang.menu.cpu.atmega8.bootloader.file=atmega8/ATmegaBOOT-prod-firmware-2009-11-07.hex 939 | 940 | atmegang.menu.cpu.atmega8.build.mcu=atmega8 941 | 942 | # DEBUG OUTPUT 943 | atmegang.menu.debug.None=None 944 | atmegang.menu.debug.None.build.debug_output= 945 | atmegang.menu.debug.Serial=Serial 946 | atmegang.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 947 | 948 | atmegang.build.extra_flags={build.debug_output} 949 | 950 | ############################################################## 951 | 952 | robotControl.name=Arduino Robot Control 953 | robotControl.vid.0=0x2341 954 | robotControl.pid.0=0x0038 955 | robotControl.vid.1=0x2341 956 | robotControl.pid.1=0x8038 957 | robotControl.vid.2=0x2A03 958 | robotControl.pid.2=0x0038 959 | robotControl.vid.3=0x2A03 960 | robotControl.pid.3=0x8038 961 | 962 | robotControl.upload.tool=avrdude 963 | robotControl.upload.protocol=avr109 964 | robotControl.upload.maximum_size=28672 965 | robotControl.upload.maximum_data_size=2560 966 | robotControl.upload.speed=57600 967 | robotControl.upload.disable_flushing=true 968 | robotControl.upload.use_1200bps_touch=true 969 | robotControl.upload.wait_for_upload_port=true 970 | 971 | robotControl.bootloader.tool=avrdude 972 | robotControl.bootloader.low_fuses=0xff 973 | robotControl.bootloader.high_fuses=0xd8 974 | robotControl.bootloader.extended_fuses=0xcb 975 | robotControl.bootloader.file=caterina-Arduino_Robot/Caterina-Robot-Control.hex 976 | robotControl.bootloader.unlock_bits=0x3F 977 | robotControl.bootloader.lock_bits=0x2F 978 | 979 | robotControl.build.mcu=atmega32u4 980 | robotControl.build.f_cpu=16000000L 981 | robotControl.build.vid=0x2341 982 | robotControl.build.pid=0x8038 983 | robotControl.build.usb_product="Robot Control" 984 | robotControl.build.board=AVR_ROBOT_CONTROL 985 | robotControl.build.core=arduino 986 | robotControl.build.variant=robot_control 987 | 988 | # DEBUG OUTPUT 989 | robotControl.menu.debug.None=None 990 | robotControl.menu.debug.None.build.debug_output= 991 | robotControl.menu.debug.Serial=Serial 992 | robotControl.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 993 | robotControl.menu.debug.Serial1=Serial1 994 | robotControl.menu.debug.Serial1.build.debug_output=-DDEBUG_OUT=Serial1 995 | 996 | robotControl.build.extra_flags={build.usb_flags} {build.debug_output} 997 | 998 | ############################################################## 999 | 1000 | robotMotor.name=Arduino Robot Motor 1001 | robotMotor.vid.0=0x2341 1002 | robotMotor.pid.0=0x0039 1003 | robotMotor.vid.1=0x2341 1004 | robotMotor.pid.1=0x8039 1005 | robotMotor.vid.2=0x2A03 1006 | robotMotor.pid.2=0x0039 1007 | robotMotor.vid.3=0x2A03 1008 | robotMotor.pid.3=0x8039 1009 | 1010 | robotMotor.upload.tool=avrdude 1011 | robotMotor.upload.protocol=avr109 1012 | robotMotor.upload.maximum_size=28672 1013 | robotMotor.upload.maximum_data_size=2560 1014 | robotMotor.upload.speed=57600 1015 | robotMotor.upload.disable_flushing=true 1016 | robotMotor.upload.use_1200bps_touch=true 1017 | robotMotor.upload.wait_for_upload_port=true 1018 | 1019 | robotMotor.bootloader.tool=avrdude 1020 | robotMotor.bootloader.low_fuses=0xff 1021 | robotMotor.bootloader.high_fuses=0xd8 1022 | robotMotor.bootloader.extended_fuses=0xcb 1023 | robotMotor.bootloader.file=caterina-Arduino_Robot/Caterina-Robot-Motor.hex 1024 | robotMotor.bootloader.unlock_bits=0x3F 1025 | robotMotor.bootloader.lock_bits=0x2F 1026 | 1027 | robotMotor.build.mcu=atmega32u4 1028 | robotMotor.build.f_cpu=16000000L 1029 | robotMotor.build.vid=0x2341 1030 | robotMotor.build.pid=0x8039 1031 | robotMotor.build.usb_product="Robot Motor" 1032 | robotMotor.build.board=AVR_ROBOT_MOTOR 1033 | robotMotor.build.core=arduino 1034 | robotMotor.build.variant=robot_motor 1035 | 1036 | # DEBUG OUTPUT 1037 | robotMotor.menu.debug.None=None 1038 | robotMotor.menu.debug.None.build.debug_output= 1039 | robotMotor.menu.debug.Serial=Serial 1040 | robotMotor.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 1041 | robotMotor.menu.debug.Serial1=Serial1 1042 | robotMotor.menu.debug.Serial1.build.debug_output=-DDEBUG_OUT=Serial1 1043 | 1044 | robotMotor.build.extra_flags={build.usb_flags} {build.debug_output} 1045 | 1046 | ############################################################## 1047 | 1048 | gemma.vid.0=0x2341 1049 | gemma.pid.0=0x0c9f 1050 | 1051 | gemma.name=Arduino Gemma 1052 | 1053 | gemma.bootloader.low_fuses=0xF1 1054 | gemma.bootloader.high_fuses=0xD5 1055 | gemma.bootloader.extended_fuses=0xFE 1056 | gemma.bootloader.tool=avrdude 1057 | gemma.bootloader.lock_bits= 1058 | gemma.bootloader.unlock_bits= 1059 | gemma.bootloader.file=gemma/gemma_v1.hex 1060 | 1061 | gemma.build.mcu=attiny85 1062 | gemma.build.f_cpu=8000000L 1063 | gemma.build.core=arduino 1064 | gemma.build.variant=gemma 1065 | gemma.build.board=AVR_GEMMA 1066 | 1067 | gemma.upload.tool=avrdude 1068 | gemma.upload.maximum_size=5310 1069 | 1070 | # No UART for debugging 1071 | 1072 | ############################################################## 1073 | 1074 | # Adafruit Circuit Playground 32u4 w/Caterina Configuration 1075 | circuitplay32u4cat.name=Adafruit Circuit Playground 1076 | circuitplay32u4cat.bootloader.low_fuses=0xff 1077 | circuitplay32u4cat.bootloader.high_fuses=0xd8 1078 | circuitplay32u4cat.bootloader.extended_fuses=0xcb 1079 | circuitplay32u4cat.bootloader.file=caterina/Caterina-Circuitplay32u4.hex 1080 | circuitplay32u4cat.bootloader.unlock_bits=0x3F 1081 | circuitplay32u4cat.bootloader.lock_bits=0x2F 1082 | circuitplay32u4cat.bootloader.tool=avrdude 1083 | circuitplay32u4cat.build.mcu=atmega32u4 1084 | circuitplay32u4cat.build.f_cpu=8000000L 1085 | circuitplay32u4cat.build.vid=0x239A 1086 | circuitplay32u4cat.build.pid=0x8011 1087 | circuitplay32u4cat.build.core=arduino 1088 | circuitplay32u4cat.build.variant=circuitplay32u4 1089 | circuitplay32u4cat.build.board=AVR_CIRCUITPLAY 1090 | circuitplay32u4cat.build.usb_product="Circuit Playground" 1091 | circuitplay32u4cat.build.usb_manufacturer="Adafruit" 1092 | # circuitplay32u4cat.build.extra_flags={build.usb_flags} 1093 | circuitplay32u4cat.upload.protocol=avr109 1094 | circuitplay32u4cat.upload.maximum_size=28672 1095 | circuitplay32u4cat.upload.speed=57600 1096 | circuitplay32u4cat.upload.disable_flushing=true 1097 | circuitplay32u4cat.upload.use_1200bps_touch=true 1098 | circuitplay32u4cat.upload.wait_for_upload_port=true 1099 | circuitplay32u4cat.upload.tool=avrdude 1100 | circuitplay32u4cat.vid.0=0x239A 1101 | circuitplay32u4cat.pid.0=0x8011 1102 | 1103 | # DEBUG OUTPUT 1104 | circuitplay32u4cat.menu.debug.None=None 1105 | circuitplay32u4cat.menu.debug.None.build.debug_output= 1106 | circuitplay32u4cat.menu.debug.Serial=Serial 1107 | circuitplay32u4cat.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 1108 | circuitplay32u4cat.menu.debug.Serial1=Serial1 1109 | circuitplay32u4cat.menu.debug.Serial1.build.debug_output=-DDEBUG_OUT=Serial1 1110 | 1111 | circuitplay32u4cat.build.extra_flags={build.usb_flags} {build.debug_output} 1112 | 1113 | ############################################################## 1114 | 1115 | yunmini.name=Arduino Yún Mini 1116 | yunmini.upload.via_ssh=true 1117 | 1118 | yunmini.vid.0=0x2a03 1119 | yunmini.pid.0=0x0050 1120 | yunmini.vid.1=0x2a03 1121 | yunmini.pid.1=0x8050 1122 | 1123 | yunmini.upload.tool=avrdude 1124 | yunmini.upload.protocol=avr109 1125 | yunmini.upload.maximum_size=28672 1126 | yunmini.upload.maximum_data_size=2560 1127 | yunmini.upload.speed=57600 1128 | yunmini.upload.disable_flushing=true 1129 | yunmini.upload.use_1200bps_touch=true 1130 | yunmini.upload.wait_for_upload_port=true 1131 | 1132 | yunmini.bootloader.tool=avrdude 1133 | yunmini.bootloader.low_fuses=0xff 1134 | yunmini.bootloader.high_fuses=0xd8 1135 | yunmini.bootloader.extended_fuses=0xfb 1136 | yunmini.bootloader.file=caterina/Caterina-Yunmini.hex 1137 | yunmini.bootloader.unlock_bits=0x3F 1138 | yunmini.bootloader.lock_bits=0x2F 1139 | 1140 | yunmini.build.mcu=atmega32u4 1141 | yunmini.build.f_cpu=16000000L 1142 | yunmini.build.vid=0x2a03 1143 | yunmini.build.pid=0x8050 1144 | yunmini.build.usb_product="Arduino Yún Mini" 1145 | yunmini.build.board=AVR_YUNMINI 1146 | yunmini.build.core=arduino 1147 | yunmini.build.variant=yun 1148 | 1149 | # DEBUG OUTPUT 1150 | yunmini.menu.debug.None=None 1151 | yunmini.menu.debug.None.build.debug_output= 1152 | yunmini.menu.debug.Serial=Serial 1153 | yunmini.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 1154 | yunmini.menu.debug.Serial1=Serial1 1155 | yunmini.menu.debug.Serial1.build.debug_output=-DDEBUG_OUT=Serial1 1156 | 1157 | yunmini.build.extra_flags={build.usb_flags} {build.debug_output} 1158 | 1159 | ############################################################## 1160 | 1161 | chiwawa.name=Arduino Industrial 101 1162 | chiwawa.upload.via_ssh=true 1163 | 1164 | chiwawa.vid.0=0x2a03 1165 | chiwawa.pid.0=0x0056 1166 | chiwawa.vid.1=0x2a03 1167 | chiwawa.pid.1=0x8056 1168 | 1169 | chiwawa.upload.tool=avrdude 1170 | chiwawa.upload.protocol=avr109 1171 | chiwawa.upload.maximum_size=28672 1172 | chiwawa.upload.maximum_data_size=2560 1173 | chiwawa.upload.speed=57600 1174 | chiwawa.upload.disable_flushing=true 1175 | chiwawa.upload.use_1200bps_touch=true 1176 | chiwawa.upload.wait_for_upload_port=true 1177 | 1178 | chiwawa.bootloader.tool=avrdude 1179 | chiwawa.bootloader.low_fuses=0xff 1180 | chiwawa.bootloader.high_fuses=0xd8 1181 | chiwawa.bootloader.extended_fuses=0xfb 1182 | chiwawa.bootloader.file=caterina/Caterina-Industrial101.hex 1183 | chiwawa.bootloader.unlock_bits=0x3F 1184 | chiwawa.bootloader.lock_bits=0x2F 1185 | 1186 | chiwawa.build.mcu=atmega32u4 1187 | chiwawa.build.f_cpu=16000000L 1188 | chiwawa.build.vid=0x2a03 1189 | chiwawa.build.pid=0x8056 1190 | chiwawa.build.usb_product="Arduino Industrial 101" 1191 | chiwawa.build.board=AVR_INDUSTRIAL101 1192 | chiwawa.build.core=arduino 1193 | chiwawa.build.variant=yun 1194 | 1195 | # DEBUG OUTPUT 1196 | chiwawa.menu.debug.None=None 1197 | chiwawa.menu.debug.None.build.debug_output= 1198 | chiwawa.menu.debug.Serial=Serial 1199 | chiwawa.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 1200 | chiwawa.menu.debug.Serial1=Serial1 1201 | chiwawa.menu.debug.Serial1.build.debug_output=-DDEBUG_OUT=Serial1 1202 | 1203 | chiwawa.build.extra_flags={build.usb_flags} {build.debug_output} 1204 | 1205 | ############################################################## 1206 | 1207 | one.name=Linino One 1208 | one.upload.via_ssh=true 1209 | 1210 | one.vid.0=0x2a03 1211 | one.pid.0=0x0001 1212 | one.vid.1=0x2a03 1213 | one.pid.1=0x8001 1214 | 1215 | one.upload.tool=avrdude 1216 | one.upload.protocol=avr109 1217 | one.upload.maximum_size=28672 1218 | one.upload.maximum_data_size=2560 1219 | one.upload.speed=57600 1220 | one.upload.disable_flushing=true 1221 | one.upload.use_1200bps_touch=true 1222 | one.upload.wait_for_upload_port=true 1223 | 1224 | one.bootloader.tool=avrdude 1225 | one.bootloader.low_fuses=0xff 1226 | one.bootloader.high_fuses=0xd8 1227 | one.bootloader.extended_fuses=0xfb 1228 | one.bootloader.file=caterina/Caterina-LininoOne.hex 1229 | one.bootloader.unlock_bits=0x3F 1230 | one.bootloader.lock_bits=0x2F 1231 | 1232 | one.build.mcu=atmega32u4 1233 | one.build.f_cpu=16000000L 1234 | one.build.vid=0x2a03 1235 | one.build.pid=0x8001 1236 | one.build.usb_product="Linino One" 1237 | one.build.board=AVR_LININO_ONE 1238 | one.build.core=arduino 1239 | one.build.variant=yun 1240 | 1241 | # DEBUG OUTPUT 1242 | one.menu.debug.None=None 1243 | one.menu.debug.None.build.debug_output= 1244 | one.menu.debug.Serial=Serial 1245 | one.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 1246 | one.menu.debug.Serial1=Serial1 1247 | one.menu.debug.Serial1.build.debug_output=-DDEBUG_OUT=Serial1 1248 | 1249 | one.build.extra_flags={build.usb_flags} {build.debug_output} 1250 | 1251 | ############################################################## 1252 | 1253 | unowifi.name=Arduino Uno WiFi 1254 | unowifi.vid.0=0x2A03 1255 | unowifi.pid.0=0x0057 1256 | 1257 | unowifi.upload.tool=avrdude 1258 | unowifi.upload.protocol=arduino 1259 | unowifi.upload.maximum_size=32256 1260 | unowifi.upload.maximum_data_size=2048 1261 | unowifi.upload.speed=115200 1262 | unowifi.upload.network.endpoint_upload=/pgm/upload 1263 | unowifi.upload.network.endpoint_sync=/pgm/sync 1264 | unowifi.upload.network.sync_return=204:SYNC 1265 | unowifi.upload.network.endpoint_reset=/log/reset 1266 | unowifi.upload.network.port=80 1267 | 1268 | unowifi.bootloader.tool=avrdude 1269 | unowifi.bootloader.low_fuses=0xFF 1270 | unowifi.bootloader.high_fuses=0xDE 1271 | unowifi.bootloader.extended_fuses=0x05 1272 | unowifi.bootloader.unlock_bits=0x3F 1273 | unowifi.bootloader.lock_bits=0x0F 1274 | unowifi.bootloader.file=optiboot/optiboot_atmega328.hex 1275 | 1276 | unowifi.build.mcu=atmega328p 1277 | unowifi.build.f_cpu=16000000L 1278 | unowifi.build.board=AVR_UNO_WIFI_DEV_ED 1279 | unowifi.build.core=arduino 1280 | unowifi.build.variant=standard 1281 | unowifi.build.esp_ch_uart_br=19200 1282 | 1283 | # DEBUG OUTPUT 1284 | unowifi.menu.debug.None=None 1285 | unowifi.menu.debug.None.build.debug_output= 1286 | unowifi.menu.debug.Serial=Serial 1287 | unowifi.menu.debug.Serial.build.debug_output=-DDEBUG_OUT=Serial 1288 | 1289 | unowifi.build.extra_flags=-DESP_CH_UART -DESP_CH_UART_BR={build.esp_ch_uart_br} {build.debug_output} 1290 | --------------------------------------------------------------------------------