A template for firmware for AVR microcontrollers