small scheduler written for atmel avr 328