Stepper Motor Device Driver Development
I've been playing with ways to drive a stepper motor by writing a device driver, which works well if I have a calling process that writes to a char type device one step at a time (with the delays and step numbers controleede by this process). But when I try to make the device handle the number of steps and the delays by passing this data from the calling process, the device works OK but blocks the calling process while the device is dealing with the port switching for the motor.
Is it possible to have a device that works like this? i.e send it instructions to run the motor for x mins at y speed, but that returns control back to the system once initiated?
thanks in advance