STM32 brushless speed controller