a smart controller running on cortex-m3 with rtthread