Threading library for small mcu's