Skip to content

Commit 6bfea73

Browse files
jilaypandyakartben
authored andcommitted
doc: migration-guide: 4.2: add migration guide entry for enable
- Add migration guide entry for enable->enable/disable function - Add stepper_disable to stepper.rst Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
1 parent d18f491 commit 6bfea73

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

doc/hardware/peripherals/stepper.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Configure Stepper Driver
1414
and :c:func:`stepper_get_actual_position`.
1515
- Set **step interval** in nanoseconds between steps using :c:func:`stepper_set_microstep_interval`
1616
- **Enable** the stepper driver using :c:func:`stepper_enable`.
17+
- **Disable** the stepper driver using :c:func:`stepper_disable`.
1718

1819
Control Stepper
1920
===============

doc/releases/migration-guide-4.2.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ Modem
196196
:kconfig:option:`CONFIG_MODEM_CMUX_WORK_BUFFER_SIZE` and :kconfig:option:`CONFIG_MODEM_CMUX_MTU`.
197197

198198

199+
Stepper
200+
=======
201+
202+
* Refactored the ``stepper_enable(const struct device * dev, bool enable)`` function to
203+
:c:func:`stepper_enable` & :c:func:`stepper_disable`.
204+
199205
Bluetooth
200206
*********
201207

drivers/stepper/allegro/a4979.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ static int a4979_stepper_enable(const struct device *dev)
7676

7777
static int a4979_stepper_disable(const struct device *dev)
7878
{
79-
8079
int ret;
8180
const struct a4979_config *config = dev->config;
8281
struct a4979_data *data = dev->data;

0 commit comments

Comments
 (0)