Skip to content

Commit

Permalink
doc: migration-guide-4.1: Add section about step interval based API
Browse files Browse the repository at this point in the history
Adds a two bullet points explaining the change of the velocity based API
towards an step interval one.

Signed-off-by: Fabian Blatz <[email protected]>
  • Loading branch information
faxe1008 committed Jan 10, 2025
1 parent b2385a3 commit facdd26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/releases/migration-guide-4.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,13 @@ Stepper
* Renamed the ``compatible`` from ``zephyr,gpio-steppers`` to :dtcompatible:`zephyr,gpio-stepper`.
* Renamed the ``stepper_set_actual_position`` function to :c:func:`stepper_set_reference_position`.
* Renamed the ``stepper_enable_constant_velocity_mode`` function to :c:func:`stepper_run`.
The function does not take a velocity parameter anymore. Set the desired speed using the
:c:func:`stepper_set_step_interval` function beforehand.
* Renamed the ``stepper_move`` function to :c:func:`stepper_move_by`.
* Renamed the ``stepper_set_target_position`` function to :c:func:`stepper_move_to`.
* Renamed the ``stepper_set_max_velocity`` function to :c:func:`stepper_set_step_interval`.
The function now takes the step interval in microseconds. This allows for a more precise control.
* Changed the :c:func:`stepper_run` to take the step interval in microseconds instead of velocity.
* The :kconfig:option:`STEPPER_ADI_TMC_RAMP_GEN` is now deprecated and is replaced with the new
:kconfig:option:`STEPPER_ADI_TMC5041_RAMP_GEN` option.

Expand Down

0 comments on commit facdd26

Please sign in to comment.