Event scheduling functions for the AVR microcontroller written in C and based on AVRlibc / GNU toolchain