Threading library for Cortex M4 MCU's