Skip to content

Commit

Permalink
Remove a few more unused defines
Browse files Browse the repository at this point in the history
  • Loading branch information
gudnimg committed Dec 21, 2024
1 parent eedb23a commit 23fc676
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Firmware/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ uint16_t SP_min = 0x21FF;
/*
* Stepping macros
*/
#define _STEP_PIN_X_AXIS X_STEP_PIN
#define _STEP_PIN_Y_AXIS Y_STEP_PIN
#define _STEP_PIN_Z_AXIS Z_STEP_PIN
#define _STEP_PIN_E_AXIS E0_STEP_PIN

#ifdef TMC2130
#define STEPPER_MINIMUM_PULSE TMC2130_MINIMUM_PULSE
#define STEPPER_SET_DIR_DELAY TMC2130_SET_DIR_DELAY
Expand All @@ -70,15 +65,6 @@ static_assert(TMC2130_MINIMUM_DELAY 1, // this will fail to compile when non-emp
#define STEP_NC_LO(axis) //NOP
#else

#define _STEP_HI_X_AXIS !INVERT_X_STEP_PIN
#define _STEP_LO_X_AXIS INVERT_X_STEP_PIN
#define _STEP_HI_Y_AXIS !INVERT_Y_STEP_PIN
#define _STEP_LO_Y_AXIS INVERT_Y_STEP_PIN
#define _STEP_HI_Z_AXIS !INVERT_Z_STEP_PIN
#define _STEP_LO_Z_AXIS INVERT_Z_STEP_PIN
#define _STEP_HI_E_AXIS !INVERT_E_STEP_PIN
#define _STEP_LO_E_AXIS INVERT_E_STEP_PIN

#define STEP_NC_HI(axis) WRITE_NC(_STEP_PIN_##axis, _STEP_HI_##axis)
#define STEP_NC_LO(axis) WRITE_NC(_STEP_PIN_##axis, _STEP_LO_##axis)

Expand Down

0 comments on commit 23fc676

Please sign in to comment.