|
@@ -199,7 +199,7 @@ class Stepper {
|
199
|
199
|
// SCARA AB axes are in degrees, not mm
|
200
|
200
|
//
|
201
|
201
|
#if IS_SCARA
|
202
|
|
- static FORCE_INLINE float get_axis_position_degrees(AxisEnum axis) { return get_axis_position_mm(axis); }
|
|
202
|
+ FORCE_INLINE static float get_axis_position_degrees(AxisEnum axis) { return get_axis_position_mm(axis); }
|
203
|
203
|
#endif
|
204
|
204
|
|
205
|
205
|
//
|
|
@@ -221,7 +221,7 @@ class Stepper {
|
221
|
221
|
//
|
222
|
222
|
// The direction of a single motor
|
223
|
223
|
//
|
224
|
|
- static FORCE_INLINE bool motor_direction(AxisEnum axis) { return TEST(last_direction_bits, axis); }
|
|
224
|
+ FORCE_INLINE static bool motor_direction(AxisEnum axis) { return TEST(last_direction_bits, axis); }
|
225
|
225
|
|
226
|
226
|
#if HAS_DIGIPOTSS || HAS_MOTOR_CURRENT_PWM
|
227
|
227
|
static void digitalPotWrite(const int16_t address, const int16_t value);
|
|
@@ -235,21 +235,21 @@ class Stepper {
|
235
|
235
|
#endif
|
236
|
236
|
|
237
|
237
|
#if ENABLED(X_DUAL_ENDSTOPS)
|
238
|
|
- static FORCE_INLINE void set_homing_flag_x(const bool state) { performing_homing = state; }
|
239
|
|
- static FORCE_INLINE void set_x_lock(const bool state) { locked_x_motor = state; }
|
240
|
|
- static FORCE_INLINE void set_x2_lock(const bool state) { locked_x2_motor = state; }
|
|
238
|
+ FORCE_INLINE static void set_homing_flag_x(const bool state) { performing_homing = state; }
|
|
239
|
+ FORCE_INLINE static void set_x_lock(const bool state) { locked_x_motor = state; }
|
|
240
|
+ FORCE_INLINE static void set_x2_lock(const bool state) { locked_x2_motor = state; }
|
241
|
241
|
#endif
|
242
|
242
|
|
243
|
243
|
#if ENABLED(Y_DUAL_ENDSTOPS)
|
244
|
|
- static FORCE_INLINE void set_homing_flag_y(const bool state) { performing_homing = state; }
|
245
|
|
- static FORCE_INLINE void set_y_lock(const bool state) { locked_y_motor = state; }
|
246
|
|
- static FORCE_INLINE void set_y2_lock(const bool state) { locked_y2_motor = state; }
|
|
244
|
+ FORCE_INLINE static void set_homing_flag_y(const bool state) { performing_homing = state; }
|
|
245
|
+ FORCE_INLINE static void set_y_lock(const bool state) { locked_y_motor = state; }
|
|
246
|
+ FORCE_INLINE static void set_y2_lock(const bool state) { locked_y2_motor = state; }
|
247
|
247
|
#endif
|
248
|
248
|
|
249
|
249
|
#if ENABLED(Z_DUAL_ENDSTOPS)
|
250
|
|
- static FORCE_INLINE void set_homing_flag_z(const bool state) { performing_homing = state; }
|
251
|
|
- static FORCE_INLINE void set_z_lock(const bool state) { locked_z_motor = state; }
|
252
|
|
- static FORCE_INLINE void set_z2_lock(const bool state) { locked_z2_motor = state; }
|
|
250
|
+ FORCE_INLINE static void set_homing_flag_z(const bool state) { performing_homing = state; }
|
|
251
|
+ FORCE_INLINE static void set_z_lock(const bool state) { locked_z_motor = state; }
|
|
252
|
+ FORCE_INLINE static void set_z2_lock(const bool state) { locked_z2_motor = state; }
|
253
|
253
|
#endif
|
254
|
254
|
|
255
|
255
|
#if ENABLED(BABYSTEPPING)
|
|
@@ -268,7 +268,7 @@ class Stepper {
|
268
|
268
|
//
|
269
|
269
|
// Triggered position of an axis in mm (not core-savvy)
|
270
|
270
|
//
|
271
|
|
- static FORCE_INLINE float triggered_position_mm(AxisEnum axis) {
|
|
271
|
+ FORCE_INLINE static float triggered_position_mm(AxisEnum axis) {
|
272
|
272
|
return endstops_trigsteps[axis] * planner.steps_to_mm[axis];
|
273
|
273
|
}
|
274
|
274
|
|
|
@@ -278,7 +278,7 @@ class Stepper {
|
278
|
278
|
|
279
|
279
|
private:
|
280
|
280
|
|
281
|
|
- static FORCE_INLINE hal_timer_t calc_timer(hal_timer_t step_rate) {
|
|
281
|
+ FORCE_INLINE static hal_timer_t calc_timer(hal_timer_t step_rate) {
|
282
|
282
|
hal_timer_t timer;
|
283
|
283
|
|
284
|
284
|
NOMORE(step_rate, MAX_STEP_FREQUENCY);
|
|
@@ -347,7 +347,7 @@ class Stepper {
|
347
|
347
|
|
348
|
348
|
// Initialize the trapezoid generator from the current block.
|
349
|
349
|
// Called whenever a new block begins.
|
350
|
|
- static FORCE_INLINE void trapezoid_generator_reset() {
|
|
350
|
+ FORCE_INLINE static void trapezoid_generator_reset() {
|
351
|
351
|
|
352
|
352
|
static int8_t last_extruder = -1;
|
353
|
353
|
|