STM32 BLDC driver