♻️ More updates for multi-axis
This commit is contained in:
committed by
Scott Lahteine
parent
6a2a592c26
commit
d6c673b9de
@ -246,7 +246,11 @@
|
||||
#define MIN_STEP_ISR_FREQUENCY (MAX_STEP_ISR_FREQUENCY_1X / 2)
|
||||
|
||||
#define ENABLE_COUNT (NUM_AXES + E_STEPPERS)
|
||||
typedef IF<(ENABLE_COUNT > 8), uint16_t, uint8_t>::type ena_mask_t;
|
||||
#if ENABLE_COUNT > 16
|
||||
typedef uint32_t ena_mask_t;
|
||||
#else
|
||||
typedef IF<(ENABLE_COUNT > 8), uint16_t, uint8_t>::type ena_mask_t;
|
||||
#endif
|
||||
|
||||
// Axis flags type, for enabled state or other simple state
|
||||
typedef struct {
|
||||
@ -259,8 +263,6 @@ typedef struct {
|
||||
#endif
|
||||
};
|
||||
};
|
||||
constexpr ena_mask_t linear_bits() { return _BV(NUM_AXES) - 1; }
|
||||
constexpr ena_mask_t e_bits() { return (_BV(EXTRUDERS) - 1) << NUM_AXES; }
|
||||
} stepper_flags_t;
|
||||
|
||||
// All the stepper enable pins
|
||||
|
Reference in New Issue
Block a user