Browse Source

Clean up spacing and duplicate entries

• Removing trailing whitespace
• Adjusting indention for better readability
• Removing duplicated entries
Richard Wackerbarth 9 years ago
parent
commit
0cebe85e65

+ 65
- 68
Marlin/Configuration_adv.h View File

137
 #if ENABLED(Z_DUAL_STEPPER_DRIVERS)
137
 #if ENABLED(Z_DUAL_STEPPER_DRIVERS)
138
 
138
 
139
   // Z_DUAL_ENDSTOPS is a feature to enable the use of 2 endstops for both Z steppers - Let's call them Z stepper and Z2 stepper.
139
   // Z_DUAL_ENDSTOPS is a feature to enable the use of 2 endstops for both Z steppers - Let's call them Z stepper and Z2 stepper.
140
-  // That way the machine is capable to align the bed during home, since both Z steppers are homed. 
140
+  // That way the machine is capable to align the bed during home, since both Z steppers are homed.
141
   // There is also an implementation of M666 (software endstops adjustment) to this feature.
141
   // There is also an implementation of M666 (software endstops adjustment) to this feature.
142
   // After Z homing, this adjustment is applied to just one of the steppers in order to align the bed.
142
   // After Z homing, this adjustment is applied to just one of the steppers in order to align the bed.
143
   // One just need to home the Z axis and measure the distance difference between both Z axis and apply the math: Z adjust = Z - Z2.
143
   // One just need to home the Z axis and measure the distance difference between both Z axis and apply the math: Z adjust = Z - Z2.
335
   // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
335
   // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
336
   // we don't have a big font for Cyrillic, Kana
336
   // we don't have a big font for Cyrillic, Kana
337
   //#define USE_BIG_EDIT_FONT
337
   //#define USE_BIG_EDIT_FONT
338
- 
339
-  // If you have spare 2300Byte of progmem and want to use a 
338
+
339
+  // If you have spare 2300Byte of progmem and want to use a
340
   // smaller font on the Info-screen uncomment the next line.
340
   // smaller font on the Info-screen uncomment the next line.
341
   //#define USE_SMALL_INFOFONT
341
   //#define USE_SMALL_INFOFONT
342
 #endif // DOGLCD
342
 #endif // DOGLCD
347
 //#define USE_WATCHDOG
347
 //#define USE_WATCHDOG
348
 
348
 
349
 #if ENABLED(USE_WATCHDOG)
349
 #if ENABLED(USE_WATCHDOG)
350
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
351
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
352
-//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
353
-//#define WATCHDOG_RESET_MANUAL
350
+  // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
351
+  // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
352
+  //  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
353
+  //#define WATCHDOG_RESET_MANUAL
354
 #endif
354
 #endif
355
 
355
 
356
 // @section lcd
356
 // @section lcd
389
 #define MM_PER_ARC_SEGMENT 1
389
 #define MM_PER_ARC_SEGMENT 1
390
 #define N_ARC_CORRECTION 25
390
 #define N_ARC_CORRECTION 25
391
 
391
 
392
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
392
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
393
 
393
 
394
 // @section temperature
394
 // @section temperature
395
 
395
 
461
 #endif
461
 #endif
462
 
462
 
463
 /******************************************************************************\
463
 /******************************************************************************\
464
- * enable this section if you have TMC26X motor drivers. 
464
+ * enable this section if you have TMC26X motor drivers.
465
  * you need to import the TMC26XStepper library into the arduino IDE for this
465
  * you need to import the TMC26XStepper library into the arduino IDE for this
466
  ******************************************************************************/
466
  ******************************************************************************/
467
 
467
 
470
 //#define HAVE_TMCDRIVER
470
 //#define HAVE_TMCDRIVER
471
 #if ENABLED(HAVE_TMCDRIVER)
471
 #if ENABLED(HAVE_TMCDRIVER)
472
 
472
 
473
-//#define X_IS_TMC
473
+  //#define X_IS_TMC
474
   #define X_MAX_CURRENT 1000  //in mA
474
   #define X_MAX_CURRENT 1000  //in mA
475
   #define X_SENSE_RESISTOR 91 //in mOhms
475
   #define X_SENSE_RESISTOR 91 //in mOhms
476
   #define X_MICROSTEPS 16     //number of microsteps
476
   #define X_MICROSTEPS 16     //number of microsteps
477
-  
478
-//#define X2_IS_TMC
477
+
478
+  //#define X2_IS_TMC
479
   #define X2_MAX_CURRENT 1000  //in mA
479
   #define X2_MAX_CURRENT 1000  //in mA
480
   #define X2_SENSE_RESISTOR 91 //in mOhms
480
   #define X2_SENSE_RESISTOR 91 //in mOhms
481
   #define X2_MICROSTEPS 16     //number of microsteps
481
   #define X2_MICROSTEPS 16     //number of microsteps
482
-  
483
-//#define Y_IS_TMC
482
+
483
+  //#define Y_IS_TMC
484
   #define Y_MAX_CURRENT 1000  //in mA
484
   #define Y_MAX_CURRENT 1000  //in mA
485
   #define Y_SENSE_RESISTOR 91 //in mOhms
485
   #define Y_SENSE_RESISTOR 91 //in mOhms
486
   #define Y_MICROSTEPS 16     //number of microsteps
486
   #define Y_MICROSTEPS 16     //number of microsteps
487
-  
488
-//#define Y2_IS_TMC
487
+
488
+  //#define Y2_IS_TMC
489
   #define Y2_MAX_CURRENT 1000  //in mA
489
   #define Y2_MAX_CURRENT 1000  //in mA
490
   #define Y2_SENSE_RESISTOR 91 //in mOhms
490
   #define Y2_SENSE_RESISTOR 91 //in mOhms
491
-  #define Y2_MICROSTEPS 16     //number of microsteps 
492
-  
493
-//#define Z_IS_TMC
491
+  #define Y2_MICROSTEPS 16     //number of microsteps
492
+
493
+  //#define Z_IS_TMC
494
   #define Z_MAX_CURRENT 1000  //in mA
494
   #define Z_MAX_CURRENT 1000  //in mA
495
   #define Z_SENSE_RESISTOR 91 //in mOhms
495
   #define Z_SENSE_RESISTOR 91 //in mOhms
496
   #define Z_MICROSTEPS 16     //number of microsteps
496
   #define Z_MICROSTEPS 16     //number of microsteps
497
-  
498
-//#define Z2_IS_TMC
497
+
498
+  //#define Z2_IS_TMC
499
   #define Z2_MAX_CURRENT 1000  //in mA
499
   #define Z2_MAX_CURRENT 1000  //in mA
500
   #define Z2_SENSE_RESISTOR 91 //in mOhms
500
   #define Z2_SENSE_RESISTOR 91 //in mOhms
501
   #define Z2_MICROSTEPS 16     //number of microsteps
501
   #define Z2_MICROSTEPS 16     //number of microsteps
502
-  
503
-//#define E0_IS_TMC
502
+
503
+  //#define E0_IS_TMC
504
   #define E0_MAX_CURRENT 1000  //in mA
504
   #define E0_MAX_CURRENT 1000  //in mA
505
   #define E0_SENSE_RESISTOR 91 //in mOhms
505
   #define E0_SENSE_RESISTOR 91 //in mOhms
506
   #define E0_MICROSTEPS 16     //number of microsteps
506
   #define E0_MICROSTEPS 16     //number of microsteps
507
-  
508
-//#define E1_IS_TMC
507
+
508
+  //#define E1_IS_TMC
509
   #define E1_MAX_CURRENT 1000  //in mA
509
   #define E1_MAX_CURRENT 1000  //in mA
510
   #define E1_SENSE_RESISTOR 91 //in mOhms
510
   #define E1_SENSE_RESISTOR 91 //in mOhms
511
-  #define E1_MICROSTEPS 16     //number of microsteps 
512
-  
513
-//#define E2_IS_TMC
511
+  #define E1_MICROSTEPS 16     //number of microsteps
512
+
513
+  //#define E2_IS_TMC
514
   #define E2_MAX_CURRENT 1000  //in mA
514
   #define E2_MAX_CURRENT 1000  //in mA
515
   #define E2_SENSE_RESISTOR 91 //in mOhms
515
   #define E2_SENSE_RESISTOR 91 //in mOhms
516
-  #define E2_MICROSTEPS 16     //number of microsteps 
517
-  
518
-//#define E3_IS_TMC
516
+  #define E2_MICROSTEPS 16     //number of microsteps
517
+
518
+  //#define E3_IS_TMC
519
   #define E3_MAX_CURRENT 1000  //in mA
519
   #define E3_MAX_CURRENT 1000  //in mA
520
   #define E3_SENSE_RESISTOR 91 //in mOhms
520
   #define E3_SENSE_RESISTOR 91 //in mOhms
521
-  #define E3_MICROSTEPS 16     //number of microsteps   
521
+  #define E3_MICROSTEPS 16     //number of microsteps
522
 
522
 
523
 #endif
523
 #endif
524
 
524
 
525
 /******************************************************************************\
525
 /******************************************************************************\
526
- * enable this section if you have L6470  motor drivers. 
526
+ * enable this section if you have L6470  motor drivers.
527
  * you need to import the L6470 library into the arduino IDE for this
527
  * you need to import the L6470 library into the arduino IDE for this
528
  ******************************************************************************/
528
  ******************************************************************************/
529
 
529
 
532
 //#define HAVE_L6470DRIVER
532
 //#define HAVE_L6470DRIVER
533
 #if ENABLED(HAVE_L6470DRIVER)
533
 #if ENABLED(HAVE_L6470DRIVER)
534
 
534
 
535
-//#define X_IS_L6470
535
+  //#define X_IS_L6470
536
   #define X_MICROSTEPS 16     //number of microsteps
536
   #define X_MICROSTEPS 16     //number of microsteps
537
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
537
+  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
538
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
538
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
539
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
539
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
540
-  
541
-//#define X2_IS_L6470
540
+
541
+  //#define X2_IS_L6470
542
   #define X2_MICROSTEPS 16     //number of microsteps
542
   #define X2_MICROSTEPS 16     //number of microsteps
543
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
543
+  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
544
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
545
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
545
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
546
-  
547
-//#define Y_IS_L6470
546
+
547
+  //#define Y_IS_L6470
548
   #define Y_MICROSTEPS 16     //number of microsteps
548
   #define Y_MICROSTEPS 16     //number of microsteps
549
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
549
+  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
550
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
551
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
551
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
552
-  
553
-//#define Y2_IS_L6470
554
-  #define Y2_MICROSTEPS 16     //number of microsteps 
555
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
552
+
553
+  //#define Y2_IS_L6470
554
+  #define Y2_MICROSTEPS 16     //number of microsteps
555
+  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
556
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
557
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall 
558
-  
559
-//#define Z_IS_L6470
557
+  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
558
+
559
+  //#define Z_IS_L6470
560
   #define Z_MICROSTEPS 16     //number of microsteps
560
   #define Z_MICROSTEPS 16     //number of microsteps
561
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
561
+  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
562
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
563
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
563
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
564
-  
565
-//#define Z2_IS_L6470
564
+
565
+  //#define Z2_IS_L6470
566
   #define Z2_MICROSTEPS 16     //number of microsteps
566
   #define Z2_MICROSTEPS 16     //number of microsteps
567
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
567
+  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
568
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
569
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
569
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
570
-  
571
-//#define E0_IS_L6470
570
+
571
+  //#define E0_IS_L6470
572
   #define E0_MICROSTEPS 16     //number of microsteps
572
   #define E0_MICROSTEPS 16     //number of microsteps
573
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
573
+  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
574
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
575
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
575
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
576
-  
577
-//#define E1_IS_L6470
578
-  #define E1_MICROSTEPS 16     //number of microsteps 
576
+
577
+  //#define E1_IS_L6470
579
   #define E1_MICROSTEPS 16     //number of microsteps
578
   #define E1_MICROSTEPS 16     //number of microsteps
580
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
579
+  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
581
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
582
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
581
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
583
-  
584
-//#define E2_IS_L6470
585
-  #define E2_MICROSTEPS 16     //number of microsteps 
582
+
583
+  //#define E2_IS_L6470
586
   #define E2_MICROSTEPS 16     //number of microsteps
584
   #define E2_MICROSTEPS 16     //number of microsteps
587
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
585
+  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
588
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
589
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
587
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
590
-  
591
-//#define E3_IS_L6470
592
-  #define E3_MICROSTEPS 16     //number of microsteps   
588
+
589
+  //#define E3_IS_L6470
593
   #define E3_MICROSTEPS 16     //number of microsteps
590
   #define E3_MICROSTEPS 16     //number of microsteps
594
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
591
+  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
595
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
596
   #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
593
   #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
597
-  
594
+
598
 #endif
595
 #endif
599
 
596
 
600
 #include "Conditionals.h"
597
 #include "Conditionals.h"

+ 25
- 25
Marlin/example_configurations/Felix/Configuration_adv.h View File

356
 //#define USE_WATCHDOG
356
 //#define USE_WATCHDOG
357
 
357
 
358
 #if ENABLED(USE_WATCHDOG)
358
 #if ENABLED(USE_WATCHDOG)
359
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
360
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
361
-//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
362
-//#define WATCHDOG_RESET_MANUAL
359
+  // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
360
+  // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
361
+  //  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
362
+  //#define WATCHDOG_RESET_MANUAL
363
 #endif
363
 #endif
364
 
364
 
365
 // @section lcd
365
 // @section lcd
397
 #define MM_PER_ARC_SEGMENT 1
397
 #define MM_PER_ARC_SEGMENT 1
398
 #define N_ARC_CORRECTION 25
398
 #define N_ARC_CORRECTION 25
399
 
399
 
400
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
400
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
401
 
401
 
402
 // @section temperature
402
 // @section temperature
403
 
403
 
475
 //#define HAVE_TMCDRIVER
475
 //#define HAVE_TMCDRIVER
476
 #if ENABLED(HAVE_TMCDRIVER)
476
 #if ENABLED(HAVE_TMCDRIVER)
477
 
477
 
478
-//#define X_IS_TMC
478
+  //#define X_IS_TMC
479
   #define X_MAX_CURRENT 1000  //in mA
479
   #define X_MAX_CURRENT 1000  //in mA
480
   #define X_SENSE_RESISTOR 91 //in mOhms
480
   #define X_SENSE_RESISTOR 91 //in mOhms
481
   #define X_MICROSTEPS 16     //number of microsteps
481
   #define X_MICROSTEPS 16     //number of microsteps
482
 
482
 
483
-//#define X2_IS_TMC
483
+  //#define X2_IS_TMC
484
   #define X2_MAX_CURRENT 1000  //in mA
484
   #define X2_MAX_CURRENT 1000  //in mA
485
   #define X2_SENSE_RESISTOR 91 //in mOhms
485
   #define X2_SENSE_RESISTOR 91 //in mOhms
486
   #define X2_MICROSTEPS 16     //number of microsteps
486
   #define X2_MICROSTEPS 16     //number of microsteps
487
 
487
 
488
-//#define Y_IS_TMC
488
+  //#define Y_IS_TMC
489
   #define Y_MAX_CURRENT 1000  //in mA
489
   #define Y_MAX_CURRENT 1000  //in mA
490
   #define Y_SENSE_RESISTOR 91 //in mOhms
490
   #define Y_SENSE_RESISTOR 91 //in mOhms
491
   #define Y_MICROSTEPS 16     //number of microsteps
491
   #define Y_MICROSTEPS 16     //number of microsteps
492
 
492
 
493
-//#define Y2_IS_TMC
493
+  //#define Y2_IS_TMC
494
   #define Y2_MAX_CURRENT 1000  //in mA
494
   #define Y2_MAX_CURRENT 1000  //in mA
495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
496
   #define Y2_MICROSTEPS 16     //number of microsteps
496
   #define Y2_MICROSTEPS 16     //number of microsteps
497
 
497
 
498
-//#define Z_IS_TMC
498
+  //#define Z_IS_TMC
499
   #define Z_MAX_CURRENT 1000  //in mA
499
   #define Z_MAX_CURRENT 1000  //in mA
500
   #define Z_SENSE_RESISTOR 91 //in mOhms
500
   #define Z_SENSE_RESISTOR 91 //in mOhms
501
   #define Z_MICROSTEPS 16     //number of microsteps
501
   #define Z_MICROSTEPS 16     //number of microsteps
502
 
502
 
503
-//#define Z2_IS_TMC
503
+  //#define Z2_IS_TMC
504
   #define Z2_MAX_CURRENT 1000  //in mA
504
   #define Z2_MAX_CURRENT 1000  //in mA
505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
506
   #define Z2_MICROSTEPS 16     //number of microsteps
506
   #define Z2_MICROSTEPS 16     //number of microsteps
507
 
507
 
508
-//#define E0_IS_TMC
508
+  //#define E0_IS_TMC
509
   #define E0_MAX_CURRENT 1000  //in mA
509
   #define E0_MAX_CURRENT 1000  //in mA
510
   #define E0_SENSE_RESISTOR 91 //in mOhms
510
   #define E0_SENSE_RESISTOR 91 //in mOhms
511
   #define E0_MICROSTEPS 16     //number of microsteps
511
   #define E0_MICROSTEPS 16     //number of microsteps
512
 
512
 
513
-//#define E1_IS_TMC
513
+  //#define E1_IS_TMC
514
   #define E1_MAX_CURRENT 1000  //in mA
514
   #define E1_MAX_CURRENT 1000  //in mA
515
   #define E1_SENSE_RESISTOR 91 //in mOhms
515
   #define E1_SENSE_RESISTOR 91 //in mOhms
516
   #define E1_MICROSTEPS 16     //number of microsteps
516
   #define E1_MICROSTEPS 16     //number of microsteps
517
 
517
 
518
-//#define E2_IS_TMC
518
+  //#define E2_IS_TMC
519
   #define E2_MAX_CURRENT 1000  //in mA
519
   #define E2_MAX_CURRENT 1000  //in mA
520
   #define E2_SENSE_RESISTOR 91 //in mOhms
520
   #define E2_SENSE_RESISTOR 91 //in mOhms
521
   #define E2_MICROSTEPS 16     //number of microsteps
521
   #define E2_MICROSTEPS 16     //number of microsteps
522
 
522
 
523
-//#define E3_IS_TMC
523
+  //#define E3_IS_TMC
524
   #define E3_MAX_CURRENT 1000  //in mA
524
   #define E3_MAX_CURRENT 1000  //in mA
525
   #define E3_SENSE_RESISTOR 91 //in mOhms
525
   #define E3_SENSE_RESISTOR 91 //in mOhms
526
   #define E3_MICROSTEPS 16     //number of microsteps
526
   #define E3_MICROSTEPS 16     //number of microsteps
537
 //#define HAVE_L6470DRIVER
537
 //#define HAVE_L6470DRIVER
538
 #if ENABLED(HAVE_L6470DRIVER)
538
 #if ENABLED(HAVE_L6470DRIVER)
539
 
539
 
540
-//#define X_IS_L6470
540
+  //#define X_IS_L6470
541
   #define X_MICROSTEPS 16     //number of microsteps
541
   #define X_MICROSTEPS 16     //number of microsteps
542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
544
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
545
 
545
 
546
-//#define X2_IS_L6470
546
+  //#define X2_IS_L6470
547
   #define X2_MICROSTEPS 16     //number of microsteps
547
   #define X2_MICROSTEPS 16     //number of microsteps
548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
550
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
551
 
551
 
552
-//#define Y_IS_L6470
552
+  //#define Y_IS_L6470
553
   #define Y_MICROSTEPS 16     //number of microsteps
553
   #define Y_MICROSTEPS 16     //number of microsteps
554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
556
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
557
 
557
 
558
-//#define Y2_IS_L6470
558
+  //#define Y2_IS_L6470
559
   #define Y2_MICROSTEPS 16     //number of microsteps
559
   #define Y2_MICROSTEPS 16     //number of microsteps
560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
562
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
563
 
563
 
564
-//#define Z_IS_L6470
564
+  //#define Z_IS_L6470
565
   #define Z_MICROSTEPS 16     //number of microsteps
565
   #define Z_MICROSTEPS 16     //number of microsteps
566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
568
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
569
 
569
 
570
-//#define Z2_IS_L6470
570
+  //#define Z2_IS_L6470
571
   #define Z2_MICROSTEPS 16     //number of microsteps
571
   #define Z2_MICROSTEPS 16     //number of microsteps
572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
574
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
575
 
575
 
576
-//#define E0_IS_L6470
576
+  //#define E0_IS_L6470
577
   #define E0_MICROSTEPS 16     //number of microsteps
577
   #define E0_MICROSTEPS 16     //number of microsteps
578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
580
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
581
 
581
 
582
-//#define E1_IS_L6470
582
+  //#define E1_IS_L6470
583
   #define E1_MICROSTEPS 16     //number of microsteps
583
   #define E1_MICROSTEPS 16     //number of microsteps
584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
586
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
587
 
587
 
588
-//#define E2_IS_L6470
588
+  //#define E2_IS_L6470
589
   #define E2_MICROSTEPS 16     //number of microsteps
589
   #define E2_MICROSTEPS 16     //number of microsteps
590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
592
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
593
 
593
 
594
-//#define E3_IS_L6470
594
+  //#define E3_IS_L6470
595
   #define E3_MICROSTEPS 16     //number of microsteps
595
   #define E3_MICROSTEPS 16     //number of microsteps
596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
597
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
597
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off

+ 25
- 25
Marlin/example_configurations/Hephestos/Configuration_adv.h View File

356
 //#define USE_WATCHDOG
356
 //#define USE_WATCHDOG
357
 
357
 
358
 #if ENABLED(USE_WATCHDOG)
358
 #if ENABLED(USE_WATCHDOG)
359
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
360
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
361
-//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
362
-//#define WATCHDOG_RESET_MANUAL
359
+  // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
360
+  // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
361
+  //  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
362
+  //#define WATCHDOG_RESET_MANUAL
363
 #endif
363
 #endif
364
 
364
 
365
 // @section lcd
365
 // @section lcd
397
 #define MM_PER_ARC_SEGMENT 1
397
 #define MM_PER_ARC_SEGMENT 1
398
 #define N_ARC_CORRECTION 25
398
 #define N_ARC_CORRECTION 25
399
 
399
 
400
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
400
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
401
 
401
 
402
 // @section temperature
402
 // @section temperature
403
 
403
 
475
 //#define HAVE_TMCDRIVER
475
 //#define HAVE_TMCDRIVER
476
 #if ENABLED(HAVE_TMCDRIVER)
476
 #if ENABLED(HAVE_TMCDRIVER)
477
 
477
 
478
-//#define X_IS_TMC
478
+  //#define X_IS_TMC
479
   #define X_MAX_CURRENT 1000  //in mA
479
   #define X_MAX_CURRENT 1000  //in mA
480
   #define X_SENSE_RESISTOR 91 //in mOhms
480
   #define X_SENSE_RESISTOR 91 //in mOhms
481
   #define X_MICROSTEPS 16     //number of microsteps
481
   #define X_MICROSTEPS 16     //number of microsteps
482
 
482
 
483
-//#define X2_IS_TMC
483
+  //#define X2_IS_TMC
484
   #define X2_MAX_CURRENT 1000  //in mA
484
   #define X2_MAX_CURRENT 1000  //in mA
485
   #define X2_SENSE_RESISTOR 91 //in mOhms
485
   #define X2_SENSE_RESISTOR 91 //in mOhms
486
   #define X2_MICROSTEPS 16     //number of microsteps
486
   #define X2_MICROSTEPS 16     //number of microsteps
487
 
487
 
488
-//#define Y_IS_TMC
488
+  //#define Y_IS_TMC
489
   #define Y_MAX_CURRENT 1000  //in mA
489
   #define Y_MAX_CURRENT 1000  //in mA
490
   #define Y_SENSE_RESISTOR 91 //in mOhms
490
   #define Y_SENSE_RESISTOR 91 //in mOhms
491
   #define Y_MICROSTEPS 16     //number of microsteps
491
   #define Y_MICROSTEPS 16     //number of microsteps
492
 
492
 
493
-//#define Y2_IS_TMC
493
+  //#define Y2_IS_TMC
494
   #define Y2_MAX_CURRENT 1000  //in mA
494
   #define Y2_MAX_CURRENT 1000  //in mA
495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
496
   #define Y2_MICROSTEPS 16     //number of microsteps
496
   #define Y2_MICROSTEPS 16     //number of microsteps
497
 
497
 
498
-//#define Z_IS_TMC
498
+  //#define Z_IS_TMC
499
   #define Z_MAX_CURRENT 1000  //in mA
499
   #define Z_MAX_CURRENT 1000  //in mA
500
   #define Z_SENSE_RESISTOR 91 //in mOhms
500
   #define Z_SENSE_RESISTOR 91 //in mOhms
501
   #define Z_MICROSTEPS 16     //number of microsteps
501
   #define Z_MICROSTEPS 16     //number of microsteps
502
 
502
 
503
-//#define Z2_IS_TMC
503
+  //#define Z2_IS_TMC
504
   #define Z2_MAX_CURRENT 1000  //in mA
504
   #define Z2_MAX_CURRENT 1000  //in mA
505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
506
   #define Z2_MICROSTEPS 16     //number of microsteps
506
   #define Z2_MICROSTEPS 16     //number of microsteps
507
 
507
 
508
-//#define E0_IS_TMC
508
+  //#define E0_IS_TMC
509
   #define E0_MAX_CURRENT 1000  //in mA
509
   #define E0_MAX_CURRENT 1000  //in mA
510
   #define E0_SENSE_RESISTOR 91 //in mOhms
510
   #define E0_SENSE_RESISTOR 91 //in mOhms
511
   #define E0_MICROSTEPS 16     //number of microsteps
511
   #define E0_MICROSTEPS 16     //number of microsteps
512
 
512
 
513
-//#define E1_IS_TMC
513
+  //#define E1_IS_TMC
514
   #define E1_MAX_CURRENT 1000  //in mA
514
   #define E1_MAX_CURRENT 1000  //in mA
515
   #define E1_SENSE_RESISTOR 91 //in mOhms
515
   #define E1_SENSE_RESISTOR 91 //in mOhms
516
   #define E1_MICROSTEPS 16     //number of microsteps
516
   #define E1_MICROSTEPS 16     //number of microsteps
517
 
517
 
518
-//#define E2_IS_TMC
518
+  //#define E2_IS_TMC
519
   #define E2_MAX_CURRENT 1000  //in mA
519
   #define E2_MAX_CURRENT 1000  //in mA
520
   #define E2_SENSE_RESISTOR 91 //in mOhms
520
   #define E2_SENSE_RESISTOR 91 //in mOhms
521
   #define E2_MICROSTEPS 16     //number of microsteps
521
   #define E2_MICROSTEPS 16     //number of microsteps
522
 
522
 
523
-//#define E3_IS_TMC
523
+  //#define E3_IS_TMC
524
   #define E3_MAX_CURRENT 1000  //in mA
524
   #define E3_MAX_CURRENT 1000  //in mA
525
   #define E3_SENSE_RESISTOR 91 //in mOhms
525
   #define E3_SENSE_RESISTOR 91 //in mOhms
526
   #define E3_MICROSTEPS 16     //number of microsteps
526
   #define E3_MICROSTEPS 16     //number of microsteps
537
 //#define HAVE_L6470DRIVER
537
 //#define HAVE_L6470DRIVER
538
 #if ENABLED(HAVE_L6470DRIVER)
538
 #if ENABLED(HAVE_L6470DRIVER)
539
 
539
 
540
-//#define X_IS_L6470
540
+  //#define X_IS_L6470
541
   #define X_MICROSTEPS 16     //number of microsteps
541
   #define X_MICROSTEPS 16     //number of microsteps
542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
544
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
545
 
545
 
546
-//#define X2_IS_L6470
546
+  //#define X2_IS_L6470
547
   #define X2_MICROSTEPS 16     //number of microsteps
547
   #define X2_MICROSTEPS 16     //number of microsteps
548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
550
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
551
 
551
 
552
-//#define Y_IS_L6470
552
+  //#define Y_IS_L6470
553
   #define Y_MICROSTEPS 16     //number of microsteps
553
   #define Y_MICROSTEPS 16     //number of microsteps
554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
556
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
557
 
557
 
558
-//#define Y2_IS_L6470
558
+  //#define Y2_IS_L6470
559
   #define Y2_MICROSTEPS 16     //number of microsteps
559
   #define Y2_MICROSTEPS 16     //number of microsteps
560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
562
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
563
 
563
 
564
-//#define Z_IS_L6470
564
+  //#define Z_IS_L6470
565
   #define Z_MICROSTEPS 16     //number of microsteps
565
   #define Z_MICROSTEPS 16     //number of microsteps
566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
568
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
569
 
569
 
570
-//#define Z2_IS_L6470
570
+  //#define Z2_IS_L6470
571
   #define Z2_MICROSTEPS 16     //number of microsteps
571
   #define Z2_MICROSTEPS 16     //number of microsteps
572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
574
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
575
 
575
 
576
-//#define E0_IS_L6470
576
+  //#define E0_IS_L6470
577
   #define E0_MICROSTEPS 16     //number of microsteps
577
   #define E0_MICROSTEPS 16     //number of microsteps
578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
580
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
581
 
581
 
582
-//#define E1_IS_L6470
582
+  //#define E1_IS_L6470
583
   #define E1_MICROSTEPS 16     //number of microsteps
583
   #define E1_MICROSTEPS 16     //number of microsteps
584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
586
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
587
 
587
 
588
-//#define E2_IS_L6470
588
+  //#define E2_IS_L6470
589
   #define E2_MICROSTEPS 16     //number of microsteps
589
   #define E2_MICROSTEPS 16     //number of microsteps
590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
592
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
593
 
593
 
594
-//#define E3_IS_L6470
594
+  //#define E3_IS_L6470
595
   #define E3_MICROSTEPS 16     //number of microsteps
595
   #define E3_MICROSTEPS 16     //number of microsteps
596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
597
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
597
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off

+ 25
- 25
Marlin/example_configurations/K8200/Configuration_adv.h View File

356
 //#define USE_WATCHDOG
356
 //#define USE_WATCHDOG
357
 
357
 
358
 #if ENABLED(USE_WATCHDOG)
358
 #if ENABLED(USE_WATCHDOG)
359
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
360
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
361
-//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
362
-//#define WATCHDOG_RESET_MANUAL
359
+  // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
360
+  // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
361
+  //  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
362
+  //#define WATCHDOG_RESET_MANUAL
363
 #endif
363
 #endif
364
 
364
 
365
 // @section lcd
365
 // @section lcd
397
 #define MM_PER_ARC_SEGMENT 1
397
 #define MM_PER_ARC_SEGMENT 1
398
 #define N_ARC_CORRECTION 25
398
 #define N_ARC_CORRECTION 25
399
 
399
 
400
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
400
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
401
 
401
 
402
 // @section temperature
402
 // @section temperature
403
 
403
 
475
 //#define HAVE_TMCDRIVER
475
 //#define HAVE_TMCDRIVER
476
 #if ENABLED(HAVE_TMCDRIVER)
476
 #if ENABLED(HAVE_TMCDRIVER)
477
 
477
 
478
-//#define X_IS_TMC
478
+  //#define X_IS_TMC
479
   #define X_MAX_CURRENT 1000  //in mA
479
   #define X_MAX_CURRENT 1000  //in mA
480
   #define X_SENSE_RESISTOR 91 //in mOhms
480
   #define X_SENSE_RESISTOR 91 //in mOhms
481
   #define X_MICROSTEPS 16     //number of microsteps
481
   #define X_MICROSTEPS 16     //number of microsteps
482
 
482
 
483
-//#define X2_IS_TMC
483
+  //#define X2_IS_TMC
484
   #define X2_MAX_CURRENT 1000  //in mA
484
   #define X2_MAX_CURRENT 1000  //in mA
485
   #define X2_SENSE_RESISTOR 91 //in mOhms
485
   #define X2_SENSE_RESISTOR 91 //in mOhms
486
   #define X2_MICROSTEPS 16     //number of microsteps
486
   #define X2_MICROSTEPS 16     //number of microsteps
487
 
487
 
488
-//#define Y_IS_TMC
488
+  //#define Y_IS_TMC
489
   #define Y_MAX_CURRENT 1000  //in mA
489
   #define Y_MAX_CURRENT 1000  //in mA
490
   #define Y_SENSE_RESISTOR 91 //in mOhms
490
   #define Y_SENSE_RESISTOR 91 //in mOhms
491
   #define Y_MICROSTEPS 16     //number of microsteps
491
   #define Y_MICROSTEPS 16     //number of microsteps
492
 
492
 
493
-//#define Y2_IS_TMC
493
+  //#define Y2_IS_TMC
494
   #define Y2_MAX_CURRENT 1000  //in mA
494
   #define Y2_MAX_CURRENT 1000  //in mA
495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
496
   #define Y2_MICROSTEPS 16     //number of microsteps
496
   #define Y2_MICROSTEPS 16     //number of microsteps
497
 
497
 
498
-//#define Z_IS_TMC
498
+  //#define Z_IS_TMC
499
   #define Z_MAX_CURRENT 1000  //in mA
499
   #define Z_MAX_CURRENT 1000  //in mA
500
   #define Z_SENSE_RESISTOR 91 //in mOhms
500
   #define Z_SENSE_RESISTOR 91 //in mOhms
501
   #define Z_MICROSTEPS 16     //number of microsteps
501
   #define Z_MICROSTEPS 16     //number of microsteps
502
 
502
 
503
-//#define Z2_IS_TMC
503
+  //#define Z2_IS_TMC
504
   #define Z2_MAX_CURRENT 1000  //in mA
504
   #define Z2_MAX_CURRENT 1000  //in mA
505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
506
   #define Z2_MICROSTEPS 16     //number of microsteps
506
   #define Z2_MICROSTEPS 16     //number of microsteps
507
 
507
 
508
-//#define E0_IS_TMC
508
+  //#define E0_IS_TMC
509
   #define E0_MAX_CURRENT 1000  //in mA
509
   #define E0_MAX_CURRENT 1000  //in mA
510
   #define E0_SENSE_RESISTOR 91 //in mOhms
510
   #define E0_SENSE_RESISTOR 91 //in mOhms
511
   #define E0_MICROSTEPS 16     //number of microsteps
511
   #define E0_MICROSTEPS 16     //number of microsteps
512
 
512
 
513
-//#define E1_IS_TMC
513
+  //#define E1_IS_TMC
514
   #define E1_MAX_CURRENT 1000  //in mA
514
   #define E1_MAX_CURRENT 1000  //in mA
515
   #define E1_SENSE_RESISTOR 91 //in mOhms
515
   #define E1_SENSE_RESISTOR 91 //in mOhms
516
   #define E1_MICROSTEPS 16     //number of microsteps
516
   #define E1_MICROSTEPS 16     //number of microsteps
517
 
517
 
518
-//#define E2_IS_TMC
518
+  //#define E2_IS_TMC
519
   #define E2_MAX_CURRENT 1000  //in mA
519
   #define E2_MAX_CURRENT 1000  //in mA
520
   #define E2_SENSE_RESISTOR 91 //in mOhms
520
   #define E2_SENSE_RESISTOR 91 //in mOhms
521
   #define E2_MICROSTEPS 16     //number of microsteps
521
   #define E2_MICROSTEPS 16     //number of microsteps
522
 
522
 
523
-//#define E3_IS_TMC
523
+  //#define E3_IS_TMC
524
   #define E3_MAX_CURRENT 1000  //in mA
524
   #define E3_MAX_CURRENT 1000  //in mA
525
   #define E3_SENSE_RESISTOR 91 //in mOhms
525
   #define E3_SENSE_RESISTOR 91 //in mOhms
526
   #define E3_MICROSTEPS 16     //number of microsteps
526
   #define E3_MICROSTEPS 16     //number of microsteps
537
 //#define HAVE_L6470DRIVER
537
 //#define HAVE_L6470DRIVER
538
 #if ENABLED(HAVE_L6470DRIVER)
538
 #if ENABLED(HAVE_L6470DRIVER)
539
 
539
 
540
-//#define X_IS_L6470
540
+  //#define X_IS_L6470
541
   #define X_MICROSTEPS 16     //number of microsteps
541
   #define X_MICROSTEPS 16     //number of microsteps
542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
544
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
545
 
545
 
546
-//#define X2_IS_L6470
546
+  //#define X2_IS_L6470
547
   #define X2_MICROSTEPS 16     //number of microsteps
547
   #define X2_MICROSTEPS 16     //number of microsteps
548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
550
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
551
 
551
 
552
-//#define Y_IS_L6470
552
+  //#define Y_IS_L6470
553
   #define Y_MICROSTEPS 16     //number of microsteps
553
   #define Y_MICROSTEPS 16     //number of microsteps
554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
556
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
557
 
557
 
558
-//#define Y2_IS_L6470
558
+  //#define Y2_IS_L6470
559
   #define Y2_MICROSTEPS 16     //number of microsteps
559
   #define Y2_MICROSTEPS 16     //number of microsteps
560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
562
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
563
 
563
 
564
-//#define Z_IS_L6470
564
+  //#define Z_IS_L6470
565
   #define Z_MICROSTEPS 16     //number of microsteps
565
   #define Z_MICROSTEPS 16     //number of microsteps
566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
568
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
569
 
569
 
570
-//#define Z2_IS_L6470
570
+  //#define Z2_IS_L6470
571
   #define Z2_MICROSTEPS 16     //number of microsteps
571
   #define Z2_MICROSTEPS 16     //number of microsteps
572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
574
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
575
 
575
 
576
-//#define E0_IS_L6470
576
+  //#define E0_IS_L6470
577
   #define E0_MICROSTEPS 16     //number of microsteps
577
   #define E0_MICROSTEPS 16     //number of microsteps
578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
580
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
581
 
581
 
582
-//#define E1_IS_L6470
582
+  //#define E1_IS_L6470
583
   #define E1_MICROSTEPS 16     //number of microsteps
583
   #define E1_MICROSTEPS 16     //number of microsteps
584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
586
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
587
 
587
 
588
-//#define E2_IS_L6470
588
+  //#define E2_IS_L6470
589
   #define E2_MICROSTEPS 16     //number of microsteps
589
   #define E2_MICROSTEPS 16     //number of microsteps
590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
592
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
593
 
593
 
594
-//#define E3_IS_L6470
594
+  //#define E3_IS_L6470
595
   #define E3_MICROSTEPS 16     //number of microsteps
595
   #define E3_MICROSTEPS 16     //number of microsteps
596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
597
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
597
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off

+ 25
- 25
Marlin/example_configurations/RigidBot/Configuration_adv.h View File

348
 //#define USE_WATCHDOG
348
 //#define USE_WATCHDOG
349
 
349
 
350
 #if ENABLED(USE_WATCHDOG)
350
 #if ENABLED(USE_WATCHDOG)
351
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
352
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
353
-//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
354
-//#define WATCHDOG_RESET_MANUAL
351
+  // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
352
+  // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
353
+  //  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
354
+  //#define WATCHDOG_RESET_MANUAL
355
 #endif
355
 #endif
356
 
356
 
357
 // @section lcd
357
 // @section lcd
389
 #define MM_PER_ARC_SEGMENT 1
389
 #define MM_PER_ARC_SEGMENT 1
390
 #define N_ARC_CORRECTION 25
390
 #define N_ARC_CORRECTION 25
391
 
391
 
392
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
392
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
393
 
393
 
394
 // @section temperature
394
 // @section temperature
395
 
395
 
470
 //#define HAVE_TMCDRIVER
470
 //#define HAVE_TMCDRIVER
471
 #if ENABLED(HAVE_TMCDRIVER)
471
 #if ENABLED(HAVE_TMCDRIVER)
472
 
472
 
473
-//#define X_IS_TMC
473
+  //#define X_IS_TMC
474
   #define X_MAX_CURRENT 1000  //in mA
474
   #define X_MAX_CURRENT 1000  //in mA
475
   #define X_SENSE_RESISTOR 91 //in mOhms
475
   #define X_SENSE_RESISTOR 91 //in mOhms
476
   #define X_MICROSTEPS 16     //number of microsteps
476
   #define X_MICROSTEPS 16     //number of microsteps
477
 
477
 
478
-//#define X2_IS_TMC
478
+  //#define X2_IS_TMC
479
   #define X2_MAX_CURRENT 1000  //in mA
479
   #define X2_MAX_CURRENT 1000  //in mA
480
   #define X2_SENSE_RESISTOR 91 //in mOhms
480
   #define X2_SENSE_RESISTOR 91 //in mOhms
481
   #define X2_MICROSTEPS 16     //number of microsteps
481
   #define X2_MICROSTEPS 16     //number of microsteps
482
 
482
 
483
-//#define Y_IS_TMC
483
+  //#define Y_IS_TMC
484
   #define Y_MAX_CURRENT 1000  //in mA
484
   #define Y_MAX_CURRENT 1000  //in mA
485
   #define Y_SENSE_RESISTOR 91 //in mOhms
485
   #define Y_SENSE_RESISTOR 91 //in mOhms
486
   #define Y_MICROSTEPS 16     //number of microsteps
486
   #define Y_MICROSTEPS 16     //number of microsteps
487
 
487
 
488
-//#define Y2_IS_TMC
488
+  //#define Y2_IS_TMC
489
   #define Y2_MAX_CURRENT 1000  //in mA
489
   #define Y2_MAX_CURRENT 1000  //in mA
490
   #define Y2_SENSE_RESISTOR 91 //in mOhms
490
   #define Y2_SENSE_RESISTOR 91 //in mOhms
491
   #define Y2_MICROSTEPS 16     //number of microsteps
491
   #define Y2_MICROSTEPS 16     //number of microsteps
492
 
492
 
493
-//#define Z_IS_TMC
493
+  //#define Z_IS_TMC
494
   #define Z_MAX_CURRENT 1000  //in mA
494
   #define Z_MAX_CURRENT 1000  //in mA
495
   #define Z_SENSE_RESISTOR 91 //in mOhms
495
   #define Z_SENSE_RESISTOR 91 //in mOhms
496
   #define Z_MICROSTEPS 16     //number of microsteps
496
   #define Z_MICROSTEPS 16     //number of microsteps
497
 
497
 
498
-//#define Z2_IS_TMC
498
+  //#define Z2_IS_TMC
499
   #define Z2_MAX_CURRENT 1000  //in mA
499
   #define Z2_MAX_CURRENT 1000  //in mA
500
   #define Z2_SENSE_RESISTOR 91 //in mOhms
500
   #define Z2_SENSE_RESISTOR 91 //in mOhms
501
   #define Z2_MICROSTEPS 16     //number of microsteps
501
   #define Z2_MICROSTEPS 16     //number of microsteps
502
 
502
 
503
-//#define E0_IS_TMC
503
+  //#define E0_IS_TMC
504
   #define E0_MAX_CURRENT 1000  //in mA
504
   #define E0_MAX_CURRENT 1000  //in mA
505
   #define E0_SENSE_RESISTOR 91 //in mOhms
505
   #define E0_SENSE_RESISTOR 91 //in mOhms
506
   #define E0_MICROSTEPS 16     //number of microsteps
506
   #define E0_MICROSTEPS 16     //number of microsteps
507
 
507
 
508
-//#define E1_IS_TMC
508
+  //#define E1_IS_TMC
509
   #define E1_MAX_CURRENT 1000  //in mA
509
   #define E1_MAX_CURRENT 1000  //in mA
510
   #define E1_SENSE_RESISTOR 91 //in mOhms
510
   #define E1_SENSE_RESISTOR 91 //in mOhms
511
   #define E1_MICROSTEPS 16     //number of microsteps
511
   #define E1_MICROSTEPS 16     //number of microsteps
512
 
512
 
513
-//#define E2_IS_TMC
513
+  //#define E2_IS_TMC
514
   #define E2_MAX_CURRENT 1000  //in mA
514
   #define E2_MAX_CURRENT 1000  //in mA
515
   #define E2_SENSE_RESISTOR 91 //in mOhms
515
   #define E2_SENSE_RESISTOR 91 //in mOhms
516
   #define E2_MICROSTEPS 16     //number of microsteps
516
   #define E2_MICROSTEPS 16     //number of microsteps
517
 
517
 
518
-//#define E3_IS_TMC
518
+  //#define E3_IS_TMC
519
   #define E3_MAX_CURRENT 1000  //in mA
519
   #define E3_MAX_CURRENT 1000  //in mA
520
   #define E3_SENSE_RESISTOR 91 //in mOhms
520
   #define E3_SENSE_RESISTOR 91 //in mOhms
521
   #define E3_MICROSTEPS 16     //number of microsteps
521
   #define E3_MICROSTEPS 16     //number of microsteps
532
 //#define HAVE_L6470DRIVER
532
 //#define HAVE_L6470DRIVER
533
 #if ENABLED(HAVE_L6470DRIVER)
533
 #if ENABLED(HAVE_L6470DRIVER)
534
 
534
 
535
-//#define X_IS_L6470
535
+  //#define X_IS_L6470
536
   #define X_MICROSTEPS 16     //number of microsteps
536
   #define X_MICROSTEPS 16     //number of microsteps
537
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
537
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
538
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
538
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
539
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
539
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
540
 
540
 
541
-//#define X2_IS_L6470
541
+  //#define X2_IS_L6470
542
   #define X2_MICROSTEPS 16     //number of microsteps
542
   #define X2_MICROSTEPS 16     //number of microsteps
543
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
544
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
545
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
545
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
546
 
546
 
547
-//#define Y_IS_L6470
547
+  //#define Y_IS_L6470
548
   #define Y_MICROSTEPS 16     //number of microsteps
548
   #define Y_MICROSTEPS 16     //number of microsteps
549
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
550
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
551
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
551
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
552
 
552
 
553
-//#define Y2_IS_L6470
553
+  //#define Y2_IS_L6470
554
   #define Y2_MICROSTEPS 16     //number of microsteps
554
   #define Y2_MICROSTEPS 16     //number of microsteps
555
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
556
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
557
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
557
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
558
 
558
 
559
-//#define Z_IS_L6470
559
+  //#define Z_IS_L6470
560
   #define Z_MICROSTEPS 16     //number of microsteps
560
   #define Z_MICROSTEPS 16     //number of microsteps
561
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
562
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
563
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
563
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
564
 
564
 
565
-//#define Z2_IS_L6470
565
+  //#define Z2_IS_L6470
566
   #define Z2_MICROSTEPS 16     //number of microsteps
566
   #define Z2_MICROSTEPS 16     //number of microsteps
567
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
568
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
569
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
569
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
570
 
570
 
571
-//#define E0_IS_L6470
571
+  //#define E0_IS_L6470
572
   #define E0_MICROSTEPS 16     //number of microsteps
572
   #define E0_MICROSTEPS 16     //number of microsteps
573
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
574
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
575
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
575
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
576
 
576
 
577
-//#define E1_IS_L6470
577
+  //#define E1_IS_L6470
578
   #define E1_MICROSTEPS 16     //number of microsteps
578
   #define E1_MICROSTEPS 16     //number of microsteps
579
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
580
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
581
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
581
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
582
 
582
 
583
-//#define E2_IS_L6470
583
+  //#define E2_IS_L6470
584
   #define E2_MICROSTEPS 16     //number of microsteps
584
   #define E2_MICROSTEPS 16     //number of microsteps
585
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
586
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
587
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
587
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
588
 
588
 
589
-//#define E3_IS_L6470
589
+  //#define E3_IS_L6470
590
   #define E3_MICROSTEPS 16     //number of microsteps
590
   #define E3_MICROSTEPS 16     //number of microsteps
591
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
592
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off

+ 25
- 25
Marlin/example_configurations/SCARA/Configuration_adv.h View File

356
 //#define USE_WATCHDOG
356
 //#define USE_WATCHDOG
357
 
357
 
358
 #if ENABLED(USE_WATCHDOG)
358
 #if ENABLED(USE_WATCHDOG)
359
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
360
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
361
-//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
362
-//#define WATCHDOG_RESET_MANUAL
359
+  // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
360
+  // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
361
+  //  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
362
+  //#define WATCHDOG_RESET_MANUAL
363
 #endif
363
 #endif
364
 
364
 
365
 // @section lcd
365
 // @section lcd
397
 #define MM_PER_ARC_SEGMENT 1
397
 #define MM_PER_ARC_SEGMENT 1
398
 #define N_ARC_CORRECTION 25
398
 #define N_ARC_CORRECTION 25
399
 
399
 
400
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
400
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
401
 
401
 
402
 // @section temperature
402
 // @section temperature
403
 
403
 
475
 //#define HAVE_TMCDRIVER
475
 //#define HAVE_TMCDRIVER
476
 #if ENABLED(HAVE_TMCDRIVER)
476
 #if ENABLED(HAVE_TMCDRIVER)
477
 
477
 
478
-//#define X_IS_TMC
478
+  //#define X_IS_TMC
479
   #define X_MAX_CURRENT 1000  //in mA
479
   #define X_MAX_CURRENT 1000  //in mA
480
   #define X_SENSE_RESISTOR 91 //in mOhms
480
   #define X_SENSE_RESISTOR 91 //in mOhms
481
   #define X_MICROSTEPS 16     //number of microsteps
481
   #define X_MICROSTEPS 16     //number of microsteps
482
 
482
 
483
-//#define X2_IS_TMC
483
+  //#define X2_IS_TMC
484
   #define X2_MAX_CURRENT 1000  //in mA
484
   #define X2_MAX_CURRENT 1000  //in mA
485
   #define X2_SENSE_RESISTOR 91 //in mOhms
485
   #define X2_SENSE_RESISTOR 91 //in mOhms
486
   #define X2_MICROSTEPS 16     //number of microsteps
486
   #define X2_MICROSTEPS 16     //number of microsteps
487
 
487
 
488
-//#define Y_IS_TMC
488
+  //#define Y_IS_TMC
489
   #define Y_MAX_CURRENT 1000  //in mA
489
   #define Y_MAX_CURRENT 1000  //in mA
490
   #define Y_SENSE_RESISTOR 91 //in mOhms
490
   #define Y_SENSE_RESISTOR 91 //in mOhms
491
   #define Y_MICROSTEPS 16     //number of microsteps
491
   #define Y_MICROSTEPS 16     //number of microsteps
492
 
492
 
493
-//#define Y2_IS_TMC
493
+  //#define Y2_IS_TMC
494
   #define Y2_MAX_CURRENT 1000  //in mA
494
   #define Y2_MAX_CURRENT 1000  //in mA
495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
496
   #define Y2_MICROSTEPS 16     //number of microsteps
496
   #define Y2_MICROSTEPS 16     //number of microsteps
497
 
497
 
498
-//#define Z_IS_TMC
498
+  //#define Z_IS_TMC
499
   #define Z_MAX_CURRENT 1000  //in mA
499
   #define Z_MAX_CURRENT 1000  //in mA
500
   #define Z_SENSE_RESISTOR 91 //in mOhms
500
   #define Z_SENSE_RESISTOR 91 //in mOhms
501
   #define Z_MICROSTEPS 16     //number of microsteps
501
   #define Z_MICROSTEPS 16     //number of microsteps
502
 
502
 
503
-//#define Z2_IS_TMC
503
+  //#define Z2_IS_TMC
504
   #define Z2_MAX_CURRENT 1000  //in mA
504
   #define Z2_MAX_CURRENT 1000  //in mA
505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
506
   #define Z2_MICROSTEPS 16     //number of microsteps
506
   #define Z2_MICROSTEPS 16     //number of microsteps
507
 
507
 
508
-//#define E0_IS_TMC
508
+  //#define E0_IS_TMC
509
   #define E0_MAX_CURRENT 1000  //in mA
509
   #define E0_MAX_CURRENT 1000  //in mA
510
   #define E0_SENSE_RESISTOR 91 //in mOhms
510
   #define E0_SENSE_RESISTOR 91 //in mOhms
511
   #define E0_MICROSTEPS 16     //number of microsteps
511
   #define E0_MICROSTEPS 16     //number of microsteps
512
 
512
 
513
-//#define E1_IS_TMC
513
+  //#define E1_IS_TMC
514
   #define E1_MAX_CURRENT 1000  //in mA
514
   #define E1_MAX_CURRENT 1000  //in mA
515
   #define E1_SENSE_RESISTOR 91 //in mOhms
515
   #define E1_SENSE_RESISTOR 91 //in mOhms
516
   #define E1_MICROSTEPS 16     //number of microsteps
516
   #define E1_MICROSTEPS 16     //number of microsteps
517
 
517
 
518
-//#define E2_IS_TMC
518
+  //#define E2_IS_TMC
519
   #define E2_MAX_CURRENT 1000  //in mA
519
   #define E2_MAX_CURRENT 1000  //in mA
520
   #define E2_SENSE_RESISTOR 91 //in mOhms
520
   #define E2_SENSE_RESISTOR 91 //in mOhms
521
   #define E2_MICROSTEPS 16     //number of microsteps
521
   #define E2_MICROSTEPS 16     //number of microsteps
522
 
522
 
523
-//#define E3_IS_TMC
523
+  //#define E3_IS_TMC
524
   #define E3_MAX_CURRENT 1000  //in mA
524
   #define E3_MAX_CURRENT 1000  //in mA
525
   #define E3_SENSE_RESISTOR 91 //in mOhms
525
   #define E3_SENSE_RESISTOR 91 //in mOhms
526
   #define E3_MICROSTEPS 16     //number of microsteps
526
   #define E3_MICROSTEPS 16     //number of microsteps
537
 //#define HAVE_L6470DRIVER
537
 //#define HAVE_L6470DRIVER
538
 #if ENABLED(HAVE_L6470DRIVER)
538
 #if ENABLED(HAVE_L6470DRIVER)
539
 
539
 
540
-//#define X_IS_L6470
540
+  //#define X_IS_L6470
541
   #define X_MICROSTEPS 16     //number of microsteps
541
   #define X_MICROSTEPS 16     //number of microsteps
542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
544
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
545
 
545
 
546
-//#define X2_IS_L6470
546
+  //#define X2_IS_L6470
547
   #define X2_MICROSTEPS 16     //number of microsteps
547
   #define X2_MICROSTEPS 16     //number of microsteps
548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
550
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
551
 
551
 
552
-//#define Y_IS_L6470
552
+  //#define Y_IS_L6470
553
   #define Y_MICROSTEPS 16     //number of microsteps
553
   #define Y_MICROSTEPS 16     //number of microsteps
554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
556
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
557
 
557
 
558
-//#define Y2_IS_L6470
558
+  //#define Y2_IS_L6470
559
   #define Y2_MICROSTEPS 16     //number of microsteps
559
   #define Y2_MICROSTEPS 16     //number of microsteps
560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
562
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
563
 
563
 
564
-//#define Z_IS_L6470
564
+  //#define Z_IS_L6470
565
   #define Z_MICROSTEPS 16     //number of microsteps
565
   #define Z_MICROSTEPS 16     //number of microsteps
566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
568
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
569
 
569
 
570
-//#define Z2_IS_L6470
570
+  //#define Z2_IS_L6470
571
   #define Z2_MICROSTEPS 16     //number of microsteps
571
   #define Z2_MICROSTEPS 16     //number of microsteps
572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
574
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
575
 
575
 
576
-//#define E0_IS_L6470
576
+  //#define E0_IS_L6470
577
   #define E0_MICROSTEPS 16     //number of microsteps
577
   #define E0_MICROSTEPS 16     //number of microsteps
578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
580
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
581
 
581
 
582
-//#define E1_IS_L6470
582
+  //#define E1_IS_L6470
583
   #define E1_MICROSTEPS 16     //number of microsteps
583
   #define E1_MICROSTEPS 16     //number of microsteps
584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
586
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
587
 
587
 
588
-//#define E2_IS_L6470
588
+  //#define E2_IS_L6470
589
   #define E2_MICROSTEPS 16     //number of microsteps
589
   #define E2_MICROSTEPS 16     //number of microsteps
590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
592
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
593
 
593
 
594
-//#define E3_IS_L6470
594
+  //#define E3_IS_L6470
595
   #define E3_MICROSTEPS 16     //number of microsteps
595
   #define E3_MICROSTEPS 16     //number of microsteps
596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
597
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
597
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off

+ 25
- 25
Marlin/example_configurations/TAZ4/Configuration_adv.h View File

355
 //#define USE_WATCHDOG
355
 //#define USE_WATCHDOG
356
 
356
 
357
 #if ENABLED(USE_WATCHDOG)
357
 #if ENABLED(USE_WATCHDOG)
358
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
359
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
360
-//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
361
-//#define WATCHDOG_RESET_MANUAL
358
+  // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
359
+  // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
360
+  //  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
361
+  //#define WATCHDOG_RESET_MANUAL
362
 #endif
362
 #endif
363
 
363
 
364
 // @section lcd
364
 // @section lcd
397
 #define MM_PER_ARC_SEGMENT 1
397
 #define MM_PER_ARC_SEGMENT 1
398
 #define N_ARC_CORRECTION 25
398
 #define N_ARC_CORRECTION 25
399
 
399
 
400
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
400
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
401
 
401
 
402
 // @section temperature
402
 // @section temperature
403
 
403
 
478
 //#define HAVE_TMCDRIVER
478
 //#define HAVE_TMCDRIVER
479
 #if ENABLED(HAVE_TMCDRIVER)
479
 #if ENABLED(HAVE_TMCDRIVER)
480
 
480
 
481
-//#define X_IS_TMC
481
+  //#define X_IS_TMC
482
   #define X_MAX_CURRENT 1000  //in mA
482
   #define X_MAX_CURRENT 1000  //in mA
483
   #define X_SENSE_RESISTOR 91 //in mOhms
483
   #define X_SENSE_RESISTOR 91 //in mOhms
484
   #define X_MICROSTEPS 16     //number of microsteps
484
   #define X_MICROSTEPS 16     //number of microsteps
485
 
485
 
486
-//#define X2_IS_TMC
486
+  //#define X2_IS_TMC
487
   #define X2_MAX_CURRENT 1000  //in mA
487
   #define X2_MAX_CURRENT 1000  //in mA
488
   #define X2_SENSE_RESISTOR 91 //in mOhms
488
   #define X2_SENSE_RESISTOR 91 //in mOhms
489
   #define X2_MICROSTEPS 16     //number of microsteps
489
   #define X2_MICROSTEPS 16     //number of microsteps
490
 
490
 
491
-//#define Y_IS_TMC
491
+  //#define Y_IS_TMC
492
   #define Y_MAX_CURRENT 1000  //in mA
492
   #define Y_MAX_CURRENT 1000  //in mA
493
   #define Y_SENSE_RESISTOR 91 //in mOhms
493
   #define Y_SENSE_RESISTOR 91 //in mOhms
494
   #define Y_MICROSTEPS 16     //number of microsteps
494
   #define Y_MICROSTEPS 16     //number of microsteps
495
 
495
 
496
-//#define Y2_IS_TMC
496
+  //#define Y2_IS_TMC
497
   #define Y2_MAX_CURRENT 1000  //in mA
497
   #define Y2_MAX_CURRENT 1000  //in mA
498
   #define Y2_SENSE_RESISTOR 91 //in mOhms
498
   #define Y2_SENSE_RESISTOR 91 //in mOhms
499
   #define Y2_MICROSTEPS 16     //number of microsteps
499
   #define Y2_MICROSTEPS 16     //number of microsteps
500
 
500
 
501
-//#define Z_IS_TMC
501
+  //#define Z_IS_TMC
502
   #define Z_MAX_CURRENT 1000  //in mA
502
   #define Z_MAX_CURRENT 1000  //in mA
503
   #define Z_SENSE_RESISTOR 91 //in mOhms
503
   #define Z_SENSE_RESISTOR 91 //in mOhms
504
   #define Z_MICROSTEPS 16     //number of microsteps
504
   #define Z_MICROSTEPS 16     //number of microsteps
505
 
505
 
506
-//#define Z2_IS_TMC
506
+  //#define Z2_IS_TMC
507
   #define Z2_MAX_CURRENT 1000  //in mA
507
   #define Z2_MAX_CURRENT 1000  //in mA
508
   #define Z2_SENSE_RESISTOR 91 //in mOhms
508
   #define Z2_SENSE_RESISTOR 91 //in mOhms
509
   #define Z2_MICROSTEPS 16     //number of microsteps
509
   #define Z2_MICROSTEPS 16     //number of microsteps
510
 
510
 
511
-//#define E0_IS_TMC
511
+  //#define E0_IS_TMC
512
   #define E0_MAX_CURRENT 1000  //in mA
512
   #define E0_MAX_CURRENT 1000  //in mA
513
   #define E0_SENSE_RESISTOR 91 //in mOhms
513
   #define E0_SENSE_RESISTOR 91 //in mOhms
514
   #define E0_MICROSTEPS 16     //number of microsteps
514
   #define E0_MICROSTEPS 16     //number of microsteps
515
 
515
 
516
-//#define E1_IS_TMC
516
+  //#define E1_IS_TMC
517
   #define E1_MAX_CURRENT 1000  //in mA
517
   #define E1_MAX_CURRENT 1000  //in mA
518
   #define E1_SENSE_RESISTOR 91 //in mOhms
518
   #define E1_SENSE_RESISTOR 91 //in mOhms
519
   #define E1_MICROSTEPS 16     //number of microsteps
519
   #define E1_MICROSTEPS 16     //number of microsteps
520
 
520
 
521
-//#define E2_IS_TMC
521
+  //#define E2_IS_TMC
522
   #define E2_MAX_CURRENT 1000  //in mA
522
   #define E2_MAX_CURRENT 1000  //in mA
523
   #define E2_SENSE_RESISTOR 91 //in mOhms
523
   #define E2_SENSE_RESISTOR 91 //in mOhms
524
   #define E2_MICROSTEPS 16     //number of microsteps
524
   #define E2_MICROSTEPS 16     //number of microsteps
525
 
525
 
526
-//#define E3_IS_TMC
526
+  //#define E3_IS_TMC
527
   #define E3_MAX_CURRENT 1000  //in mA
527
   #define E3_MAX_CURRENT 1000  //in mA
528
   #define E3_SENSE_RESISTOR 91 //in mOhms
528
   #define E3_SENSE_RESISTOR 91 //in mOhms
529
   #define E3_MICROSTEPS 16     //number of microsteps
529
   #define E3_MICROSTEPS 16     //number of microsteps
540
 //#define HAVE_L6470DRIVER
540
 //#define HAVE_L6470DRIVER
541
 #if ENABLED(HAVE_L6470DRIVER)
541
 #if ENABLED(HAVE_L6470DRIVER)
542
 
542
 
543
-//#define X_IS_L6470
543
+  //#define X_IS_L6470
544
   #define X_MICROSTEPS 16     //number of microsteps
544
   #define X_MICROSTEPS 16     //number of microsteps
545
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
545
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
546
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
546
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
547
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
547
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
548
 
548
 
549
-//#define X2_IS_L6470
549
+  //#define X2_IS_L6470
550
   #define X2_MICROSTEPS 16     //number of microsteps
550
   #define X2_MICROSTEPS 16     //number of microsteps
551
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
551
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
552
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
552
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
553
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
553
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
554
 
554
 
555
-//#define Y_IS_L6470
555
+  //#define Y_IS_L6470
556
   #define Y_MICROSTEPS 16     //number of microsteps
556
   #define Y_MICROSTEPS 16     //number of microsteps
557
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
557
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
558
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
558
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
559
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
559
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
560
 
560
 
561
-//#define Y2_IS_L6470
561
+  //#define Y2_IS_L6470
562
   #define Y2_MICROSTEPS 16     //number of microsteps
562
   #define Y2_MICROSTEPS 16     //number of microsteps
563
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
563
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
564
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
564
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
565
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
565
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
566
 
566
 
567
-//#define Z_IS_L6470
567
+  //#define Z_IS_L6470
568
   #define Z_MICROSTEPS 16     //number of microsteps
568
   #define Z_MICROSTEPS 16     //number of microsteps
569
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
569
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
570
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
570
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
571
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
571
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
572
 
572
 
573
-//#define Z2_IS_L6470
573
+  //#define Z2_IS_L6470
574
   #define Z2_MICROSTEPS 16     //number of microsteps
574
   #define Z2_MICROSTEPS 16     //number of microsteps
575
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
575
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
576
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
576
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
577
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
577
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
578
 
578
 
579
-//#define E0_IS_L6470
579
+  //#define E0_IS_L6470
580
   #define E0_MICROSTEPS 16     //number of microsteps
580
   #define E0_MICROSTEPS 16     //number of microsteps
581
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
581
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
582
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
582
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
583
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
583
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
584
 
584
 
585
-//#define E1_IS_L6470
585
+  //#define E1_IS_L6470
586
   #define E1_MICROSTEPS 16     //number of microsteps
586
   #define E1_MICROSTEPS 16     //number of microsteps
587
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
587
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
588
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
588
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
589
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
589
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
590
 
590
 
591
-//#define E2_IS_L6470
591
+  //#define E2_IS_L6470
592
   #define E2_MICROSTEPS 16     //number of microsteps
592
   #define E2_MICROSTEPS 16     //number of microsteps
593
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
593
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
594
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
594
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
595
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
595
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
596
 
596
 
597
-//#define E3_IS_L6470
597
+  //#define E3_IS_L6470
598
   #define E3_MICROSTEPS 16     //number of microsteps
598
   #define E3_MICROSTEPS 16     //number of microsteps
599
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
599
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
600
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
600
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off

+ 25
- 25
Marlin/example_configurations/WITBOX/Configuration_adv.h View File

356
 //#define USE_WATCHDOG
356
 //#define USE_WATCHDOG
357
 
357
 
358
 #if ENABLED(USE_WATCHDOG)
358
 #if ENABLED(USE_WATCHDOG)
359
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
360
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
361
-//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
362
-//#define WATCHDOG_RESET_MANUAL
359
+  // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
360
+  // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
361
+  //  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
362
+  //#define WATCHDOG_RESET_MANUAL
363
 #endif
363
 #endif
364
 
364
 
365
 // @section lcd
365
 // @section lcd
397
 #define MM_PER_ARC_SEGMENT 1
397
 #define MM_PER_ARC_SEGMENT 1
398
 #define N_ARC_CORRECTION 25
398
 #define N_ARC_CORRECTION 25
399
 
399
 
400
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
400
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
401
 
401
 
402
 // @section temperature
402
 // @section temperature
403
 
403
 
475
 //#define HAVE_TMCDRIVER
475
 //#define HAVE_TMCDRIVER
476
 #if ENABLED(HAVE_TMCDRIVER)
476
 #if ENABLED(HAVE_TMCDRIVER)
477
 
477
 
478
-//#define X_IS_TMC
478
+  //#define X_IS_TMC
479
   #define X_MAX_CURRENT 1000  //in mA
479
   #define X_MAX_CURRENT 1000  //in mA
480
   #define X_SENSE_RESISTOR 91 //in mOhms
480
   #define X_SENSE_RESISTOR 91 //in mOhms
481
   #define X_MICROSTEPS 16     //number of microsteps
481
   #define X_MICROSTEPS 16     //number of microsteps
482
 
482
 
483
-//#define X2_IS_TMC
483
+  //#define X2_IS_TMC
484
   #define X2_MAX_CURRENT 1000  //in mA
484
   #define X2_MAX_CURRENT 1000  //in mA
485
   #define X2_SENSE_RESISTOR 91 //in mOhms
485
   #define X2_SENSE_RESISTOR 91 //in mOhms
486
   #define X2_MICROSTEPS 16     //number of microsteps
486
   #define X2_MICROSTEPS 16     //number of microsteps
487
 
487
 
488
-//#define Y_IS_TMC
488
+  //#define Y_IS_TMC
489
   #define Y_MAX_CURRENT 1000  //in mA
489
   #define Y_MAX_CURRENT 1000  //in mA
490
   #define Y_SENSE_RESISTOR 91 //in mOhms
490
   #define Y_SENSE_RESISTOR 91 //in mOhms
491
   #define Y_MICROSTEPS 16     //number of microsteps
491
   #define Y_MICROSTEPS 16     //number of microsteps
492
 
492
 
493
-//#define Y2_IS_TMC
493
+  //#define Y2_IS_TMC
494
   #define Y2_MAX_CURRENT 1000  //in mA
494
   #define Y2_MAX_CURRENT 1000  //in mA
495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
496
   #define Y2_MICROSTEPS 16     //number of microsteps
496
   #define Y2_MICROSTEPS 16     //number of microsteps
497
 
497
 
498
-//#define Z_IS_TMC
498
+  //#define Z_IS_TMC
499
   #define Z_MAX_CURRENT 1000  //in mA
499
   #define Z_MAX_CURRENT 1000  //in mA
500
   #define Z_SENSE_RESISTOR 91 //in mOhms
500
   #define Z_SENSE_RESISTOR 91 //in mOhms
501
   #define Z_MICROSTEPS 16     //number of microsteps
501
   #define Z_MICROSTEPS 16     //number of microsteps
502
 
502
 
503
-//#define Z2_IS_TMC
503
+  //#define Z2_IS_TMC
504
   #define Z2_MAX_CURRENT 1000  //in mA
504
   #define Z2_MAX_CURRENT 1000  //in mA
505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
506
   #define Z2_MICROSTEPS 16     //number of microsteps
506
   #define Z2_MICROSTEPS 16     //number of microsteps
507
 
507
 
508
-//#define E0_IS_TMC
508
+  //#define E0_IS_TMC
509
   #define E0_MAX_CURRENT 1000  //in mA
509
   #define E0_MAX_CURRENT 1000  //in mA
510
   #define E0_SENSE_RESISTOR 91 //in mOhms
510
   #define E0_SENSE_RESISTOR 91 //in mOhms
511
   #define E0_MICROSTEPS 16     //number of microsteps
511
   #define E0_MICROSTEPS 16     //number of microsteps
512
 
512
 
513
-//#define E1_IS_TMC
513
+  //#define E1_IS_TMC
514
   #define E1_MAX_CURRENT 1000  //in mA
514
   #define E1_MAX_CURRENT 1000  //in mA
515
   #define E1_SENSE_RESISTOR 91 //in mOhms
515
   #define E1_SENSE_RESISTOR 91 //in mOhms
516
   #define E1_MICROSTEPS 16     //number of microsteps
516
   #define E1_MICROSTEPS 16     //number of microsteps
517
 
517
 
518
-//#define E2_IS_TMC
518
+  //#define E2_IS_TMC
519
   #define E2_MAX_CURRENT 1000  //in mA
519
   #define E2_MAX_CURRENT 1000  //in mA
520
   #define E2_SENSE_RESISTOR 91 //in mOhms
520
   #define E2_SENSE_RESISTOR 91 //in mOhms
521
   #define E2_MICROSTEPS 16     //number of microsteps
521
   #define E2_MICROSTEPS 16     //number of microsteps
522
 
522
 
523
-//#define E3_IS_TMC
523
+  //#define E3_IS_TMC
524
   #define E3_MAX_CURRENT 1000  //in mA
524
   #define E3_MAX_CURRENT 1000  //in mA
525
   #define E3_SENSE_RESISTOR 91 //in mOhms
525
   #define E3_SENSE_RESISTOR 91 //in mOhms
526
   #define E3_MICROSTEPS 16     //number of microsteps
526
   #define E3_MICROSTEPS 16     //number of microsteps
537
 //#define HAVE_L6470DRIVER
537
 //#define HAVE_L6470DRIVER
538
 #if ENABLED(HAVE_L6470DRIVER)
538
 #if ENABLED(HAVE_L6470DRIVER)
539
 
539
 
540
-//#define X_IS_L6470
540
+  //#define X_IS_L6470
541
   #define X_MICROSTEPS 16     //number of microsteps
541
   #define X_MICROSTEPS 16     //number of microsteps
542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
544
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
545
 
545
 
546
-//#define X2_IS_L6470
546
+  //#define X2_IS_L6470
547
   #define X2_MICROSTEPS 16     //number of microsteps
547
   #define X2_MICROSTEPS 16     //number of microsteps
548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
550
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
551
 
551
 
552
-//#define Y_IS_L6470
552
+  //#define Y_IS_L6470
553
   #define Y_MICROSTEPS 16     //number of microsteps
553
   #define Y_MICROSTEPS 16     //number of microsteps
554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
556
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
557
 
557
 
558
-//#define Y2_IS_L6470
558
+  //#define Y2_IS_L6470
559
   #define Y2_MICROSTEPS 16     //number of microsteps
559
   #define Y2_MICROSTEPS 16     //number of microsteps
560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
562
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
563
 
563
 
564
-//#define Z_IS_L6470
564
+  //#define Z_IS_L6470
565
   #define Z_MICROSTEPS 16     //number of microsteps
565
   #define Z_MICROSTEPS 16     //number of microsteps
566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
568
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
569
 
569
 
570
-//#define Z2_IS_L6470
570
+  //#define Z2_IS_L6470
571
   #define Z2_MICROSTEPS 16     //number of microsteps
571
   #define Z2_MICROSTEPS 16     //number of microsteps
572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
574
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
575
 
575
 
576
-//#define E0_IS_L6470
576
+  //#define E0_IS_L6470
577
   #define E0_MICROSTEPS 16     //number of microsteps
577
   #define E0_MICROSTEPS 16     //number of microsteps
578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
580
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
581
 
581
 
582
-//#define E1_IS_L6470
582
+  //#define E1_IS_L6470
583
   #define E1_MICROSTEPS 16     //number of microsteps
583
   #define E1_MICROSTEPS 16     //number of microsteps
584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
586
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
587
 
587
 
588
-//#define E2_IS_L6470
588
+  //#define E2_IS_L6470
589
   #define E2_MICROSTEPS 16     //number of microsteps
589
   #define E2_MICROSTEPS 16     //number of microsteps
590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
592
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
593
 
593
 
594
-//#define E3_IS_L6470
594
+  //#define E3_IS_L6470
595
   #define E3_MICROSTEPS 16     //number of microsteps
595
   #define E3_MICROSTEPS 16     //number of microsteps
596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
597
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
597
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off

+ 25
- 25
Marlin/example_configurations/delta/biv2.5/Configuration_adv.h View File

357
 //#define USE_WATCHDOG
357
 //#define USE_WATCHDOG
358
 
358
 
359
 #if ENABLED(USE_WATCHDOG)
359
 #if ENABLED(USE_WATCHDOG)
360
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
361
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
362
-//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
363
-//#define WATCHDOG_RESET_MANUAL
360
+  // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
361
+  // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
362
+  //  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
363
+  //#define WATCHDOG_RESET_MANUAL
364
 #endif
364
 #endif
365
 
365
 
366
 // @section lcd
366
 // @section lcd
398
 #define MM_PER_ARC_SEGMENT 1
398
 #define MM_PER_ARC_SEGMENT 1
399
 #define N_ARC_CORRECTION 25
399
 #define N_ARC_CORRECTION 25
400
 
400
 
401
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
401
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
402
 
402
 
403
 // @section temperature
403
 // @section temperature
404
 
404
 
476
 //#define HAVE_TMCDRIVER
476
 //#define HAVE_TMCDRIVER
477
 #if ENABLED(HAVE_TMCDRIVER)
477
 #if ENABLED(HAVE_TMCDRIVER)
478
 
478
 
479
-//#define X_IS_TMC
479
+  //#define X_IS_TMC
480
   #define X_MAX_CURRENT 1000  //in mA
480
   #define X_MAX_CURRENT 1000  //in mA
481
   #define X_SENSE_RESISTOR 91 //in mOhms
481
   #define X_SENSE_RESISTOR 91 //in mOhms
482
   #define X_MICROSTEPS 16     //number of microsteps
482
   #define X_MICROSTEPS 16     //number of microsteps
483
 
483
 
484
-//#define X2_IS_TMC
484
+  //#define X2_IS_TMC
485
   #define X2_MAX_CURRENT 1000  //in mA
485
   #define X2_MAX_CURRENT 1000  //in mA
486
   #define X2_SENSE_RESISTOR 91 //in mOhms
486
   #define X2_SENSE_RESISTOR 91 //in mOhms
487
   #define X2_MICROSTEPS 16     //number of microsteps
487
   #define X2_MICROSTEPS 16     //number of microsteps
488
 
488
 
489
-//#define Y_IS_TMC
489
+  //#define Y_IS_TMC
490
   #define Y_MAX_CURRENT 1000  //in mA
490
   #define Y_MAX_CURRENT 1000  //in mA
491
   #define Y_SENSE_RESISTOR 91 //in mOhms
491
   #define Y_SENSE_RESISTOR 91 //in mOhms
492
   #define Y_MICROSTEPS 16     //number of microsteps
492
   #define Y_MICROSTEPS 16     //number of microsteps
493
 
493
 
494
-//#define Y2_IS_TMC
494
+  //#define Y2_IS_TMC
495
   #define Y2_MAX_CURRENT 1000  //in mA
495
   #define Y2_MAX_CURRENT 1000  //in mA
496
   #define Y2_SENSE_RESISTOR 91 //in mOhms
496
   #define Y2_SENSE_RESISTOR 91 //in mOhms
497
   #define Y2_MICROSTEPS 16     //number of microsteps
497
   #define Y2_MICROSTEPS 16     //number of microsteps
498
 
498
 
499
-//#define Z_IS_TMC
499
+  //#define Z_IS_TMC
500
   #define Z_MAX_CURRENT 1000  //in mA
500
   #define Z_MAX_CURRENT 1000  //in mA
501
   #define Z_SENSE_RESISTOR 91 //in mOhms
501
   #define Z_SENSE_RESISTOR 91 //in mOhms
502
   #define Z_MICROSTEPS 16     //number of microsteps
502
   #define Z_MICROSTEPS 16     //number of microsteps
503
 
503
 
504
-//#define Z2_IS_TMC
504
+  //#define Z2_IS_TMC
505
   #define Z2_MAX_CURRENT 1000  //in mA
505
   #define Z2_MAX_CURRENT 1000  //in mA
506
   #define Z2_SENSE_RESISTOR 91 //in mOhms
506
   #define Z2_SENSE_RESISTOR 91 //in mOhms
507
   #define Z2_MICROSTEPS 16     //number of microsteps
507
   #define Z2_MICROSTEPS 16     //number of microsteps
508
 
508
 
509
-//#define E0_IS_TMC
509
+  //#define E0_IS_TMC
510
   #define E0_MAX_CURRENT 1000  //in mA
510
   #define E0_MAX_CURRENT 1000  //in mA
511
   #define E0_SENSE_RESISTOR 91 //in mOhms
511
   #define E0_SENSE_RESISTOR 91 //in mOhms
512
   #define E0_MICROSTEPS 16     //number of microsteps
512
   #define E0_MICROSTEPS 16     //number of microsteps
513
 
513
 
514
-//#define E1_IS_TMC
514
+  //#define E1_IS_TMC
515
   #define E1_MAX_CURRENT 1000  //in mA
515
   #define E1_MAX_CURRENT 1000  //in mA
516
   #define E1_SENSE_RESISTOR 91 //in mOhms
516
   #define E1_SENSE_RESISTOR 91 //in mOhms
517
   #define E1_MICROSTEPS 16     //number of microsteps
517
   #define E1_MICROSTEPS 16     //number of microsteps
518
 
518
 
519
-//#define E2_IS_TMC
519
+  //#define E2_IS_TMC
520
   #define E2_MAX_CURRENT 1000  //in mA
520
   #define E2_MAX_CURRENT 1000  //in mA
521
   #define E2_SENSE_RESISTOR 91 //in mOhms
521
   #define E2_SENSE_RESISTOR 91 //in mOhms
522
   #define E2_MICROSTEPS 16     //number of microsteps
522
   #define E2_MICROSTEPS 16     //number of microsteps
523
 
523
 
524
-//#define E3_IS_TMC
524
+  //#define E3_IS_TMC
525
   #define E3_MAX_CURRENT 1000  //in mA
525
   #define E3_MAX_CURRENT 1000  //in mA
526
   #define E3_SENSE_RESISTOR 91 //in mOhms
526
   #define E3_SENSE_RESISTOR 91 //in mOhms
527
   #define E3_MICROSTEPS 16     //number of microsteps
527
   #define E3_MICROSTEPS 16     //number of microsteps
538
 //#define HAVE_L6470DRIVER
538
 //#define HAVE_L6470DRIVER
539
 #if ENABLED(HAVE_L6470DRIVER)
539
 #if ENABLED(HAVE_L6470DRIVER)
540
 
540
 
541
-//#define X_IS_L6470
541
+  //#define X_IS_L6470
542
   #define X_MICROSTEPS 16     //number of microsteps
542
   #define X_MICROSTEPS 16     //number of microsteps
543
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
544
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
545
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
545
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
546
 
546
 
547
-//#define X2_IS_L6470
547
+  //#define X2_IS_L6470
548
   #define X2_MICROSTEPS 16     //number of microsteps
548
   #define X2_MICROSTEPS 16     //number of microsteps
549
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
550
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
551
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
551
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
552
 
552
 
553
-//#define Y_IS_L6470
553
+  //#define Y_IS_L6470
554
   #define Y_MICROSTEPS 16     //number of microsteps
554
   #define Y_MICROSTEPS 16     //number of microsteps
555
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
556
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
557
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
557
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
558
 
558
 
559
-//#define Y2_IS_L6470
559
+  //#define Y2_IS_L6470
560
   #define Y2_MICROSTEPS 16     //number of microsteps
560
   #define Y2_MICROSTEPS 16     //number of microsteps
561
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
562
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
563
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
563
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
564
 
564
 
565
-//#define Z_IS_L6470
565
+  //#define Z_IS_L6470
566
   #define Z_MICROSTEPS 16     //number of microsteps
566
   #define Z_MICROSTEPS 16     //number of microsteps
567
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
568
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
569
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
569
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
570
 
570
 
571
-//#define Z2_IS_L6470
571
+  //#define Z2_IS_L6470
572
   #define Z2_MICROSTEPS 16     //number of microsteps
572
   #define Z2_MICROSTEPS 16     //number of microsteps
573
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
574
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
575
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
575
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
576
 
576
 
577
-//#define E0_IS_L6470
577
+  //#define E0_IS_L6470
578
   #define E0_MICROSTEPS 16     //number of microsteps
578
   #define E0_MICROSTEPS 16     //number of microsteps
579
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
580
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
581
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
581
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
582
 
582
 
583
-//#define E1_IS_L6470
583
+  //#define E1_IS_L6470
584
   #define E1_MICROSTEPS 16     //number of microsteps
584
   #define E1_MICROSTEPS 16     //number of microsteps
585
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
586
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
587
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
587
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
588
 
588
 
589
-//#define E2_IS_L6470
589
+  //#define E2_IS_L6470
590
   #define E2_MICROSTEPS 16     //number of microsteps
590
   #define E2_MICROSTEPS 16     //number of microsteps
591
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
592
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
593
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
593
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
594
 
594
 
595
-//#define E3_IS_L6470
595
+  //#define E3_IS_L6470
596
   #define E3_MICROSTEPS 16     //number of microsteps
596
   #define E3_MICROSTEPS 16     //number of microsteps
597
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
597
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
598
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
598
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off

+ 25
- 25
Marlin/example_configurations/delta/generic/Configuration_adv.h View File

358
 //#define USE_WATCHDOG
358
 //#define USE_WATCHDOG
359
 
359
 
360
 #if ENABLED(USE_WATCHDOG)
360
 #if ENABLED(USE_WATCHDOG)
361
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
362
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
363
-//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
364
-//#define WATCHDOG_RESET_MANUAL
361
+  // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
362
+  // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
363
+  //  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
364
+  //#define WATCHDOG_RESET_MANUAL
365
 #endif
365
 #endif
366
 
366
 
367
 // @section lcd
367
 // @section lcd
399
 #define MM_PER_ARC_SEGMENT 1
399
 #define MM_PER_ARC_SEGMENT 1
400
 #define N_ARC_CORRECTION 25
400
 #define N_ARC_CORRECTION 25
401
 
401
 
402
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
402
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
403
 
403
 
404
 // @section temperature
404
 // @section temperature
405
 
405
 
477
 //#define HAVE_TMCDRIVER
477
 //#define HAVE_TMCDRIVER
478
 #if ENABLED(HAVE_TMCDRIVER)
478
 #if ENABLED(HAVE_TMCDRIVER)
479
 
479
 
480
-//#define X_IS_TMC
480
+  //#define X_IS_TMC
481
   #define X_MAX_CURRENT 1000  //in mA
481
   #define X_MAX_CURRENT 1000  //in mA
482
   #define X_SENSE_RESISTOR 91 //in mOhms
482
   #define X_SENSE_RESISTOR 91 //in mOhms
483
   #define X_MICROSTEPS 16     //number of microsteps
483
   #define X_MICROSTEPS 16     //number of microsteps
484
 
484
 
485
-//#define X2_IS_TMC
485
+  //#define X2_IS_TMC
486
   #define X2_MAX_CURRENT 1000  //in mA
486
   #define X2_MAX_CURRENT 1000  //in mA
487
   #define X2_SENSE_RESISTOR 91 //in mOhms
487
   #define X2_SENSE_RESISTOR 91 //in mOhms
488
   #define X2_MICROSTEPS 16     //number of microsteps
488
   #define X2_MICROSTEPS 16     //number of microsteps
489
 
489
 
490
-//#define Y_IS_TMC
490
+  //#define Y_IS_TMC
491
   #define Y_MAX_CURRENT 1000  //in mA
491
   #define Y_MAX_CURRENT 1000  //in mA
492
   #define Y_SENSE_RESISTOR 91 //in mOhms
492
   #define Y_SENSE_RESISTOR 91 //in mOhms
493
   #define Y_MICROSTEPS 16     //number of microsteps
493
   #define Y_MICROSTEPS 16     //number of microsteps
494
 
494
 
495
-//#define Y2_IS_TMC
495
+  //#define Y2_IS_TMC
496
   #define Y2_MAX_CURRENT 1000  //in mA
496
   #define Y2_MAX_CURRENT 1000  //in mA
497
   #define Y2_SENSE_RESISTOR 91 //in mOhms
497
   #define Y2_SENSE_RESISTOR 91 //in mOhms
498
   #define Y2_MICROSTEPS 16     //number of microsteps
498
   #define Y2_MICROSTEPS 16     //number of microsteps
499
 
499
 
500
-//#define Z_IS_TMC
500
+  //#define Z_IS_TMC
501
   #define Z_MAX_CURRENT 1000  //in mA
501
   #define Z_MAX_CURRENT 1000  //in mA
502
   #define Z_SENSE_RESISTOR 91 //in mOhms
502
   #define Z_SENSE_RESISTOR 91 //in mOhms
503
   #define Z_MICROSTEPS 16     //number of microsteps
503
   #define Z_MICROSTEPS 16     //number of microsteps
504
 
504
 
505
-//#define Z2_IS_TMC
505
+  //#define Z2_IS_TMC
506
   #define Z2_MAX_CURRENT 1000  //in mA
506
   #define Z2_MAX_CURRENT 1000  //in mA
507
   #define Z2_SENSE_RESISTOR 91 //in mOhms
507
   #define Z2_SENSE_RESISTOR 91 //in mOhms
508
   #define Z2_MICROSTEPS 16     //number of microsteps
508
   #define Z2_MICROSTEPS 16     //number of microsteps
509
 
509
 
510
-//#define E0_IS_TMC
510
+  //#define E0_IS_TMC
511
   #define E0_MAX_CURRENT 1000  //in mA
511
   #define E0_MAX_CURRENT 1000  //in mA
512
   #define E0_SENSE_RESISTOR 91 //in mOhms
512
   #define E0_SENSE_RESISTOR 91 //in mOhms
513
   #define E0_MICROSTEPS 16     //number of microsteps
513
   #define E0_MICROSTEPS 16     //number of microsteps
514
 
514
 
515
-//#define E1_IS_TMC
515
+  //#define E1_IS_TMC
516
   #define E1_MAX_CURRENT 1000  //in mA
516
   #define E1_MAX_CURRENT 1000  //in mA
517
   #define E1_SENSE_RESISTOR 91 //in mOhms
517
   #define E1_SENSE_RESISTOR 91 //in mOhms
518
   #define E1_MICROSTEPS 16     //number of microsteps
518
   #define E1_MICROSTEPS 16     //number of microsteps
519
 
519
 
520
-//#define E2_IS_TMC
520
+  //#define E2_IS_TMC
521
   #define E2_MAX_CURRENT 1000  //in mA
521
   #define E2_MAX_CURRENT 1000  //in mA
522
   #define E2_SENSE_RESISTOR 91 //in mOhms
522
   #define E2_SENSE_RESISTOR 91 //in mOhms
523
   #define E2_MICROSTEPS 16     //number of microsteps
523
   #define E2_MICROSTEPS 16     //number of microsteps
524
 
524
 
525
-//#define E3_IS_TMC
525
+  //#define E3_IS_TMC
526
   #define E3_MAX_CURRENT 1000  //in mA
526
   #define E3_MAX_CURRENT 1000  //in mA
527
   #define E3_SENSE_RESISTOR 91 //in mOhms
527
   #define E3_SENSE_RESISTOR 91 //in mOhms
528
   #define E3_MICROSTEPS 16     //number of microsteps
528
   #define E3_MICROSTEPS 16     //number of microsteps
539
 //#define HAVE_L6470DRIVER
539
 //#define HAVE_L6470DRIVER
540
 #if ENABLED(HAVE_L6470DRIVER)
540
 #if ENABLED(HAVE_L6470DRIVER)
541
 
541
 
542
-//#define X_IS_L6470
542
+  //#define X_IS_L6470
543
   #define X_MICROSTEPS 16     //number of microsteps
543
   #define X_MICROSTEPS 16     //number of microsteps
544
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
544
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
545
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
545
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
546
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
546
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
547
 
547
 
548
-//#define X2_IS_L6470
548
+  //#define X2_IS_L6470
549
   #define X2_MICROSTEPS 16     //number of microsteps
549
   #define X2_MICROSTEPS 16     //number of microsteps
550
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
550
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
551
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
551
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
552
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
552
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
553
 
553
 
554
-//#define Y_IS_L6470
554
+  //#define Y_IS_L6470
555
   #define Y_MICROSTEPS 16     //number of microsteps
555
   #define Y_MICROSTEPS 16     //number of microsteps
556
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
556
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
557
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
557
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
558
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
558
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
559
 
559
 
560
-//#define Y2_IS_L6470
560
+  //#define Y2_IS_L6470
561
   #define Y2_MICROSTEPS 16     //number of microsteps
561
   #define Y2_MICROSTEPS 16     //number of microsteps
562
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
562
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
563
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
563
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
564
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
564
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
565
 
565
 
566
-//#define Z_IS_L6470
566
+  //#define Z_IS_L6470
567
   #define Z_MICROSTEPS 16     //number of microsteps
567
   #define Z_MICROSTEPS 16     //number of microsteps
568
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
568
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
569
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
569
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
570
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
570
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
571
 
571
 
572
-//#define Z2_IS_L6470
572
+  //#define Z2_IS_L6470
573
   #define Z2_MICROSTEPS 16     //number of microsteps
573
   #define Z2_MICROSTEPS 16     //number of microsteps
574
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
574
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
575
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
575
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
576
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
576
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
577
 
577
 
578
-//#define E0_IS_L6470
578
+  //#define E0_IS_L6470
579
   #define E0_MICROSTEPS 16     //number of microsteps
579
   #define E0_MICROSTEPS 16     //number of microsteps
580
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
580
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
581
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
581
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
582
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
582
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
583
 
583
 
584
-//#define E1_IS_L6470
584
+  //#define E1_IS_L6470
585
   #define E1_MICROSTEPS 16     //number of microsteps
585
   #define E1_MICROSTEPS 16     //number of microsteps
586
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
586
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
587
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
587
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
588
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
588
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
589
 
589
 
590
-//#define E2_IS_L6470
590
+  //#define E2_IS_L6470
591
   #define E2_MICROSTEPS 16     //number of microsteps
591
   #define E2_MICROSTEPS 16     //number of microsteps
592
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
592
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
593
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
593
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
594
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
594
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
595
 
595
 
596
-//#define E3_IS_L6470
596
+  //#define E3_IS_L6470
597
   #define E3_MICROSTEPS 16     //number of microsteps
597
   #define E3_MICROSTEPS 16     //number of microsteps
598
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
598
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
599
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
599
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off

+ 25
- 25
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h View File

357
 //#define USE_WATCHDOG
357
 //#define USE_WATCHDOG
358
 
358
 
359
 #if ENABLED(USE_WATCHDOG)
359
 #if ENABLED(USE_WATCHDOG)
360
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
361
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
362
-//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
363
-//#define WATCHDOG_RESET_MANUAL
360
+  // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
361
+  // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
362
+  //  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
363
+  //#define WATCHDOG_RESET_MANUAL
364
 #endif
364
 #endif
365
 
365
 
366
 // @section lcd
366
 // @section lcd
398
 #define MM_PER_ARC_SEGMENT 1
398
 #define MM_PER_ARC_SEGMENT 1
399
 #define N_ARC_CORRECTION 25
399
 #define N_ARC_CORRECTION 25
400
 
400
 
401
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
401
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
402
 
402
 
403
 // @section temperature
403
 // @section temperature
404
 
404
 
476
 //#define HAVE_TMCDRIVER
476
 //#define HAVE_TMCDRIVER
477
 #if ENABLED(HAVE_TMCDRIVER)
477
 #if ENABLED(HAVE_TMCDRIVER)
478
 
478
 
479
-//#define X_IS_TMC
479
+  //#define X_IS_TMC
480
   #define X_MAX_CURRENT 1000  //in mA
480
   #define X_MAX_CURRENT 1000  //in mA
481
   #define X_SENSE_RESISTOR 91 //in mOhms
481
   #define X_SENSE_RESISTOR 91 //in mOhms
482
   #define X_MICROSTEPS 16     //number of microsteps
482
   #define X_MICROSTEPS 16     //number of microsteps
483
 
483
 
484
-//#define X2_IS_TMC
484
+  //#define X2_IS_TMC
485
   #define X2_MAX_CURRENT 1000  //in mA
485
   #define X2_MAX_CURRENT 1000  //in mA
486
   #define X2_SENSE_RESISTOR 91 //in mOhms
486
   #define X2_SENSE_RESISTOR 91 //in mOhms
487
   #define X2_MICROSTEPS 16     //number of microsteps
487
   #define X2_MICROSTEPS 16     //number of microsteps
488
 
488
 
489
-//#define Y_IS_TMC
489
+  //#define Y_IS_TMC
490
   #define Y_MAX_CURRENT 1000  //in mA
490
   #define Y_MAX_CURRENT 1000  //in mA
491
   #define Y_SENSE_RESISTOR 91 //in mOhms
491
   #define Y_SENSE_RESISTOR 91 //in mOhms
492
   #define Y_MICROSTEPS 16     //number of microsteps
492
   #define Y_MICROSTEPS 16     //number of microsteps
493
 
493
 
494
-//#define Y2_IS_TMC
494
+  //#define Y2_IS_TMC
495
   #define Y2_MAX_CURRENT 1000  //in mA
495
   #define Y2_MAX_CURRENT 1000  //in mA
496
   #define Y2_SENSE_RESISTOR 91 //in mOhms
496
   #define Y2_SENSE_RESISTOR 91 //in mOhms
497
   #define Y2_MICROSTEPS 16     //number of microsteps
497
   #define Y2_MICROSTEPS 16     //number of microsteps
498
 
498
 
499
-//#define Z_IS_TMC
499
+  //#define Z_IS_TMC
500
   #define Z_MAX_CURRENT 1000  //in mA
500
   #define Z_MAX_CURRENT 1000  //in mA
501
   #define Z_SENSE_RESISTOR 91 //in mOhms
501
   #define Z_SENSE_RESISTOR 91 //in mOhms
502
   #define Z_MICROSTEPS 16     //number of microsteps
502
   #define Z_MICROSTEPS 16     //number of microsteps
503
 
503
 
504
-//#define Z2_IS_TMC
504
+  //#define Z2_IS_TMC
505
   #define Z2_MAX_CURRENT 1000  //in mA
505
   #define Z2_MAX_CURRENT 1000  //in mA
506
   #define Z2_SENSE_RESISTOR 91 //in mOhms
506
   #define Z2_SENSE_RESISTOR 91 //in mOhms
507
   #define Z2_MICROSTEPS 16     //number of microsteps
507
   #define Z2_MICROSTEPS 16     //number of microsteps
508
 
508
 
509
-//#define E0_IS_TMC
509
+  //#define E0_IS_TMC
510
   #define E0_MAX_CURRENT 1000  //in mA
510
   #define E0_MAX_CURRENT 1000  //in mA
511
   #define E0_SENSE_RESISTOR 91 //in mOhms
511
   #define E0_SENSE_RESISTOR 91 //in mOhms
512
   #define E0_MICROSTEPS 16     //number of microsteps
512
   #define E0_MICROSTEPS 16     //number of microsteps
513
 
513
 
514
-//#define E1_IS_TMC
514
+  //#define E1_IS_TMC
515
   #define E1_MAX_CURRENT 1000  //in mA
515
   #define E1_MAX_CURRENT 1000  //in mA
516
   #define E1_SENSE_RESISTOR 91 //in mOhms
516
   #define E1_SENSE_RESISTOR 91 //in mOhms
517
   #define E1_MICROSTEPS 16     //number of microsteps
517
   #define E1_MICROSTEPS 16     //number of microsteps
518
 
518
 
519
-//#define E2_IS_TMC
519
+  //#define E2_IS_TMC
520
   #define E2_MAX_CURRENT 1000  //in mA
520
   #define E2_MAX_CURRENT 1000  //in mA
521
   #define E2_SENSE_RESISTOR 91 //in mOhms
521
   #define E2_SENSE_RESISTOR 91 //in mOhms
522
   #define E2_MICROSTEPS 16     //number of microsteps
522
   #define E2_MICROSTEPS 16     //number of microsteps
523
 
523
 
524
-//#define E3_IS_TMC
524
+  //#define E3_IS_TMC
525
   #define E3_MAX_CURRENT 1000  //in mA
525
   #define E3_MAX_CURRENT 1000  //in mA
526
   #define E3_SENSE_RESISTOR 91 //in mOhms
526
   #define E3_SENSE_RESISTOR 91 //in mOhms
527
   #define E3_MICROSTEPS 16     //number of microsteps
527
   #define E3_MICROSTEPS 16     //number of microsteps
538
 //#define HAVE_L6470DRIVER
538
 //#define HAVE_L6470DRIVER
539
 #if ENABLED(HAVE_L6470DRIVER)
539
 #if ENABLED(HAVE_L6470DRIVER)
540
 
540
 
541
-//#define X_IS_L6470
541
+  //#define X_IS_L6470
542
   #define X_MICROSTEPS 16     //number of microsteps
542
   #define X_MICROSTEPS 16     //number of microsteps
543
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
544
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
545
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
545
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
546
 
546
 
547
-//#define X2_IS_L6470
547
+  //#define X2_IS_L6470
548
   #define X2_MICROSTEPS 16     //number of microsteps
548
   #define X2_MICROSTEPS 16     //number of microsteps
549
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
550
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
551
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
551
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
552
 
552
 
553
-//#define Y_IS_L6470
553
+  //#define Y_IS_L6470
554
   #define Y_MICROSTEPS 16     //number of microsteps
554
   #define Y_MICROSTEPS 16     //number of microsteps
555
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
556
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
557
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
557
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
558
 
558
 
559
-//#define Y2_IS_L6470
559
+  //#define Y2_IS_L6470
560
   #define Y2_MICROSTEPS 16     //number of microsteps
560
   #define Y2_MICROSTEPS 16     //number of microsteps
561
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
562
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
563
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
563
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
564
 
564
 
565
-//#define Z_IS_L6470
565
+  //#define Z_IS_L6470
566
   #define Z_MICROSTEPS 16     //number of microsteps
566
   #define Z_MICROSTEPS 16     //number of microsteps
567
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
568
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
569
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
569
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
570
 
570
 
571
-//#define Z2_IS_L6470
571
+  //#define Z2_IS_L6470
572
   #define Z2_MICROSTEPS 16     //number of microsteps
572
   #define Z2_MICROSTEPS 16     //number of microsteps
573
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
574
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
575
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
575
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
576
 
576
 
577
-//#define E0_IS_L6470
577
+  //#define E0_IS_L6470
578
   #define E0_MICROSTEPS 16     //number of microsteps
578
   #define E0_MICROSTEPS 16     //number of microsteps
579
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
580
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
581
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
581
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
582
 
582
 
583
-//#define E1_IS_L6470
583
+  //#define E1_IS_L6470
584
   #define E1_MICROSTEPS 16     //number of microsteps
584
   #define E1_MICROSTEPS 16     //number of microsteps
585
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
586
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
587
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
587
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
588
 
588
 
589
-//#define E2_IS_L6470
589
+  //#define E2_IS_L6470
590
   #define E2_MICROSTEPS 16     //number of microsteps
590
   #define E2_MICROSTEPS 16     //number of microsteps
591
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
592
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
593
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
593
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
594
 
594
 
595
-//#define E3_IS_L6470
595
+  //#define E3_IS_L6470
596
   #define E3_MICROSTEPS 16     //number of microsteps
596
   #define E3_MICROSTEPS 16     //number of microsteps
597
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
597
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
598
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
598
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off

+ 25
- 25
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h View File

361
 //#define USE_WATCHDOG
361
 //#define USE_WATCHDOG
362
 
362
 
363
 #if ENABLED(USE_WATCHDOG)
363
 #if ENABLED(USE_WATCHDOG)
364
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
365
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
366
-//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
367
-//#define WATCHDOG_RESET_MANUAL
364
+  // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
365
+  // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
366
+  //  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
367
+  //#define WATCHDOG_RESET_MANUAL
368
 #endif
368
 #endif
369
 
369
 
370
 // @section lcd
370
 // @section lcd
402
 #define MM_PER_ARC_SEGMENT 1
402
 #define MM_PER_ARC_SEGMENT 1
403
 #define N_ARC_CORRECTION 25
403
 #define N_ARC_CORRECTION 25
404
 
404
 
405
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
405
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
406
 
406
 
407
 // @section temperature
407
 // @section temperature
408
 
408
 
480
 //#define HAVE_TMCDRIVER
480
 //#define HAVE_TMCDRIVER
481
 #if ENABLED(HAVE_TMCDRIVER)
481
 #if ENABLED(HAVE_TMCDRIVER)
482
 
482
 
483
-//#define X_IS_TMC
483
+  //#define X_IS_TMC
484
   #define X_MAX_CURRENT 1000  //in mA
484
   #define X_MAX_CURRENT 1000  //in mA
485
   #define X_SENSE_RESISTOR 91 //in mOhms
485
   #define X_SENSE_RESISTOR 91 //in mOhms
486
   #define X_MICROSTEPS 16     //number of microsteps
486
   #define X_MICROSTEPS 16     //number of microsteps
487
 
487
 
488
-//#define X2_IS_TMC
488
+  //#define X2_IS_TMC
489
   #define X2_MAX_CURRENT 1000  //in mA
489
   #define X2_MAX_CURRENT 1000  //in mA
490
   #define X2_SENSE_RESISTOR 91 //in mOhms
490
   #define X2_SENSE_RESISTOR 91 //in mOhms
491
   #define X2_MICROSTEPS 16     //number of microsteps
491
   #define X2_MICROSTEPS 16     //number of microsteps
492
 
492
 
493
-//#define Y_IS_TMC
493
+  //#define Y_IS_TMC
494
   #define Y_MAX_CURRENT 1000  //in mA
494
   #define Y_MAX_CURRENT 1000  //in mA
495
   #define Y_SENSE_RESISTOR 91 //in mOhms
495
   #define Y_SENSE_RESISTOR 91 //in mOhms
496
   #define Y_MICROSTEPS 16     //number of microsteps
496
   #define Y_MICROSTEPS 16     //number of microsteps
497
 
497
 
498
-//#define Y2_IS_TMC
498
+  //#define Y2_IS_TMC
499
   #define Y2_MAX_CURRENT 1000  //in mA
499
   #define Y2_MAX_CURRENT 1000  //in mA
500
   #define Y2_SENSE_RESISTOR 91 //in mOhms
500
   #define Y2_SENSE_RESISTOR 91 //in mOhms
501
   #define Y2_MICROSTEPS 16     //number of microsteps
501
   #define Y2_MICROSTEPS 16     //number of microsteps
502
 
502
 
503
-//#define Z_IS_TMC
503
+  //#define Z_IS_TMC
504
   #define Z_MAX_CURRENT 1000  //in mA
504
   #define Z_MAX_CURRENT 1000  //in mA
505
   #define Z_SENSE_RESISTOR 91 //in mOhms
505
   #define Z_SENSE_RESISTOR 91 //in mOhms
506
   #define Z_MICROSTEPS 16     //number of microsteps
506
   #define Z_MICROSTEPS 16     //number of microsteps
507
 
507
 
508
-//#define Z2_IS_TMC
508
+  //#define Z2_IS_TMC
509
   #define Z2_MAX_CURRENT 1000  //in mA
509
   #define Z2_MAX_CURRENT 1000  //in mA
510
   #define Z2_SENSE_RESISTOR 91 //in mOhms
510
   #define Z2_SENSE_RESISTOR 91 //in mOhms
511
   #define Z2_MICROSTEPS 16     //number of microsteps
511
   #define Z2_MICROSTEPS 16     //number of microsteps
512
 
512
 
513
-//#define E0_IS_TMC
513
+  //#define E0_IS_TMC
514
   #define E0_MAX_CURRENT 1000  //in mA
514
   #define E0_MAX_CURRENT 1000  //in mA
515
   #define E0_SENSE_RESISTOR 91 //in mOhms
515
   #define E0_SENSE_RESISTOR 91 //in mOhms
516
   #define E0_MICROSTEPS 16     //number of microsteps
516
   #define E0_MICROSTEPS 16     //number of microsteps
517
 
517
 
518
-//#define E1_IS_TMC
518
+  //#define E1_IS_TMC
519
   #define E1_MAX_CURRENT 1000  //in mA
519
   #define E1_MAX_CURRENT 1000  //in mA
520
   #define E1_SENSE_RESISTOR 91 //in mOhms
520
   #define E1_SENSE_RESISTOR 91 //in mOhms
521
   #define E1_MICROSTEPS 16     //number of microsteps
521
   #define E1_MICROSTEPS 16     //number of microsteps
522
 
522
 
523
-//#define E2_IS_TMC
523
+  //#define E2_IS_TMC
524
   #define E2_MAX_CURRENT 1000  //in mA
524
   #define E2_MAX_CURRENT 1000  //in mA
525
   #define E2_SENSE_RESISTOR 91 //in mOhms
525
   #define E2_SENSE_RESISTOR 91 //in mOhms
526
   #define E2_MICROSTEPS 16     //number of microsteps
526
   #define E2_MICROSTEPS 16     //number of microsteps
527
 
527
 
528
-//#define E3_IS_TMC
528
+  //#define E3_IS_TMC
529
   #define E3_MAX_CURRENT 1000  //in mA
529
   #define E3_MAX_CURRENT 1000  //in mA
530
   #define E3_SENSE_RESISTOR 91 //in mOhms
530
   #define E3_SENSE_RESISTOR 91 //in mOhms
531
   #define E3_MICROSTEPS 16     //number of microsteps
531
   #define E3_MICROSTEPS 16     //number of microsteps
542
 //#define HAVE_L6470DRIVER
542
 //#define HAVE_L6470DRIVER
543
 #if ENABLED(HAVE_L6470DRIVER)
543
 #if ENABLED(HAVE_L6470DRIVER)
544
 
544
 
545
-//#define X_IS_L6470
545
+  //#define X_IS_L6470
546
   #define X_MICROSTEPS 16     //number of microsteps
546
   #define X_MICROSTEPS 16     //number of microsteps
547
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
547
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
548
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
548
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
549
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
549
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
550
 
550
 
551
-//#define X2_IS_L6470
551
+  //#define X2_IS_L6470
552
   #define X2_MICROSTEPS 16     //number of microsteps
552
   #define X2_MICROSTEPS 16     //number of microsteps
553
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
553
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
554
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
554
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
555
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
555
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
556
 
556
 
557
-//#define Y_IS_L6470
557
+  //#define Y_IS_L6470
558
   #define Y_MICROSTEPS 16     //number of microsteps
558
   #define Y_MICROSTEPS 16     //number of microsteps
559
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
559
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
560
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
560
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
561
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
561
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
562
 
562
 
563
-//#define Y2_IS_L6470
563
+  //#define Y2_IS_L6470
564
   #define Y2_MICROSTEPS 16     //number of microsteps
564
   #define Y2_MICROSTEPS 16     //number of microsteps
565
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
565
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
566
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
566
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
567
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
567
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
568
 
568
 
569
-//#define Z_IS_L6470
569
+  //#define Z_IS_L6470
570
   #define Z_MICROSTEPS 16     //number of microsteps
570
   #define Z_MICROSTEPS 16     //number of microsteps
571
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
571
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
572
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
572
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
573
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
573
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
574
 
574
 
575
-//#define Z2_IS_L6470
575
+  //#define Z2_IS_L6470
576
   #define Z2_MICROSTEPS 16     //number of microsteps
576
   #define Z2_MICROSTEPS 16     //number of microsteps
577
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
577
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
578
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
578
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
579
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
579
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
580
 
580
 
581
-//#define E0_IS_L6470
581
+  //#define E0_IS_L6470
582
   #define E0_MICROSTEPS 16     //number of microsteps
582
   #define E0_MICROSTEPS 16     //number of microsteps
583
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
583
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
584
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
584
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
585
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
585
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
586
 
586
 
587
-//#define E1_IS_L6470
587
+  //#define E1_IS_L6470
588
   #define E1_MICROSTEPS 16     //number of microsteps
588
   #define E1_MICROSTEPS 16     //number of microsteps
589
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
589
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
590
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
590
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
591
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
591
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
592
 
592
 
593
-//#define E2_IS_L6470
593
+  //#define E2_IS_L6470
594
   #define E2_MICROSTEPS 16     //number of microsteps
594
   #define E2_MICROSTEPS 16     //number of microsteps
595
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
595
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
596
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
596
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
597
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
597
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
598
 
598
 
599
-//#define E3_IS_L6470
599
+  //#define E3_IS_L6470
600
   #define E3_MICROSTEPS 16     //number of microsteps
600
   #define E3_MICROSTEPS 16     //number of microsteps
601
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
601
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
602
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
602
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off

+ 25
- 25
Marlin/example_configurations/makibox/Configuration_adv.h View File

355
 //#define USE_WATCHDOG
355
 //#define USE_WATCHDOG
356
 
356
 
357
 #if ENABLED(USE_WATCHDOG)
357
 #if ENABLED(USE_WATCHDOG)
358
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
359
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
360
-//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
361
-//#define WATCHDOG_RESET_MANUAL
358
+  // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
359
+  // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
360
+  //  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
361
+  //#define WATCHDOG_RESET_MANUAL
362
 #endif
362
 #endif
363
 
363
 
364
 // @section lcd
364
 // @section lcd
396
 #define MM_PER_ARC_SEGMENT 1
396
 #define MM_PER_ARC_SEGMENT 1
397
 #define N_ARC_CORRECTION 25
397
 #define N_ARC_CORRECTION 25
398
 
398
 
399
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
399
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
400
 
400
 
401
 // @section temperature
401
 // @section temperature
402
 
402
 
474
 //#define HAVE_TMCDRIVER
474
 //#define HAVE_TMCDRIVER
475
 #if ENABLED(HAVE_TMCDRIVER)
475
 #if ENABLED(HAVE_TMCDRIVER)
476
 
476
 
477
-//#define X_IS_TMC
477
+  //#define X_IS_TMC
478
   #define X_MAX_CURRENT 1000  //in mA
478
   #define X_MAX_CURRENT 1000  //in mA
479
   #define X_SENSE_RESISTOR 91 //in mOhms
479
   #define X_SENSE_RESISTOR 91 //in mOhms
480
   #define X_MICROSTEPS 16     //number of microsteps
480
   #define X_MICROSTEPS 16     //number of microsteps
481
 
481
 
482
-//#define X2_IS_TMC
482
+  //#define X2_IS_TMC
483
   #define X2_MAX_CURRENT 1000  //in mA
483
   #define X2_MAX_CURRENT 1000  //in mA
484
   #define X2_SENSE_RESISTOR 91 //in mOhms
484
   #define X2_SENSE_RESISTOR 91 //in mOhms
485
   #define X2_MICROSTEPS 16     //number of microsteps
485
   #define X2_MICROSTEPS 16     //number of microsteps
486
 
486
 
487
-//#define Y_IS_TMC
487
+  //#define Y_IS_TMC
488
   #define Y_MAX_CURRENT 1000  //in mA
488
   #define Y_MAX_CURRENT 1000  //in mA
489
   #define Y_SENSE_RESISTOR 91 //in mOhms
489
   #define Y_SENSE_RESISTOR 91 //in mOhms
490
   #define Y_MICROSTEPS 16     //number of microsteps
490
   #define Y_MICROSTEPS 16     //number of microsteps
491
 
491
 
492
-//#define Y2_IS_TMC
492
+  //#define Y2_IS_TMC
493
   #define Y2_MAX_CURRENT 1000  //in mA
493
   #define Y2_MAX_CURRENT 1000  //in mA
494
   #define Y2_SENSE_RESISTOR 91 //in mOhms
494
   #define Y2_SENSE_RESISTOR 91 //in mOhms
495
   #define Y2_MICROSTEPS 16     //number of microsteps
495
   #define Y2_MICROSTEPS 16     //number of microsteps
496
 
496
 
497
-//#define Z_IS_TMC
497
+  //#define Z_IS_TMC
498
   #define Z_MAX_CURRENT 1000  //in mA
498
   #define Z_MAX_CURRENT 1000  //in mA
499
   #define Z_SENSE_RESISTOR 91 //in mOhms
499
   #define Z_SENSE_RESISTOR 91 //in mOhms
500
   #define Z_MICROSTEPS 16     //number of microsteps
500
   #define Z_MICROSTEPS 16     //number of microsteps
501
 
501
 
502
-//#define Z2_IS_TMC
502
+  //#define Z2_IS_TMC
503
   #define Z2_MAX_CURRENT 1000  //in mA
503
   #define Z2_MAX_CURRENT 1000  //in mA
504
   #define Z2_SENSE_RESISTOR 91 //in mOhms
504
   #define Z2_SENSE_RESISTOR 91 //in mOhms
505
   #define Z2_MICROSTEPS 16     //number of microsteps
505
   #define Z2_MICROSTEPS 16     //number of microsteps
506
 
506
 
507
-//#define E0_IS_TMC
507
+  //#define E0_IS_TMC
508
   #define E0_MAX_CURRENT 1000  //in mA
508
   #define E0_MAX_CURRENT 1000  //in mA
509
   #define E0_SENSE_RESISTOR 91 //in mOhms
509
   #define E0_SENSE_RESISTOR 91 //in mOhms
510
   #define E0_MICROSTEPS 16     //number of microsteps
510
   #define E0_MICROSTEPS 16     //number of microsteps
511
 
511
 
512
-//#define E1_IS_TMC
512
+  //#define E1_IS_TMC
513
   #define E1_MAX_CURRENT 1000  //in mA
513
   #define E1_MAX_CURRENT 1000  //in mA
514
   #define E1_SENSE_RESISTOR 91 //in mOhms
514
   #define E1_SENSE_RESISTOR 91 //in mOhms
515
   #define E1_MICROSTEPS 16     //number of microsteps
515
   #define E1_MICROSTEPS 16     //number of microsteps
516
 
516
 
517
-//#define E2_IS_TMC
517
+  //#define E2_IS_TMC
518
   #define E2_MAX_CURRENT 1000  //in mA
518
   #define E2_MAX_CURRENT 1000  //in mA
519
   #define E2_SENSE_RESISTOR 91 //in mOhms
519
   #define E2_SENSE_RESISTOR 91 //in mOhms
520
   #define E2_MICROSTEPS 16     //number of microsteps
520
   #define E2_MICROSTEPS 16     //number of microsteps
521
 
521
 
522
-//#define E3_IS_TMC
522
+  //#define E3_IS_TMC
523
   #define E3_MAX_CURRENT 1000  //in mA
523
   #define E3_MAX_CURRENT 1000  //in mA
524
   #define E3_SENSE_RESISTOR 91 //in mOhms
524
   #define E3_SENSE_RESISTOR 91 //in mOhms
525
   #define E3_MICROSTEPS 16     //number of microsteps
525
   #define E3_MICROSTEPS 16     //number of microsteps
536
 //#define HAVE_L6470DRIVER
536
 //#define HAVE_L6470DRIVER
537
 #if ENABLED(HAVE_L6470DRIVER)
537
 #if ENABLED(HAVE_L6470DRIVER)
538
 
538
 
539
-//#define X_IS_L6470
539
+  //#define X_IS_L6470
540
   #define X_MICROSTEPS 16     //number of microsteps
540
   #define X_MICROSTEPS 16     //number of microsteps
541
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
541
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
542
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
542
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
543
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
543
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
544
 
544
 
545
-//#define X2_IS_L6470
545
+  //#define X2_IS_L6470
546
   #define X2_MICROSTEPS 16     //number of microsteps
546
   #define X2_MICROSTEPS 16     //number of microsteps
547
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
547
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
548
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
548
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
549
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
549
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
550
 
550
 
551
-//#define Y_IS_L6470
551
+  //#define Y_IS_L6470
552
   #define Y_MICROSTEPS 16     //number of microsteps
552
   #define Y_MICROSTEPS 16     //number of microsteps
553
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
553
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
554
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
554
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
555
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
555
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
556
 
556
 
557
-//#define Y2_IS_L6470
557
+  //#define Y2_IS_L6470
558
   #define Y2_MICROSTEPS 16     //number of microsteps
558
   #define Y2_MICROSTEPS 16     //number of microsteps
559
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
559
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
560
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
560
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
561
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
561
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
562
 
562
 
563
-//#define Z_IS_L6470
563
+  //#define Z_IS_L6470
564
   #define Z_MICROSTEPS 16     //number of microsteps
564
   #define Z_MICROSTEPS 16     //number of microsteps
565
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
565
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
566
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
566
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
567
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
567
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
568
 
568
 
569
-//#define Z2_IS_L6470
569
+  //#define Z2_IS_L6470
570
   #define Z2_MICROSTEPS 16     //number of microsteps
570
   #define Z2_MICROSTEPS 16     //number of microsteps
571
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
571
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
572
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
572
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
573
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
573
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
574
 
574
 
575
-//#define E0_IS_L6470
575
+  //#define E0_IS_L6470
576
   #define E0_MICROSTEPS 16     //number of microsteps
576
   #define E0_MICROSTEPS 16     //number of microsteps
577
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
577
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
578
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
578
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
579
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
579
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
580
 
580
 
581
-//#define E1_IS_L6470
581
+  //#define E1_IS_L6470
582
   #define E1_MICROSTEPS 16     //number of microsteps
582
   #define E1_MICROSTEPS 16     //number of microsteps
583
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
583
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
584
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
584
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
585
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
585
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
586
 
586
 
587
-//#define E2_IS_L6470
587
+  //#define E2_IS_L6470
588
   #define E2_MICROSTEPS 16     //number of microsteps
588
   #define E2_MICROSTEPS 16     //number of microsteps
589
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
589
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
590
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
590
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
591
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
591
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
592
 
592
 
593
-//#define E3_IS_L6470
593
+  //#define E3_IS_L6470
594
   #define E3_MICROSTEPS 16     //number of microsteps
594
   #define E3_MICROSTEPS 16     //number of microsteps
595
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
595
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
596
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
596
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off

+ 25
- 25
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

356
 //#define USE_WATCHDOG
356
 //#define USE_WATCHDOG
357
 
357
 
358
 #if ENABLED(USE_WATCHDOG)
358
 #if ENABLED(USE_WATCHDOG)
359
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
360
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
361
-//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
362
-//#define WATCHDOG_RESET_MANUAL
359
+  // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
360
+  // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
361
+  //  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
362
+  //#define WATCHDOG_RESET_MANUAL
363
 #endif
363
 #endif
364
 
364
 
365
 // @section lcd
365
 // @section lcd
397
 #define MM_PER_ARC_SEGMENT 1
397
 #define MM_PER_ARC_SEGMENT 1
398
 #define N_ARC_CORRECTION 25
398
 #define N_ARC_CORRECTION 25
399
 
399
 
400
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
400
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
401
 
401
 
402
 // @section temperature
402
 // @section temperature
403
 
403
 
475
 //#define HAVE_TMCDRIVER
475
 //#define HAVE_TMCDRIVER
476
 #if ENABLED(HAVE_TMCDRIVER)
476
 #if ENABLED(HAVE_TMCDRIVER)
477
 
477
 
478
-//#define X_IS_TMC
478
+  //#define X_IS_TMC
479
   #define X_MAX_CURRENT 1000  //in mA
479
   #define X_MAX_CURRENT 1000  //in mA
480
   #define X_SENSE_RESISTOR 91 //in mOhms
480
   #define X_SENSE_RESISTOR 91 //in mOhms
481
   #define X_MICROSTEPS 16     //number of microsteps
481
   #define X_MICROSTEPS 16     //number of microsteps
482
 
482
 
483
-//#define X2_IS_TMC
483
+  //#define X2_IS_TMC
484
   #define X2_MAX_CURRENT 1000  //in mA
484
   #define X2_MAX_CURRENT 1000  //in mA
485
   #define X2_SENSE_RESISTOR 91 //in mOhms
485
   #define X2_SENSE_RESISTOR 91 //in mOhms
486
   #define X2_MICROSTEPS 16     //number of microsteps
486
   #define X2_MICROSTEPS 16     //number of microsteps
487
 
487
 
488
-//#define Y_IS_TMC
488
+  //#define Y_IS_TMC
489
   #define Y_MAX_CURRENT 1000  //in mA
489
   #define Y_MAX_CURRENT 1000  //in mA
490
   #define Y_SENSE_RESISTOR 91 //in mOhms
490
   #define Y_SENSE_RESISTOR 91 //in mOhms
491
   #define Y_MICROSTEPS 16     //number of microsteps
491
   #define Y_MICROSTEPS 16     //number of microsteps
492
 
492
 
493
-//#define Y2_IS_TMC
493
+  //#define Y2_IS_TMC
494
   #define Y2_MAX_CURRENT 1000  //in mA
494
   #define Y2_MAX_CURRENT 1000  //in mA
495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
496
   #define Y2_MICROSTEPS 16     //number of microsteps
496
   #define Y2_MICROSTEPS 16     //number of microsteps
497
 
497
 
498
-//#define Z_IS_TMC
498
+  //#define Z_IS_TMC
499
   #define Z_MAX_CURRENT 1000  //in mA
499
   #define Z_MAX_CURRENT 1000  //in mA
500
   #define Z_SENSE_RESISTOR 91 //in mOhms
500
   #define Z_SENSE_RESISTOR 91 //in mOhms
501
   #define Z_MICROSTEPS 16     //number of microsteps
501
   #define Z_MICROSTEPS 16     //number of microsteps
502
 
502
 
503
-//#define Z2_IS_TMC
503
+  //#define Z2_IS_TMC
504
   #define Z2_MAX_CURRENT 1000  //in mA
504
   #define Z2_MAX_CURRENT 1000  //in mA
505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
506
   #define Z2_MICROSTEPS 16     //number of microsteps
506
   #define Z2_MICROSTEPS 16     //number of microsteps
507
 
507
 
508
-//#define E0_IS_TMC
508
+  //#define E0_IS_TMC
509
   #define E0_MAX_CURRENT 1000  //in mA
509
   #define E0_MAX_CURRENT 1000  //in mA
510
   #define E0_SENSE_RESISTOR 91 //in mOhms
510
   #define E0_SENSE_RESISTOR 91 //in mOhms
511
   #define E0_MICROSTEPS 16     //number of microsteps
511
   #define E0_MICROSTEPS 16     //number of microsteps
512
 
512
 
513
-//#define E1_IS_TMC
513
+  //#define E1_IS_TMC
514
   #define E1_MAX_CURRENT 1000  //in mA
514
   #define E1_MAX_CURRENT 1000  //in mA
515
   #define E1_SENSE_RESISTOR 91 //in mOhms
515
   #define E1_SENSE_RESISTOR 91 //in mOhms
516
   #define E1_MICROSTEPS 16     //number of microsteps
516
   #define E1_MICROSTEPS 16     //number of microsteps
517
 
517
 
518
-//#define E2_IS_TMC
518
+  //#define E2_IS_TMC
519
   #define E2_MAX_CURRENT 1000  //in mA
519
   #define E2_MAX_CURRENT 1000  //in mA
520
   #define E2_SENSE_RESISTOR 91 //in mOhms
520
   #define E2_SENSE_RESISTOR 91 //in mOhms
521
   #define E2_MICROSTEPS 16     //number of microsteps
521
   #define E2_MICROSTEPS 16     //number of microsteps
522
 
522
 
523
-//#define E3_IS_TMC
523
+  //#define E3_IS_TMC
524
   #define E3_MAX_CURRENT 1000  //in mA
524
   #define E3_MAX_CURRENT 1000  //in mA
525
   #define E3_SENSE_RESISTOR 91 //in mOhms
525
   #define E3_SENSE_RESISTOR 91 //in mOhms
526
   #define E3_MICROSTEPS 16     //number of microsteps
526
   #define E3_MICROSTEPS 16     //number of microsteps
537
 //#define HAVE_L6470DRIVER
537
 //#define HAVE_L6470DRIVER
538
 #if ENABLED(HAVE_L6470DRIVER)
538
 #if ENABLED(HAVE_L6470DRIVER)
539
 
539
 
540
-//#define X_IS_L6470
540
+  //#define X_IS_L6470
541
   #define X_MICROSTEPS 16     //number of microsteps
541
   #define X_MICROSTEPS 16     //number of microsteps
542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
544
   #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
545
 
545
 
546
-//#define X2_IS_L6470
546
+  //#define X2_IS_L6470
547
   #define X2_MICROSTEPS 16     //number of microsteps
547
   #define X2_MICROSTEPS 16     //number of microsteps
548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
550
   #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
551
 
551
 
552
-//#define Y_IS_L6470
552
+  //#define Y_IS_L6470
553
   #define Y_MICROSTEPS 16     //number of microsteps
553
   #define Y_MICROSTEPS 16     //number of microsteps
554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
556
   #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
557
 
557
 
558
-//#define Y2_IS_L6470
558
+  //#define Y2_IS_L6470
559
   #define Y2_MICROSTEPS 16     //number of microsteps
559
   #define Y2_MICROSTEPS 16     //number of microsteps
560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
562
   #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
563
 
563
 
564
-//#define Z_IS_L6470
564
+  //#define Z_IS_L6470
565
   #define Z_MICROSTEPS 16     //number of microsteps
565
   #define Z_MICROSTEPS 16     //number of microsteps
566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
568
   #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
569
 
569
 
570
-//#define Z2_IS_L6470
570
+  //#define Z2_IS_L6470
571
   #define Z2_MICROSTEPS 16     //number of microsteps
571
   #define Z2_MICROSTEPS 16     //number of microsteps
572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
574
   #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
575
 
575
 
576
-//#define E0_IS_L6470
576
+  //#define E0_IS_L6470
577
   #define E0_MICROSTEPS 16     //number of microsteps
577
   #define E0_MICROSTEPS 16     //number of microsteps
578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
580
   #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
581
 
581
 
582
-//#define E1_IS_L6470
582
+  //#define E1_IS_L6470
583
   #define E1_MICROSTEPS 16     //number of microsteps
583
   #define E1_MICROSTEPS 16     //number of microsteps
584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
586
   #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
587
 
587
 
588
-//#define E2_IS_L6470
588
+  //#define E2_IS_L6470
589
   #define E2_MICROSTEPS 16     //number of microsteps
589
   #define E2_MICROSTEPS 16     //number of microsteps
590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
592
   #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
593
 
593
 
594
-//#define E3_IS_L6470
594
+  //#define E3_IS_L6470
595
   #define E3_MICROSTEPS 16     //number of microsteps
595
   #define E3_MICROSTEPS 16     //number of microsteps
596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
597
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
597
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off

Loading…
Cancel
Save