🔧 SPINDLE_LASER_PWM => SPINDLE_LASER_USE_PWM
This commit is contained in:
@ -658,7 +658,7 @@
|
||||
#endif
|
||||
|
||||
// Add features that need hardware PWM here
|
||||
#if ANY(FAST_PWM_FAN, SPINDLE_LASER_PWM)
|
||||
#if ANY(FAST_PWM_FAN, SPINDLE_LASER_USE_PWM)
|
||||
#define NEEDS_HARDWARE_PWM 1
|
||||
#endif
|
||||
|
||||
|
@ -593,6 +593,8 @@
|
||||
#error "ARC_SUPPORT no longer uses ARC_SEGMENTS_PER_R."
|
||||
#elif ENABLED(ARC_SUPPORT) && (!defined(MIN_ARC_SEGMENT_MM) || !defined(MAX_ARC_SEGMENT_MM))
|
||||
#error "ARC_SUPPORT now requires MIN_ARC_SEGMENT_MM and MAX_ARC_SEGMENT_MM."
|
||||
#elif defined(SPINDLE_LASER_PWM)
|
||||
#error "SPINDLE_LASER_PWM (true) is now set with SPINDLE_LASER_USE_PWM (enabled)."
|
||||
#endif
|
||||
|
||||
#if MOTHERBOARD == BOARD_DUE3DOM_MINI && PIN_EXISTS(TEMP_2) && DISABLED(TEMP_SENSOR_BOARD)
|
||||
@ -3558,8 +3560,8 @@ static_assert( _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
|
||||
#error "LASER_MOVE_G0_OFF requires LASER_MOVE_POWER."
|
||||
#endif
|
||||
#if ENABLED(LASER_POWER_INLINE_TRAPEZOID)
|
||||
#if DISABLED(SPINDLE_LASER_PWM)
|
||||
#error "LASER_POWER_INLINE_TRAPEZOID requires SPINDLE_LASER_PWM to function."
|
||||
#if DISABLED(SPINDLE_LASER_USE_PWM)
|
||||
#error "LASER_POWER_INLINE_TRAPEZOID requires SPINDLE_LASER_USE_PWM to function."
|
||||
#elif ENABLED(S_CURVE_ACCELERATION)
|
||||
//#ifndef LASER_POWER_INLINE_S_CURVE_ACCELERATION_WARN
|
||||
// #define LASER_POWER_INLINE_S_CURVE_ACCELERATION_WARN
|
||||
@ -3591,21 +3593,21 @@ static_assert( _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
|
||||
#error "(SPINDLE|LASER)_FEATURE requires SPINDLE_LASER_ENA_PIN or SPINDLE_SERVO to control the power."
|
||||
#elif ENABLED(SPINDLE_CHANGE_DIR) && !PIN_EXISTS(SPINDLE_DIR)
|
||||
#error "SPINDLE_DIR_PIN is required for SPINDLE_CHANGE_DIR."
|
||||
#elif ENABLED(SPINDLE_LASER_PWM)
|
||||
#elif ENABLED(SPINDLE_LASER_USE_PWM)
|
||||
#if !defined(SPINDLE_LASER_PWM_PIN) || SPINDLE_LASER_PWM_PIN < 0
|
||||
#error "SPINDLE_LASER_PWM_PIN is required for SPINDLE_LASER_PWM."
|
||||
#error "SPINDLE_LASER_PWM_PIN is required for SPINDLE_LASER_USE_PWM."
|
||||
#elif !_TEST_PWM(SPINDLE_LASER_PWM_PIN)
|
||||
#error "SPINDLE_LASER_PWM_PIN not assigned to a PWM pin."
|
||||
#elif !defined(SPINDLE_LASER_PWM_INVERT)
|
||||
#error "SPINDLE_LASER_PWM_INVERT is required for (SPINDLE|LASER)_FEATURE."
|
||||
#elif !(defined(SPEED_POWER_INTERCEPT) && defined(SPEED_POWER_MIN) && defined(SPEED_POWER_MAX) && defined(SPEED_POWER_STARTUP))
|
||||
#error "SPINDLE_LASER_PWM equation constant(s) missing."
|
||||
#error "SPINDLE_LASER_USE_PWM equation constant(s) missing."
|
||||
#elif _PIN_CONFLICT(X_MIN)
|
||||
#error "SPINDLE_LASER_PWM pin conflicts with X_MIN_PIN."
|
||||
#error "SPINDLE_LASER_USE_PWM pin conflicts with X_MIN_PIN."
|
||||
#elif _PIN_CONFLICT(X_MAX)
|
||||
#error "SPINDLE_LASER_PWM pin conflicts with X_MAX_PIN."
|
||||
#error "SPINDLE_LASER_USE_PWM pin conflicts with X_MAX_PIN."
|
||||
#elif _PIN_CONFLICT(Z_STEP)
|
||||
#error "SPINDLE_LASER_PWM pin conflicts with Z_STEP_PIN."
|
||||
#error "SPINDLE_LASER_USE_PWM pin conflicts with Z_STEP_PIN."
|
||||
#elif _PIN_CONFLICT(CASE_LIGHT)
|
||||
#error "SPINDLE_LASER_PWM_PIN conflicts with CASE_LIGHT_PIN."
|
||||
#elif _PIN_CONFLICT(E0_AUTO_FAN)
|
||||
|
Reference in New Issue
Block a user