Make Makefile safe for parallel compilation.
sim_core: correction to ld {rXYZ}

User supplied test seems to indicate that the avr writes data to
 the destination register AFTER updating the index register.
  whereas the core originally read the index register and
  immediately stored the result into the register and then wrote
  back the index register.

If the code used: LD XH, X test indicated XH would return the
 value loaded from the indirect load operation versus the updated
 XH:XL value as the core originally assumed.

	modified:   sim/sim_core.c
Merge pull request #39 from ppd1990/makefile-threaded

Make Makefile safe for parallel compilation.
gdb: cleanup

Formatting, nothing functional.

Signed-off-by: Michel Pollet <buserror@gmail.com>
timers: New, faster implementation

Bullied by bsekisser into making this one ;-)

Signed-off-by: Michel Pollet <buserror@gmail.com>
simduino: Small fix

Not sure how this got commited, it was not compiling.
timers: Real fix

There were a couple of logic error in the previous commit, fixed,
hopefully.
cores: add ATmega128RFA1 core

This core is based on the ATmega1281 core per Atmel's documentation so
that was used as a starting point. No guarentees that the radio is wired
up correctly.
timers: Reformat

Cleanup the macros

Signed-off-by: Michel Pollet <buserror@gmail.com>
Merge pull request #50 from cardoe/atmega128rfa1

cores: add ATmega128RFA1 core
fix gdb error message: Cannot remove breakpoints because program is no longer writable.
uart: refactor uart udr write operation outside generic uart write.

	modified:   simavr/sim/avr_uart.c
core: Removed trace crash macro

Made it a function instead.

Reworked from nnayo's commit
core: Handle EIND register

Parts with more than 128KB of flash need an extra byte on the stack
Rework from nnayo branch for the atmega2560

Signed-off-by: Michel Pollet <buserror@gmail.com>
cores: Add atmega2560
Merge pull request #54 from bsekisser/uart-udr-write-changes

uart: refactor uart udr write operation outside generic uart write.
avr_timer: changed avr_timer_write_ocr as part of larger avr_timer refactor.

- changed avr_timer_write_ocr code to take pointer of relevant
  	comparator structure rather than its parent timer.

- added _timer_get_comp_ocr which the modified avr_timer_write_ocr
	function uses.

	modified:   simavr/sim/avr_timer.c
	modified:   simavr/sim/avr_timer.h
Merge pull request #56 from bsekisser/avr-timer-comp-write-ocr

avr_timer: changed avr_timer_write_ocr as part of larger avr_timer refac...
Fix avr_global_logger_get() decl  to not warn

When using sim_avr.h with a project that uses -Wstrict-prototypes, you
will get a warning that the prototype for avr_global_logger_get() is not
valid. Functions that take no args must explicitly use void to not warn.
Merge pull request #45 from cardoe/prototype-warning

Fix avr_global_logger_get() decl  to not warn.