Skip to content

Conversation

jilaypandya
Copy link
Member

@jilaypandya jilaypandya commented Aug 15, 2025

  • move_by(dev,0) shall stop the timing source and trigger STEPPER_EVENT_STEPS_COMPLETED event
  • remove the spinlock in stepper_handle_timing_signal
  • perform a step each time the timing signal is called
  • Increment/Decrement actual_position and steps using atomics

@jilaypandya jilaypandya force-pushed the refactor/step-dir-common-set-direction branch 2 times, most recently from 7368c42 to aaa21ba Compare August 15, 2025 16:28
@jilaypandya jilaypandya changed the title drivers: stepper: move_by(dev,0) shall return steps_completed drivers: stepper: refactor stepper_handle_timing_signal & move_by(dev,0) shall return steps_completed Aug 15, 2025
@jilaypandya jilaypandya changed the title drivers: stepper: refactor stepper_handle_timing_signal & move_by(dev,0) shall return steps_completed drivers: stepper: refactor stepper_handle_timing_signal in step_dir_common & redefine behavior of move_by(dev, 0) Aug 15, 2025
@jilaypandya jilaypandya force-pushed the refactor/step-dir-common-set-direction branch 3 times, most recently from d69fbe8 to 8521709 Compare August 15, 2025 19:59
move_by(dev,0) shall stop the timing source and trigger
STEPPER_EVENT_STEPS_COMPLETED event

Signed-off-by: Jilay Pandya <[email protected]>
@jilaypandya jilaypandya force-pushed the refactor/step-dir-common-set-direction branch from 8521709 to ed1d447 Compare August 15, 2025 20:13
@jilaypandya jilaypandya marked this pull request as ready for review August 15, 2025 20:39
@jilaypandya jilaypandya force-pushed the refactor/step-dir-common-set-direction branch from ed1d447 to b0003ef Compare August 16, 2025 08:44
@jilaypandya jilaypandya requested a review from faxe1008 August 16, 2025 08:45
@jilaypandya jilaypandya force-pushed the refactor/step-dir-common-set-direction branch from b0003ef to 26d7cad Compare August 16, 2025 15:23
1. Reduce the spinlock scope in stepper_handle_timing_signal
2. perform a step each time the timing signal is called
3. Increment/Decrement actual_position and steps using atomics

Signed-off-by: Jilay Pandya <[email protected]>
@jilaypandya jilaypandya force-pushed the refactor/step-dir-common-set-direction branch from 26d7cad to 83d5250 Compare August 18, 2025 18:27
@jilaypandya jilaypandya requested a review from dipakgmx August 18, 2025 18:27
Copy link

@kartben kartben merged commit 1e34d47 into zephyrproject-rtos:main Aug 19, 2025
26 checks passed
@jilaypandya jilaypandya deleted the refactor/step-dir-common-set-direction branch August 27, 2025 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants