Re: converting avr code to arduino

You could define the undefined labels and then compile it.
Might not be very portable between Arduino variants though.