Use pulse output to control stepper motor, camera gimbal

I want to build a gimbal with a relatively strong load-bearing capacity, and consider using stepper motors, or industrial servo motors. They generally use pulses to control the angle of rotation, so can this control method be added to the firmware?

Pull requests are welcome.