Modified stm32_p103.c to emulate the state of motor.