Ensure MINIMUM_PULSE is always 0 in DEDGE mode

This ensures delays are always properly elided without having to check
for DEDGE all over the place.
This commit is contained in:
Yuri D'Elia 2021-01-26 16:12:59 +01:00
parent 2a6989ecd5
commit b17cdcd4d7
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ uint16_t SP_min = 0x21FF;
#endif #endif
#ifdef TMC2130_DEDGE_STEPPING #ifdef TMC2130_DEDGE_STEPPING
static_assert(TMC2130_MINIMUM_PULSE == 0, "DEDGE requires/implies TMC2130_MINIMUM_PULSE == 0");
#define STEP_NC_HI(axis) TOGGLE(_STEP_PIN_##axis) #define STEP_NC_HI(axis) TOGGLE(_STEP_PIN_##axis)
#define STEP_NC_LO(axis) //NOP #define STEP_NC_LO(axis) //NOP
#else #else