2008-04-07 Kevin Rosenberg * BaseTinyFirmware/IAR: Port Martin's changes from 2008-04-03 to IAR 2008-04-03 Martin Thomas * BaseMegaFirmware/GCC: Experimental Master Code for the ATmega644 with basic "drivers" for - keys incl. power-off with debounceing - 74HC595 low-level "software-SPI" - LEDs though 74HC595 - Power-off and Slave-Reset control though 74HC595 - hardware SPI for comm. with slave - simple test-function for communication with slave * BaseTinyFirmware/GCC/statefunc.c: - prevent unneeded writes to eeprom if init fails - prevent slave from entering sleep-mode standby if "MASTER_INT" is low (so SPI communication with master is possible even during the "8-second watchdog delay") 2008-03-30 Kevin Rosenberg * BaseTinyFirmware/GCC Makefile's improved with more listing output as well as added -Wl,-gc-sections option which stops crashes using linker relaxation [thanks to Eric Weddington] 2008-03-28 Kevin Rosenberg * BaseTinyFirmware/GCC/avr463/Makefile: Added -Wl,-relax to linker flags. On my system this crashes avr-ld.exe, but others have reported a large reduction in firmware size with this option. I added this option for others to try. * BaseTinyFirmware/GCC/avr458/Makefile: Added missing file 2008-03-14 Martin Thomas Improvements to BaseTinyFirmware: * added "volatile" to structure object and array declarations for objects sed in main-thread and ISRs. I'm not sure about the current state of implicitly "guaranteed" accesses in (avr-)gcc but it should be a "better safe than sorry" extension. * enveloped access to timer-values in timer.c to make them "atomic" since they are unsigned long * "atomic" access to singned int and unsigned int members of ADCS * it maybe better to have one place to globally enable interrupts ("sei"). Done in "initialize" now and not several times in the driver init-functions. * changed some space to tab as in the original code * added header files to the AVR-Studio project workspace * added -lm to the linker-options in the AVR Studio gcc-plugin, not important for the basic application but might be good if someone uses the ode as a base for own developments 2008-03-12 Kevin Rosenberg * Initial GCC port performed and compiles without error * Warning: Not yet tested on BC100 hardware!