Lines Matching refs:stepper
12 const struct device *stepper = DEVICE_DT_GET(DT_ALIAS(stepper)); variable
15 DT_PROP(DT_ALIAS(stepper), micro_step_res);
33 if (!device_is_ready(stepper)) { in main()
34 printf("Device %s is not ready\n", stepper->name); in main()
37 printf("stepper is %p, name is %s\n", stepper, stepper->name); in main()
39 stepper_set_event_callback(stepper, stepper_callback, NULL); in main()
40 stepper_enable(stepper, true); in main()
41 stepper_set_reference_position(stepper, 0); in main()
42 stepper_move_by(stepper, ping_pong_target_position); in main()
45 int32_t tmc_velocity = DT_PROP(DT_ALIAS(stepper), vmax) * CONFIG_MAX_VELOCITY_MULTIPLIER; in main()
46 (void)tmc50xx_stepper_set_max_velocity(stepper, tmc_velocity); in main()
51 stepper_move_by(stepper, ping_pong_target_position); in main()