COND_CODE_1(DT_PROP_EXISTS(node, v1), \
COND_CODE_1(DT_PROP_EXISTS(node, vmax), \
COND_CODE_1(DT_PROP_EXISTS(node, a1), \
COND_CODE_1(DT_PROP_EXISTS(node, amax), \
COND_CODE_1(DT_PROP_EXISTS(node, d1), \
COND_CODE_1(DT_PROP_EXISTS(node, dmax), \
COND_CODE_1(DT_PROP_EXISTS(node, vstop), \
COND_CODE_1(DT_PROP_EXISTS(node, tzerowait), \
COND_CODE_1(DT_PROP_EXISTS(node, vcoolthrs), \
COND_CODE_1(DT_PROP_EXISTS(node, vhigh), \
COND_CODE_1(DT_PROP_EXISTS(node, ihold), \
COND_CODE_1(DT_PROP_EXISTS(node, irun), \
COND_CODE_1(DT_PROP_EXISTS(node, iholddelay), \
#define DT_PROP(node_id, prop)
Get a devicetree property value.
Definition devicetree.h:745
#define COND_CODE_1(_flag, _if_1_code, _else_code)
Insert code depending on whether _flag expands to 1 or not.
Definition util_macro.h:195
#define IN_RANGE(val, min, max)
Checks if a value is within range.
Definition util.h:431
#define TMC_RAMP_TZEROWAIT_MAX
Definition stepper_trinamic.h:50
#define TMC_RAMP_A1_MAX
Definition stepper_trinamic.h:40
#define TMC_RAMP_VCOOLTHRS_MIN
Definition stepper_trinamic.h:53
#define TMC_RAMP_VHIGH_MAX
Definition stepper_trinamic.h:54
#define TMC_RAMP_VMAX_MIN
Definition stepper_trinamic.h:39
#define TMC_RAMP_TZEROWAIT_MIN
Definition stepper_trinamic.h:51
#define TMC_RAMP_AMAX_MIN
Definition stepper_trinamic.h:43
#define TMC_RAMP_IHOLDDELAY_MAX
Definition stepper_trinamic.h:58
#define TMC_RAMP_VMAX_MAX
Definition stepper_trinamic.h:38
#define TMC_RAMP_V1_MIN
Definition stepper_trinamic.h:37
#define TMC_RAMP_IHOLD_IRUN_MIN
Definition stepper_trinamic.h:57
#define TMC_RAMP_VSTART_MIN
Definition stepper_trinamic.h:35
#define TMC_RAMP_VSTOP_MAX
Definition stepper_trinamic.h:48
#define TMC_RAMP_IHOLDDELAY_MIN
Definition stepper_trinamic.h:59
#define TMC_RAMP_VHIGH_MIN
Definition stepper_trinamic.h:55
#define TMC_RAMP_DMAX_MAX
Definition stepper_trinamic.h:46
#define TMC_RAMP_V1_MAX
Definition stepper_trinamic.h:36
#define TMC_RAMP_D1_MAX
Definition stepper_trinamic.h:44
#define TMC_RAMP_D1_MIN
Definition stepper_trinamic.h:45
#define TMC_RAMP_VSTART_MAX
Trinamic stepper controller ramp generator data limits.
Definition stepper_trinamic.h:34
#define TMC_RAMP_VCOOLTHRS_MAX
Definition stepper_trinamic.h:52
#define TMC_RAMP_AMAX_MAX
Definition stepper_trinamic.h:42
#define TMC_RAMP_VSTOP_MIN
Definition stepper_trinamic.h:49
#define TMC_RAMP_A1_MIN
Definition stepper_trinamic.h:41
#define TMC_RAMP_IHOLD_IRUN_MAX
Definition stepper_trinamic.h:56
#define TMC_RAMP_DMAX_MIN
Definition stepper_trinamic.h:47
Check if Ramp DT data is within limits.