synthetos/TinyG — pull request #29 by rekursiv (2012-10-06 20:39:01+00:00)
Title: compiler toolchain in Atmel Studio 6 requires changes to code to compile

Hi,

This pull request is a bit of an experiment since I am new to git and github, and new to AVR programming.

I'm trying to use your TinyG firmware code with Atmel's latest IDE, rather than WinAVR, which looks to me like it has not been updated for three years or so. This new toolchain has done away with the "prog_char" datatype. In addition, the compiler now requires that PROGMEM data be defined/declared "const." Hence all the changes in this pull request. More info here:
http://tuxgraphics.org/electronics/201207/prog_char.shtml
http://www.nongnu.org/avr-libc/changes-1.8.html

If these changes don't break your current toolchain, perhaps it would be useful to merge them in? Note that I haven't actually tried to program the TinyG board with the .hex file from Studio 6 (AVR programmer on order.)

Thanks,
Aaron