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 authored and kartben committed Jan 15, 2025
1 parent dfaca86 commit 7537a14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/releases/migration-guide-4.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,17 @@ 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_microstep_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_microstep_interval`.
The function now takes the step interval in nanoseconds. This allows for a more precise control.
* Deprecating setting max velocity via :c:func:`stepper_run`.
* 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.
* To control the velocity for :dtcompatible:`adi,tmc5041` stepper driver, use
:c:func:`tmc5041_stepper_set_max_velocity` or :c:func:`tmc5041_stepper_set_ramp`.

SPI
===
Expand Down

0 comments on commit 7537a14

Please sign in to comment.