Try to complete the motor driver (except cycle state is not implemented)
Signed-off-by: H.K. Wong <hkwong74531@yahoo.com.hk>