Brushless DC motor driver