1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00
Commit Graph

102 Commits

Author SHA1 Message Date
57b8713cab Moved libraries folder inside platform folder. Now libraries and examples are searched per board/platform 2012-01-04 15:14:51 +01:00
812265f1c0 Removed useless defaults in platform. Remove useless boards.txt/*.platform keys. Renamed some method to a more meaningful name 2012-01-02 17:39:43 +01:00
a417455d5a Platform is now implicit when referring to other packages, e.g. 'arduino:avr:arduino' becomes 'arduino:arduino' 2011-12-31 15:23:54 +01:00
770c8dfe35 Compiler class refactoring: toolchain path, build path and preferences are now class members. 2011-12-31 15:07:59 +01:00
abe41d805d platforms.txt recipes now have symbolic variables instead of indexes ({0},{1},etc.)
Recipes arguments are splitted with spaces instead of |. Single argument containing spaces
should be placed between "double quotes".
Refactored and formatted Compiler class, removed all unused code in comments.
2011-12-31 14:32:48 +01:00
1b3ae5fa63 Created second level in hardware folder: hardware/PACKAGE/PLATFORM/...
Made some helper class for files filtering.
platforms.txt now contains only one platform at a time.
Some cleanup in Compiler and AvrDudeUploader classes.
2011-12-30 15:46:04 +01:00
dc616601cd Various cleanups. Introduced class PreferencesMap to replace/simplify Map<String, String>. 2011-12-28 20:00:07 +01:00
e63c2d1429 Various post-merge refinements. 2011-12-22 13:07:39 +01:00
65c15d93eb Merge commit 'fcbbf8f4b4960bae1091c0cd9dc58b4a1885baf6' into platforms-b
Conflicts:
	app/src/processing/app/Base.java
	app/src/processing/app/debug/Compiler.java
	build/build.xml
	hardware/arduino/boards.txt
2011-12-22 00:35:33 +01:00
1a7fe19348 Removing per-board compilation speedup checks. 2011-12-16 18:49:43 -05:00
b0ae6e764d Compilation speed-up patch (only compile modify files). (Paul Stoffregen)
http://code.google.com/p/arduino/issues/detail?id=638
2011-12-16 18:20:22 -05:00
541a7b3575 UI i18n and the Japanese text catalog.
Wrapped the every string literals with _(...) function.
The _() function resides in "app/src/processing/app/I18n.java",
which translates the UI texts using "Resources_XX.properties" file
where XX is the locale code.

I provided the properties file for the ja (Japanese) locale.
I created this file using "xgettext" and "msgcat" commands.
"i18n_update.{py,sh}" files are the tool I used to do that.

Change in "app/build.xml" is to include the properties files
in jar file.
2011-12-07 01:45:13 +09:00
fa4ab4f6ab Adding --relax flag for linking of ATmega2560 code. (arducopter)
http://code.google.com/p/arduino/issues/detail?id=729
2011-12-05 17:21:05 -05:00
a2235e3cdc Showing compilation warnings when verbose output is enabled.
http://code.google.com/p/arduino/issues/detail?id=664
2011-10-01 17:05:21 -04:00
0b09a8edd9 Adding custom error messages for some 1.0 changes.
Also, changing the logic of the code a bit to correctly place errors even when substituting custom error messages.
2011-09-08 18:10:29 -04:00
d00f0949ed Renaming pins/ directory to the more generic variants/
http://code.google.com/p/arduino/issues/detail?id=588
2011-08-23 17:07:39 -04:00
42943b4de3 Added progressbar (from wiring) 2011-08-16 19:52:31 +02:00
dacfa86223 Addtional debuggin. Trying to find the pins compile issue. 2011-06-22 21:20:45 -06:00
43a11be3c9 Cleaned up some of the code. Need to focus getting the 1.0 code compilation changes double checked. 2011-06-18 23:44:32 -04:00
aa01546b55 Switched to a nonconflicting delimeter |. Compile process is working. Need to make sure that it matches 1.0 process exactly. 2011-06-17 22:12:21 -04:00
67c9dfc667 A bit of cleanup. Delimeter not figured out yet. 2011-06-17 00:54:58 -04:00
a57f35fb51 Fixed the missing line for messageformat args. 2011-06-16 23:17:08 -04:00
72c4404c6d Fixed compile process up to step 4. asyncExec cannot have null argmuments from the array. 2011-06-16 20:36:39 -04:00
b0556c2e74 Changed :: to , for platforms.txt. Also, changes to compile process to support execAsynchronously changed to Stringp[] 2011-06-15 23:04:38 -04:00
5e0ac9c720 Converting the step by step functions to integrate with standard Arduino execAsynchronously(array) 2011-06-13 22:14:28 -04:00
41600a22eb Added initial changes to the Compiler.java file. 2011-06-06 22:34:12 -04:00
19597b1d0b Factoring pin definitions out of the core.
That is, there's now a pins/ directory in a platform, which includes multiple directories, each of which has its own pins_arduino.h.  The boards.txt gets a new preferences, <BOARD>.build.pins, whose values is a sub-directory of the pins/ directory (possibly with a "platform:" prefix).  That sub-directory is then placed in the include path during compilation.
2011-03-04 21:05:05 -05:00
97abbd7a31 Removing BYTE keyword (use Serial.write() instead). 2011-02-26 13:58:03 -05:00
6750e679af Building sketch first (so errors appear faster).
http://code.google.com/p/arduino/issues/detail?id=393
2010-11-27 11:39:42 -06:00
5e2f82b742 Updating SPI library error message and revisions.txt for final 0019 release. 2010-09-03 23:12:12 +00:00
e3856766c6 Creating a custom error message for missing SPI.h (because we changed the Ethernet library to rely on it). issue #337 2010-08-28 09:33:37 +00:00
39610d1325 Skipping all hidden files (those starting with a dot - ".") when compiling (issue #209). 2010-06-13 19:25:33 +00:00
9fe672fc63 Providing error messages when no board is selected. 2010-06-12 18:32:32 +00:00
5d54fbf70b Removing some Processing stuff that we don't need.
Moving the Arduino Fio up in the boards menu.
2010-05-08 20:37:54 +00:00
e5d56a1e59 Redoing the error message parsing / handling. Now using Sketch.placeException() to map back to the sketch code files and line numbers. Showing more of the actual output of avr-gcc / avr-g++. 2010-05-08 20:06:31 +00:00
d2a38e4b5a Improving third-party hardware support:
- moving back to multple cores per platform
- using target instead of platform
- moving per-board and per-programmer preferences out of Preferences.java and into a new Target class
- adding a new "target" preference
- support for platform:value values in board preferences for bootloader path and core
- XXX: need to support platform:value syntax for board upload.using preferences.
2009-11-21 23:23:43 +00:00
8720addcba Got bootloader burning working.
Wrapped some long lines.
2009-11-08 20:51:41 +00:00
e5b5f25476 Third-party cores seems to sort of work now, but burning bootloaders is probably broken.
Need to decide on the format for the boards.txt file.
2009-11-07 18:56:45 +00:00
3075c8e4fd Moving libraries out of arduino platform / core directory and to top-level. 2009-11-07 17:54:56 +00:00
6a15e01ff8 Passing the ARDUINO constant from the IDE to avr-gcc as a command line argument (so I don't forget to update the version in the .h file). 2009-10-23 23:04:03 +00:00
048143f3d5 Adding support for .S files in libraries and cores. Patches from René Bohne. 2009-09-25 19:31:01 +00:00
f2010ebd2b Fixing whitespace in Compiler.java. 2009-09-25 19:05:09 +00:00
3dc7fc0781 Syncing with Processing 1.0.7 (5692); needs testing.
Also, the Sketchbook and Examples menus are currently disabled on the Mac to work-around a bug in Apple's implementation of Java.  I think this bug may have been solved, so I should try re-enabling the menus and see what happens (on 10.4 and 10.5 and 10.6).  Also, I may still need to update the jre / jdk on Linux.
2009-09-24 03:16:00 +00:00
240607a4a6 Holding shift when pressing run or upload buttons give verbose output.
The upload.verbose and build.verbose preferences are still respected.

You don't get verbose output with Command-Shift-R or Command-Shift-U, unlike Processing in which the shift modifier switches from Run to Present.  Mostly this is because I didn't think verbose output deserved its own menu items, and that's how Processing implements the other shortcut.

Holding shift while pressing upload doesn't show the compilation command lines.  This matches the functionality of the upload.verbose preference, but may imply that the upload button doesn't also compile the code.

Also, in Snow Leopard, the temp directory is in some crazy folder in /var.  Luckily, everything still seems to work okay.
2009-09-23 23:40:59 +00:00
15cff82214 Removing unused preferences. Fixing upload when not deleting applet/ directory. Treating examples in the sketchbook/libraries folder as read-only. 2009-06-18 19:22:43 +00:00
8823b5ba79 Ignoring lines of error messages with "In file included from" in them. 2009-06-13 12:31:54 +00:00
cdf0095e70 Modifying compilation for libraries:
- now compiled to their own sub-directory of the build directory
 - only can see #include's in their own utility/ folders
and the core (building core.a again).

Also changed the APIs of the compilation functions somewhat (e.g. execAsynchronously no longer returns anything; it just throws a RunnerException on any error).

Still need to better handle errors in #include files; right now, the error is interpreted as being at the line where the #include happens, not within the header file.
2009-06-13 11:41:16 +00:00
89139d1f77 More cleanup:
- fixing import library
- changing compilation to only look for source files in the root and utility/ folders of a library; also adding utility/ sub-folder to the include path
- removing export to application
- renaming run to verify / compile and export to upload
2009-06-01 18:11:25 +00:00
14778514ae Re-configured compilation and integrated uploading. Added the Board and Serial port menus: these are currently shared across editor windows.
No longer using Library and LibraryManager.  Instead the compiler finds the .c and .cpp files in the library paths (gotten from the Sketch via the Preprocessor and the Base's library table).  This breaks libraries that have header files in sub-directories but use #include with no path names (as sub-directories of library directories are not on the include path).  It will also cause problems with .c or .cpp files with the same name in different library utility folders or in a sketch or the target (core).

Now deriving the Target correctly from the selected item in the board menu.
2009-06-01 15:14:05 +00:00
ae98fbfee8 Fixing some compilations bugs:
- including .cpp and .c files from sketch
 - adjusting error line highlighted according to the number of function prototypes generated
 - taking into account preprocessor offset on the first .pde file
2009-06-01 09:28:41 +00:00