/* Initializes timer 0 to generate an interrupt and set the timeout flag after a given time  */
static void timeoutInit(uint8_t timeout)
/* Initializes timer 0 to generate an interrupt and set the timeout flag after a given time  */
static void timeoutInit(uint8_t timeout)
{
	TCCR0A = (1 << WGM01);
	TCCR0B = (1 << CS02) | (1 << CS00);
	TIMSK0 = (1 << OCIE0A);
	OCR0A = 255;
	timeoutFlag = 0;
}