Clone of rtos-master with additions from mgware