Here's another quick update on 1.6.0 support:
Over the last couple days I've managed to port most of Teensyduino's java edits. It's been slow-going, since I haven't worked much with the new code base until now. They restructured all the platforms/core/board stuff, from Java Maps to many Java objects, which are just thin wrappers around Maps. Some much new "abstraction" stuff adds a lot of questions like: "WTF is a TargetPlatform object.... better go find its file and read its API". It's mostly the same old code as 1.0.x, but pretty much everything has moved around. Or I guess it's called "refactored".
Today I got the serial monitor working with Teensy's non-serial modes, which is by far the largest and most complex of Teensyduino's mods to the IDE's java code. About half of the small stuff is ported. I'm pretty sure I'll finish the java stuff in another day or two.
If the installer doesn't go quickly, I'll post a test copy that's the entire IDE with Teensyduino already added. Dealing with the fact that java stuff is now in 2 JAR archives will take a little work. I also need to look more carefully at what they really did for the 2 different mac versions. It looks like the same stuff in a different bundle layout, but maybe there's other fine details?
@Jantje - Actually, I just started from scratch on platform.txt on Monday. By the time I remembered you had worked on this, it was already pretty much done. Since then, the toolchain has been upgraded, so the problems preventing using archive usage have long been fixed. Teensyduino hasn't used linking of all .o files for quite some time.
As I worked on platform.txt on Monday, I decided to do it somewhat differently than the Arduino devs envisioned. I'm putting all Teensy stuff under a single architecture directory, for 3 reasons:
- All the Teensy boards group together in the Tools > Boards menu
- The Teensyduino installer and all my library stuff is designed to install to one location
- I believe many people will publish libraries only for the "avr" platform, even if they're generic
Fortunately, this is pretty easy to do. Instead of defining the compiler commands and flags in platform.txt, I just created entries in boards.txt. I rewrote all the platform.txt recipes to get commands, flags and other details from boards.txt. Then I only need 1 directory, 1 boards.txt and 1 platform.txt file for all Teensy stuff.
Later today, I'm going to take a little break from the 1.6.0 stuff, to catch up on answering forum threads. I've fallen behind the last few days while working with 1.6.0....