Replies: 1 comment 9 replies
-
For making spindle synced motion work. And some plugins references fields in stepper_t as well.
Perhaps not but currently it is, what would an alternative look like?
Yes, and I have added fields to it and exposed it (making it accessible via the hal.stepper.pulse_start parameter).
Yes, but you will have to move code from the HAL to the core to make spindle synced motion work? And new entries has to be added to the HAL struct for the plugins now hooking into hal.stepper.pulse_start? It will be easier to run the relevant HAL/plugin code on the same core (as stepper.c)? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed HAL drivers use some of the vars in struct stepper_t. Why?
I mean, from my perspective the HAL should use step_outbits and dir_outbits only, as those are the bits needed to set/clear the gpios. Being an HAL driver means it has to provide simple methods for HW access only.
So, it looks like the stepper_t structure isn't really fit for the role; a left over from grbl conversion to HAL'lized grbl? Any chance to change it?
Beta Was this translation helpful? Give feedback.
All reactions