drivers: stepper: api: rename enable_constant_velocity_mode to run
rename enable_constant_velocity_mode to run in following files: - include/zephyr/drivers/stepper.h - include/zephyr/drivers/stepper/stepper_fake.h - doc/hardware/peripherals/stepper.rst - doc/releases/migration-guide-4.1.rst - drivers/stepper/adi_tmc/adi_tmc5041_stepper_controller.c - drivers/stepper/fake_stepper_controller.c - drivers/stepper/gpio_stepper_controller.c - drivers/stepper/stepper_shell.c - tests/drivers/stepper/shell/src/main.c Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
This commit is contained in:
parent
401f784337
commit
af68d97507
9 changed files with 48 additions and 58 deletions
|
@ -477,11 +477,10 @@ static int tmc5041_stepper_set_target_position(const struct device *dev, const i
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int tmc5041_stepper_enable_constant_velocity_mode(const struct device *dev,
|
||||
const enum stepper_direction direction,
|
||||
const uint32_t velocity)
|
||||
static int tmc5041_stepper_run(const struct device *dev, const enum stepper_direction direction,
|
||||
const uint32_t velocity)
|
||||
{
|
||||
LOG_DBG("Stepper motor controller %s enable constant velocity mode", dev->name);
|
||||
LOG_DBG("Stepper motor controller %s run with velocity %d", dev->name, velocity);
|
||||
const struct tmc5041_stepper_config *config = dev->config;
|
||||
const struct tmc5041_config *tmc5041_config = config->controller->config;
|
||||
struct tmc5041_stepper_data *data = dev->data;
|
||||
|
@ -731,7 +730,7 @@ static int tmc5041_stepper_init(const struct device *dev)
|
|||
.set_reference_position = tmc5041_stepper_set_reference_position, \
|
||||
.get_actual_position = tmc5041_stepper_get_actual_position, \
|
||||
.set_target_position = tmc5041_stepper_set_target_position, \
|
||||
.enable_constant_velocity_mode = tmc5041_stepper_enable_constant_velocity_mode, \
|
||||
.run = tmc5041_stepper_run, \
|
||||
.set_event_callback = tmc5041_stepper_set_event_callback, };
|
||||
|
||||
#define TMC5041_STEPPER_DEFINE(child) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue