acassis commented on PR #10902: URL: https://github.com/apache/nuttx/pull/10902#issuecomment-1761579597
@leducp @raiden00pl I think there are pros and cons of both options: 1) A generic driver is good to have a standard interface that could share at least some basic features; 2) A specific driver is easy to follow and understand, because we don't need to care about code from other drivers (avoiding my #ifdefs) I suggest we could start with the current approach for this driver model before forcing it to adapt to a generic concept. I think the stepper driver itself will evolve a little bit to support other solutions. For example, a user could just use 4 GPIOs connected to a H-Bridge and a timer to control a stepper motor directly or some other device as @raiden00pl cited. This way the drive will become more generic over the time and eventually it will be easier to integrate both. I know the immediate thought is the driver could become more complex over the time, but I think to support more models it will become more generic. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org