Support thread on chibios. (not yet test)