Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
eafd623
Use TMC2208Stepper v0.2.5 (#11714)
thinkyhead Sep 9, 2018
0c01099
hop_amount => current_hop
thinkyhead Sep 9, 2018
7e8c073
Fix extruder stops extruding with LA (#11758)
Sebastianv650 Sep 9, 2018
72af8e0
Patch extruder_advance_K edit menu
thinkyhead Sep 9, 2018
d783400
Updates to STM32F7 HAL, for completeness (#11770)
SJ-Innovation Sep 9, 2018
0f7d82b
[2.0.x] include AVR HAL in PIO src_filter for at90usb_dfu (#11778)
Sep 9, 2018
bad225d
Fix mesh leveling compile errors (#11768)
InsanityAutomation Sep 9, 2018
bc1ba99
[2.0.x] Fix undefined symbol 'g29_in_progress' (#11781)
AlexanderAmelkin Sep 10, 2018
d32c4ef
Fix some trailing whitespace
thinkyhead Sep 10, 2018
69d0ed5
[2.0.x] Fix ambiguous function call (SERIAL_PROTOCOL_F) when using Ar…
ktand Sep 10, 2018
2ebfe90
Add custom preheat temp to filament change (#11475)
marcio-ao Sep 10, 2018
1b6bc19
Add external closed loop controller support
SJ-Innovation Sep 8, 2018
53b8c3b
Add EXTERNAL_CLOSED_LOOP_CONTROLLER to examples
thinkyhead Sep 10, 2018
5d5cd13
Merge pull request #11772 from SJ-Innovation/bf2_ClosedLoopController…
thinkyhead Sep 10, 2018
7391e23
Fix RigidBoard FAN_PIN collision
thinkyhead Sep 10, 2018
b6aae2b
Tweak RAMPS_FD_V1 pins
thinkyhead Sep 10, 2018
fe9f088
[2.0.x] Anycubic LinearPlus, Trigorilla 1.4 (#11730)
thinkyhead Sep 11, 2018
4f883d5
[2.0.x] Extruder-Distinct Linear Advance K Factors (#11789)
SJ-Innovation Sep 11, 2018
d882717
Save some PROGMEM with constexpr (#11798)
thinkyhead Sep 11, 2018
06949ae
Fix MSG_FILAMENT_CHANGE_HEAT_1 for small LCD
thinkyhead Sep 11, 2018
8584d36
Fix servo count define conflict
thinkyhead Sep 11, 2018
64d629b
[2.0.x] Italian language fix (#11796)
GMagician Sep 12, 2018
8bce537
Updated slovak translation (#11807)
rmoravcik Sep 12, 2018
1933d5d
Fix SD autostart with no LCD
thinkyhead Sep 12, 2018
b220a82
Fix raw_filwidth_value error
thinkyhead Sep 12, 2018
4fb2134
Fix non-sensical values for Zonestar themistor table (#11817)
HenningJW Sep 12, 2018
c37d3ae
[2.0.x] Fix NOZZLE_PARK_FEATURE for Anycubic Kossel (#11812)
brandstaetter Sep 12, 2018
f79a5a9
Tweak spacing of L6470 options
thinkyhead Sep 13, 2018
809b232
Fix stepper directions after M501/M502
thinkyhead Sep 15, 2018
ff51e73
Fix for Stepper::set_directions() compilation error (#11838)
Sep 16, 2018
215eee4
Use 'friend' to access set_directions
thinkyhead Sep 16, 2018
84ed9b5
Send "G33 S P1" for Delta Height Calibration (#11831)
brandstaetter Sep 16, 2018
66f83d3
Fix some config comments
thinkyhead Sep 16, 2018
bc06406
Fix Anycubic Kossel config (probe crash) (#11832)
brandstaetter Sep 16, 2018
1a6f2b2
Add support for Triple-Z steppers/endstops
Jun 19, 2018
6286afd
Add Triple-Z options to example configs
thinkyhead Aug 21, 2018
4d99f9d
Merge pull request #11062 from TheLongAndOnly/triplez-2.0.x
thinkyhead Sep 16, 2018
8323a08
Clean up some whitespace
thinkyhead Sep 17, 2018
c437bb0
Overhaul of the planner (#11578)
tcm0116 Sep 17, 2018
d948c6e
RADDS Extension Board V3 support
thinkyhead Sep 13, 2018
f5c210d
Config changes supporting up to 6 extruders
thinkyhead Sep 16, 2018
1718eff
Code changes supporting up to 6 extruders
thinkyhead Sep 13, 2018
722d186
Merge pull request #11841 from thinkyhead/bf2_radds_ext_board_v3
thinkyhead Sep 17, 2018
53bd0b5
Followup for 6 extruders
thinkyhead Sep 17, 2018
3973283
Tweak indent of Chinese languages
thinkyhead Sep 17, 2018
0780913
IDEX Improvements (#11848)
Roxy-3D Sep 17, 2018
115abf9
Fix syntax error in front of `tmc_axes`
thinkyhead Sep 17, 2018
09a2bee
Support more filament runout sensors in M119 (#11851)
thinkyhead Sep 17, 2018
65045ba
tmc_util fix part 2
thinkyhead Sep 17, 2018
378f354
IDEX Scaled Duplication is still under development
Roxy-3D Sep 17, 2018
5fbfbde
Fix example file to pull in correct pins file
Roxy-3D Sep 17, 2018
54bd124
2.0.x: Fix normalize_mix() (#11856)
AnHardt Sep 17, 2018
c5e5cc5
Fix some trailing whitespace, macros
thinkyhead Sep 17, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@
#define TEMP_SENSOR_2 0
#define TEMP_SENSOR_3 0
#define TEMP_SENSOR_4 0
#define TEMP_SENSOR_5 0
#define TEMP_SENSOR_BED 0
#define TEMP_SENSOR_CHAMBER 0

Expand Down Expand Up @@ -363,6 +364,7 @@
#define HEATER_2_MINTEMP 5
#define HEATER_3_MINTEMP 5
#define HEATER_4_MINTEMP 5
#define HEATER_5_MINTEMP 5
#define BED_MINTEMP 5

// When temperature exceeds max temp, your heater will be switched off.
Expand All @@ -373,6 +375,7 @@
#define HEATER_2_MAXTEMP 275
#define HEATER_3_MAXTEMP 275
#define HEATER_4_MAXTEMP 275
#define HEATER_5_MAXTEMP 275
#define BED_MAXTEMP 150

//===========================================================================
Expand Down Expand Up @@ -587,11 +590,13 @@
//#define X2_DRIVER_TYPE A4988
//#define Y2_DRIVER_TYPE A4988
//#define Z2_DRIVER_TYPE A4988
//#define Z3_DRIVER_TYPE A4988
//#define E0_DRIVER_TYPE A4988
//#define E1_DRIVER_TYPE A4988
//#define E2_DRIVER_TYPE A4988
//#define E3_DRIVER_TYPE A4988
//#define E4_DRIVER_TYPE A4988
//#define E5_DRIVER_TYPE A4988

// Enable this feature if all enabled endstop pins are interrupt-capable.
// This will remove the need to poll the interrupt pins, saving many CPU cycles.
Expand Down Expand Up @@ -637,22 +642,22 @@
/**
* Default Axis Steps Per Unit (steps/mm)
* Override with M92
* X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
* X, Y, Z, E0 [, E1[, E2[, E3[, E4[, E5]]]]]
*/
#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 4000, 500 }

/**
* Default Max Feed Rate (mm/s)
* Override with M203
* X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
* X, Y, Z, E0 [, E1[, E2[, E3[, E4[, E5]]]]]
*/
#define DEFAULT_MAX_FEEDRATE { 300, 300, 5, 25 }

/**
* Default Max Acceleration (change/s) change = mm/s
* (Maximum start speed for accelerated moves)
* Override with M201
* X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
* X, Y, Z, E0 [, E1[, E2[, E3[, E4[, E5]]]]]
*/
#define DEFAULT_MAX_ACCELERATION { 3000, 3000, 100, 10000 }

Expand Down Expand Up @@ -891,6 +896,7 @@
#define INVERT_E2_DIR false
#define INVERT_E3_DIR false
#define INVERT_E4_DIR false
#define INVERT_E5_DIR false

// @section homing

Expand Down
111 changes: 77 additions & 34 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@
#define E2_AUTO_FAN_PIN -1
#define E3_AUTO_FAN_PIN -1
#define E4_AUTO_FAN_PIN -1
#define E5_AUTO_FAN_PIN -1
#define CHAMBER_AUTO_FAN_PIN -1
#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
#define EXTRUDER_AUTO_FAN_SPEED 255 // == full speed
Expand Down Expand Up @@ -287,6 +288,13 @@

//#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.

// Employ an external closed loop controller. Override pins here if needed.
//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
//#define CLOSED_LOOP_ENABLE_PIN -1
//#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
#endif

/**
* Dual Steppers / Dual Endstops
*
Expand Down Expand Up @@ -331,6 +339,17 @@
#endif
#endif

//#define Z_TRIPLE_STEPPER_DRIVERS
#if ENABLED(Z_TRIPLE_STEPPER_DRIVERS)
//#define Z_TRIPLE_ENDSTOPS
#if ENABLED(Z_TRIPLE_ENDSTOPS)
#define Z2_USE_ENDSTOP _XMAX_
#define Z3_USE_ENDSTOP _YMAX_
#define Z_TRIPLE2_ENDSTOPS_ADJUSTMENT 0
#define Z_TRIPLE3_ENDSTOPS_ADJUSTMENT 0
#endif
#endif

/**
* Dual X Carriage
*
Expand Down Expand Up @@ -464,7 +483,7 @@
//#define ADAPTIVE_STEP_SMOOTHING

// Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
#define MICROSTEP_MODES { 16, 16, 16, 16, 16 } // [1,2,4,8,16]
#define MICROSTEP_MODES { 16, 16, 16, 16, 16, 16 } // [1,2,4,8,16]

/**
* @section stepper motor current
Expand Down Expand Up @@ -1080,6 +1099,10 @@
#define Z2_SENSE_RESISTOR 91
#define Z2_MICROSTEPS 16

#define Z3_MAX_CURRENT 1000
#define Z3_SENSE_RESISTOR 91
#define Z3_MICROSTEPS 16

#define E0_MAX_CURRENT 1000
#define E0_SENSE_RESISTOR 91
#define E0_MICROSTEPS 16
Expand All @@ -1100,6 +1123,10 @@
#define E4_SENSE_RESISTOR 91
#define E4_MICROSTEPS 16

#define E5_MAX_CURRENT 1000
#define E5_SENSE_RESISTOR 91
#define E5_MICROSTEPS 16

#endif // TMC26X

// @section tmc_smart
Expand Down Expand Up @@ -1146,6 +1173,9 @@
#define Z2_CURRENT 800
#define Z2_MICROSTEPS 16

#define Z3_CURRENT 800
#define Z3_MICROSTEPS 16

#define E0_CURRENT 800
#define E0_MICROSTEPS 16

Expand All @@ -1161,6 +1191,9 @@
#define E4_CURRENT 800
#define E4_MICROSTEPS 16

#define E5_CURRENT 800
#define E5_MICROSTEPS 16

/**
* Use software SPI for TMC2130.
* The default SW SPI pins are defined the respective pins files,
Expand Down Expand Up @@ -1210,11 +1243,13 @@
#define Y2_HYBRID_THRESHOLD 100
#define Z_HYBRID_THRESHOLD 3
#define Z2_HYBRID_THRESHOLD 3
#define Z3_HYBRID_THRESHOLD 3
#define E0_HYBRID_THRESHOLD 30
#define E1_HYBRID_THRESHOLD 30
#define E2_HYBRID_THRESHOLD 30
#define E3_HYBRID_THRESHOLD 30
#define E4_HYBRID_THRESHOLD 30
#define E5_HYBRID_THRESHOLD 30

/**
* Use stallGuard2 to sense an obstacle and trigger an endstop.
Expand Down Expand Up @@ -1284,49 +1319,57 @@
*/
#if HAS_DRIVER(L6470)

#define X_MICROSTEPS 16 // number of microsteps
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
#define X_MICROSTEPS 16 // number of microsteps
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall

#define X2_MICROSTEPS 16
#define X2_OVERCURRENT 2000
#define X2_STALLCURRENT 1500
#define X2_MICROSTEPS 16
#define X2_OVERCURRENT 2000
#define X2_STALLCURRENT 1500

#define Y_MICROSTEPS 16
#define Y_OVERCURRENT 2000
#define Y_STALLCURRENT 1500
#define Y_MICROSTEPS 16
#define Y_OVERCURRENT 2000
#define Y_STALLCURRENT 1500

#define Y2_MICROSTEPS 16
#define Y2_OVERCURRENT 2000
#define Y2_STALLCURRENT 1500
#define Y2_MICROSTEPS 16
#define Y2_OVERCURRENT 2000
#define Y2_STALLCURRENT 1500

#define Z_MICROSTEPS 16
#define Z_OVERCURRENT 2000
#define Z_STALLCURRENT 1500
#define Z_MICROSTEPS 16
#define Z_OVERCURRENT 2000
#define Z_STALLCURRENT 1500

#define Z2_MICROSTEPS 16
#define Z2_OVERCURRENT 2000
#define Z2_STALLCURRENT 1500
#define Z2_MICROSTEPS 16
#define Z2_OVERCURRENT 2000
#define Z2_STALLCURRENT 1500

#define E0_MICROSTEPS 16
#define E0_OVERCURRENT 2000
#define E0_STALLCURRENT 1500
#define Z3_MICROSTEPS 16
#define Z3_OVERCURRENT 2000
#define Z3_STALLCURRENT 1500

#define E1_MICROSTEPS 16
#define E1_OVERCURRENT 2000
#define E1_STALLCURRENT 1500
#define E0_MICROSTEPS 16
#define E0_OVERCURRENT 2000
#define E0_STALLCURRENT 1500

#define E2_MICROSTEPS 16
#define E2_OVERCURRENT 2000
#define E2_STALLCURRENT 1500
#define E1_MICROSTEPS 16
#define E1_OVERCURRENT 2000
#define E1_STALLCURRENT 1500

#define E3_MICROSTEPS 16
#define E3_OVERCURRENT 2000
#define E3_STALLCURRENT 1500
#define E2_MICROSTEPS 16
#define E2_OVERCURRENT 2000
#define E2_STALLCURRENT 1500

#define E3_MICROSTEPS 16
#define E3_OVERCURRENT 2000
#define E3_STALLCURRENT 1500

#define E4_MICROSTEPS 16
#define E4_OVERCURRENT 2000
#define E4_STALLCURRENT 1500

#define E4_MICROSTEPS 16
#define E4_OVERCURRENT 2000
#define E4_STALLCURRENT 1500
#define E5_MICROSTEPS 16
#define E5_OVERCURRENT 2000
#define E5_STALLCURRENT 1500

#endif // L6470

Expand Down
3 changes: 3 additions & 0 deletions Marlin/src/HAL/HAL_AVR/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@
#error "SPINDLE_LASER_PWM_PIN is used by E3_AUTO_FAN_PIN."
#elif PIN_EXISTS(E4_AUTO_FAN) && SPINDLE_LASER_PWM_PIN == E4_AUTO_FAN_PIN
#error "SPINDLE_LASER_PWM_PIN is used by E4_AUTO_FAN_PIN."
#elif PIN_EXISTS(E5_AUTO_FAN) && SPINDLE_LASER_PWM_PIN == E5_AUTO_FAN_PIN
#error "SPINDLE_LASER_PWM_PIN is used by E5_AUTO_FAN_PIN."
#elif PIN_EXISTS(FAN) && SPINDLE_LASER_PWM_PIN == FAN_PIN
#error "SPINDLE_LASER_PWM_PIN is used FAN_PIN."
#elif PIN_EXISTS(FAN1) && SPINDLE_LASER_PWM_PIN == FAN1_PIN
Expand Down Expand Up @@ -106,6 +108,7 @@
|| defined(Y2_HARDWARE_SERIAL) \
|| defined(Z_HARDWARE_SERIAL ) \
|| defined(Z2_HARDWARE_SERIAL) \
|| defined(Z3_HARDWARE_SERIAL) \
|| defined(E0_HARDWARE_SERIAL) \
|| defined(E1_HARDWARE_SERIAL) \
|| defined(E2_HARDWARE_SERIAL) \
Expand Down
20 changes: 20 additions & 0 deletions Marlin/src/HAL/HAL_AVR/endstop_interrupts.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,26 @@ void setup_endstop_interrupts( void ) {
#endif
#endif

#if HAS_Z3_MAX
#if (digitalPinToInterrupt(Z3_MAX_PIN) != NOT_AN_INTERRUPT)
attachInterrupt(digitalPinToInterrupt(Z3_MAX_PIN), endstop_ISR, CHANGE);
#else
// Not all used endstop/probe -pins can raise interrupts. Please deactivate ENDSTOP_INTERRUPTS or change the pin configuration!
static_assert(digitalPinToPCICR(Z3_MAX_PIN) != NULL, "Z3_MAX_PIN is not interrupt-capable");
pciSetup(Z3_MAX_PIN);
#endif
#endif

#if HAS_Z3_MIN
#if (digitalPinToInterrupt(Z3_MIN_PIN) != NOT_AN_INTERRUPT)
attachInterrupt(digitalPinToInterrupt(Z3_MIN_PIN), endstop_ISR, CHANGE);
#else
// Not all used endstop/probe -pins can raise interrupts. Please deactivate ENDSTOP_INTERRUPTS or change the pin configuration!
static_assert(digitalPinToPCICR(Z3_MIN_PIN) != NULL, "Z3_MIN_PIN is not interrupt-capable");
pciSetup(Z3_MIN_PIN);
#endif
#endif

#if HAS_Z_MIN_PROBE_PIN
#if (digitalPinToInterrupt(Z_MIN_PROBE_PIN) != NOT_AN_INTERRUPT)
attachInterrupt(digitalPinToInterrupt(Z_MIN_PROBE_PIN), endstop_ISR, CHANGE);
Expand Down
6 changes: 6 additions & 0 deletions Marlin/src/HAL/HAL_DUE/endstop_interrupts.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ void setup_endstop_interrupts(void) {
#if HAS_Z2_MIN
attachInterrupt(digitalPinToInterrupt(Z2_MIN_PIN), endstop_ISR, CHANGE);
#endif
#if HAS_Z3_MAX
attachInterrupt(digitalPinToInterrupt(Z3_MAX_PIN), endstop_ISR, CHANGE);
#endif
#if HAS_Z3_MIN
attachInterrupt(digitalPinToInterrupt(Z3_MIN_PIN), endstop_ISR, CHANGE);
#endif
#if HAS_Z_MIN_PROBE_PIN
attachInterrupt(digitalPinToInterrupt(Z_MIN_PROBE_PIN), endstop_ISR, CHANGE);
#endif
Expand Down
6 changes: 6 additions & 0 deletions Marlin/src/HAL/HAL_ESP32/endstop_interrupts.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ void setup_endstop_interrupts(void) {
#if HAS_Z2_MIN
attachInterrupt(digitalPinToInterrupt(Z2_MIN_PIN), endstop_ISR, CHANGE);
#endif
#if HAS_Z3_MAX
attachInterrupt(digitalPinToInterrupt(Z3_MAX_PIN), endstop_ISR, CHANGE);
#endif
#if HAS_Z3_MIN
attachInterrupt(digitalPinToInterrupt(Z3_MIN_PIN), endstop_ISR, CHANGE);
#endif
#if HAS_Z_MIN_PROBE_PIN
attachInterrupt(digitalPinToInterrupt(Z_MIN_PROBE_PIN), endstop_ISR, CHANGE);
#endif
Expand Down
6 changes: 6 additions & 0 deletions Marlin/src/HAL/HAL_LPC1768/endstop_interrupts.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ void setup_endstop_interrupts(void) {
#endif
attachInterrupt(digitalPinToInterrupt(Z2_MIN_PIN), endstop_ISR, CHANGE);
#endif
#if HAS_Z3_MAX
attachInterrupt(digitalPinToInterrupt(Z3_MAX_PIN), endstop_ISR, CHANGE);
#endif
#if HAS_Z3_MIN
attachInterrupt(digitalPinToInterrupt(Z3_MIN_PIN), endstop_ISR, CHANGE);
#endif
#if HAS_Z_MIN_PROBE_PIN
#if !LPC1768_PIN_INTERRUPT_M(Z_MIN_PROBE_PIN)
#error "Z_MIN_PROBE_PIN is not an INTERRUPT capable pin."
Expand Down
6 changes: 6 additions & 0 deletions Marlin/src/HAL/HAL_STM32F1/endstop_interrupts.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ void setup_endstop_interrupts(void) {
#if HAS_Z2_MIN
attachInterrupt(Z2_MIN_PIN, endstop_ISR, CHANGE);
#endif
#if HAS_Z3_MAX
attachInterrupt(Z3_MAX_PIN, endstop_ISR, CHANGE);
#endif
#if HAS_Z3_MIN
attachInterrupt(Z3_MIN_PIN, endstop_ISR, CHANGE);
#endif
#if HAS_Z_MIN_PROBE_PIN
attachInterrupt(Z_MIN_PROBE_PIN, endstop_ISR, CHANGE);
#endif
Expand Down
9 changes: 2 additions & 7 deletions Marlin/src/HAL/HAL_STM32F4/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@
#define ISRS_ENABLED() (!__get_PRIMASK())
#define ENABLE_ISRS() __enable_irq()
#define DISABLE_ISRS() __disable_irq()
#define cli() __disable_irq()
#define sei() __enable_irq()

// On AVR this is in math.h?
#define square(x) ((x)*(x))
Expand Down Expand Up @@ -163,12 +165,6 @@ extern uint16_t HAL_adc_result;
// Public functions
// --------------------------------------------------------------------------

// Disable interrupts
#define cli() do { DISABLE_TEMPERATURE_INTERRUPT(); DISABLE_STEPPER_DRIVER_INTERRUPT(); } while(0)

// Enable interrupts
#define sei() do { ENABLE_TEMPERATURE_INTERRUPT(); ENABLE_STEPPER_DRIVER_INTERRUPT(); } while(0)

// Memory related
#define __bss_end __bss_end__

Expand Down Expand Up @@ -209,7 +205,6 @@ void spiSend(uint32_t chan, const uint8_t* buf, size_t n);
/** Read single byte from specified SPI channel */
uint8_t spiRec(uint32_t chan);


// EEPROM

/**
Expand Down
Loading