C language, realize serial port control stepper motor