Issues porting capacitive touch code from Arduino to avr

aren't most Arduinos AVRs ?
What specific AVR are you using. (and what are you porting from, but someone asked already.)