stm32 code. reusing the freertos template