#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__#define DEFAULT 0#define EXTERNAL 1#define INTERNAL 2#else#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__#define INTERNAL1V1 2#define INTERNAL2V56 3#else#define INTERNAL 3#endif#define DEFAULT 1#define EXTERNAL 0#endif
Atmega128 and 1280 - what is the difference??
Thanks. I was looking at that code. However, the ATmega1284 is already supported. What it looks like he did was to make a custom pin mapping for the DIP version. If what I see in his code is all that I really need to do, I guess I am pretty much there. I already created the pins file and modified the boards.txt file with the appropriate values. It seems like the way that 1.0.3 is structured, they separated a lot of code to make it easy to add variants. Since there is nothing really weird about the 32, I'm not sure that I need to put any tricks in the rest of the core files. Well, I don't think so anyway. That's what I was hoping someone else could help me with.
I did it long time back with 0022.. Google for "arduino-mega32-644-mod.zip"..And the bootloader (atmegaboot-32.zip):http://wiki.edwindertien.nl/doku.php?id=software:bootloaders#arduino_bootload..
Furthermore, change every instance of#if defined(__ATmega8__)in all the c-files in cores/arduino (such as wiring.c, hardwareserial.cpp, wiring_analog.c, wiring_digital.c, WInterrupts.c) into#if defined(__ATmega8__)|| defined(__ATmega32__)
High fuse = 88Low fuse = BF
High fuse = DALow fuse = FF
That combination results in a 1K bootloader size