Thos-avr: a copy ported to the atmega CPU (arduino)

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
doc: documented the new AVR port, released as 2013-01

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>