Make functions static to save a little flash size.
Use avr-gcc names for integer variables and functions instead of C naming.