@@ -49,7 +49,7 @@ struct tmc5041_stepper_config {
49
49
const uint32_t sg_threshold_velocity ;
50
50
/* parent controller required for bus communication */
51
51
const struct device * controller ;
52
- #ifdef CONFIG_STEPPER_ADI_TMC_RAMP_GEN
52
+ #ifdef CONFIG_STEPPER_ADI_TMC5041_RAMP_GEN
53
53
const struct tmc_ramp_generator_data default_ramp_config ;
54
54
#endif
55
55
};
@@ -537,7 +537,7 @@ static int tmc5041_stepper_run(const struct device *dev, const enum stepper_dire
537
537
return 0 ;
538
538
}
539
539
540
- #ifdef CONFIG_STEPPER_ADI_TMC_RAMP_GEN
540
+ #ifdef CONFIG_STEPPER_ADI_TMC5041_RAMP_GEN
541
541
542
542
int tmc5041_stepper_set_ramp (const struct device * dev ,
543
543
const struct tmc_ramp_generator_data * ramp_data )
@@ -676,7 +676,7 @@ static int tmc5041_stepper_init(const struct device *dev)
676
676
}
677
677
}
678
678
679
- #ifdef CONFIG_STEPPER_ADI_TMC_RAMP_GEN
679
+ #ifdef CONFIG_STEPPER_ADI_TMC5041_RAMP_GEN
680
680
err = tmc5041_stepper_set_ramp (dev , & stepper_config -> default_ramp_config );
681
681
if (err != 0 ) {
682
682
return - EIO ;
@@ -702,7 +702,7 @@ static int tmc5041_stepper_init(const struct device *dev)
702
702
COND_CODE_1(DT_PROP_EXISTS(child, stallguard_threshold_velocity), \
703
703
BUILD_ASSERT(DT_PROP(child, stallguard_threshold_velocity), \
704
704
"stallguard threshold velocity must be a positive value"), ()); \
705
- IF_ENABLED(CONFIG_STEPPER_ADI_TMC_RAMP_GEN , (CHECK_RAMP_DT_DATA(child))); \
705
+ IF_ENABLED(CONFIG_STEPPER_ADI_TMC5041_RAMP_GEN , (CHECK_RAMP_DT_DATA(child))); \
706
706
static const struct tmc5041_stepper_config tmc5041_stepper_config_##child = { \
707
707
.controller = DEVICE_DT_GET(DT_PARENT(child)), \
708
708
.default_micro_step_res = DT_PROP(child, micro_step_res), \
@@ -712,7 +712,7 @@ static int tmc5041_stepper_init(const struct device *dev)
712
712
.sg_velocity_check_interval_ms = DT_PROP(child, \
713
713
stallguard_velocity_check_interval_ms), \
714
714
.is_sg_enabled = DT_PROP(child, activate_stallguard2), \
715
- IF_ENABLED(CONFIG_STEPPER_ADI_TMC_RAMP_GEN , \
715
+ IF_ENABLED(CONFIG_STEPPER_ADI_TMC5041_RAMP_GEN , \
716
716
(.default_ramp_config = TMC_RAMP_DT_SPEC_GET(child))) };
717
717
718
718
#define TMC5041_STEPPER_DATA_DEFINE (child ) \
0 commit comments