
Here is an application note from Atmel based on sensor driven BLDC control implemented on AVR microcontrollers.
This application note describes the control of a BLDC motor with Hall effect position sensors. The implementation includes both direction and open loop speed control.

Real men do it without Hall feedback…sensorless FOC FTW!!!