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,7 +137,7 @@
137 137
 #if ENABLED(Z_DUAL_STEPPER_DRIVERS)
138 138
 
139 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 141
   // There is also an implementation of M666 (software endstops adjustment) to this feature.
142 142
   // After Z homing, this adjustment is applied to just one of the steppers in order to align the bed.
143 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,8 +335,8 @@
335 335
   // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
336 336
   // we don't have a big font for Cyrillic, Kana
337 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 340
   // smaller font on the Info-screen uncomment the next line.
341 341
   //#define USE_SMALL_INFOFONT
342 342
 #endif // DOGLCD
@@ -347,10 +347,10 @@
347 347
 //#define USE_WATCHDOG
348 348
 
349 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 354
 #endif
355 355
 
356 356
 // @section lcd
@@ -389,7 +389,7 @@
389 389
 #define MM_PER_ARC_SEGMENT 1
390 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 394
 // @section temperature
395 395
 
@@ -461,7 +461,7 @@ const unsigned int dropsegments=5; //everything with less than this number of st
461 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 465
  * you need to import the TMC26XStepper library into the arduino IDE for this
466 466
  ******************************************************************************/
467 467
 
@@ -470,60 +470,60 @@ const unsigned int dropsegments=5; //everything with less than this number of st
470 470
 //#define HAVE_TMCDRIVER
471 471
 #if ENABLED(HAVE_TMCDRIVER)
472 472
 
473
-//#define X_IS_TMC
473
+  //#define X_IS_TMC
474 474
   #define X_MAX_CURRENT 1000  //in mA
475 475
   #define X_SENSE_RESISTOR 91 //in mOhms
476 476
   #define X_MICROSTEPS 16     //number of microsteps
477
-  
478
-//#define X2_IS_TMC
477
+
478
+  //#define X2_IS_TMC
479 479
   #define X2_MAX_CURRENT 1000  //in mA
480 480
   #define X2_SENSE_RESISTOR 91 //in mOhms
481 481
   #define X2_MICROSTEPS 16     //number of microsteps
482
-  
483
-//#define Y_IS_TMC
482
+
483
+  //#define Y_IS_TMC
484 484
   #define Y_MAX_CURRENT 1000  //in mA
485 485
   #define Y_SENSE_RESISTOR 91 //in mOhms
486 486
   #define Y_MICROSTEPS 16     //number of microsteps
487
-  
488
-//#define Y2_IS_TMC
487
+
488
+  //#define Y2_IS_TMC
489 489
   #define Y2_MAX_CURRENT 1000  //in mA
490 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 494
   #define Z_MAX_CURRENT 1000  //in mA
495 495
   #define Z_SENSE_RESISTOR 91 //in mOhms
496 496
   #define Z_MICROSTEPS 16     //number of microsteps
497
-  
498
-//#define Z2_IS_TMC
497
+
498
+  //#define Z2_IS_TMC
499 499
   #define Z2_MAX_CURRENT 1000  //in mA
500 500
   #define Z2_SENSE_RESISTOR 91 //in mOhms
501 501
   #define Z2_MICROSTEPS 16     //number of microsteps
502
-  
503
-//#define E0_IS_TMC
502
+
503
+  //#define E0_IS_TMC
504 504
   #define E0_MAX_CURRENT 1000  //in mA
505 505
   #define E0_SENSE_RESISTOR 91 //in mOhms
506 506
   #define E0_MICROSTEPS 16     //number of microsteps
507
-  
508
-//#define E1_IS_TMC
507
+
508
+  //#define E1_IS_TMC
509 509
   #define E1_MAX_CURRENT 1000  //in mA
510 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 514
   #define E2_MAX_CURRENT 1000  //in mA
515 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 519
   #define E3_MAX_CURRENT 1000  //in mA
520 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 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 527
  * you need to import the L6470 library into the arduino IDE for this
528 528
  ******************************************************************************/
529 529
 
@@ -532,69 +532,66 @@ const unsigned int dropsegments=5; //everything with less than this number of st
532 532
 //#define HAVE_L6470DRIVER
533 533
 #if ENABLED(HAVE_L6470DRIVER)
534 534
 
535
-//#define X_IS_L6470
535
+  //#define X_IS_L6470
536 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 538
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
539 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 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 544
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
545 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 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 550
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
551 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 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 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 562
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
563 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 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 568
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
569 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 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 574
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
575 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 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 580
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
582 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 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 586
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
589 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 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 592
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
596 593
   #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
597
-  
594
+
598 595
 #endif
599 596
 
600 597
 #include "Conditionals.h"

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

@@ -356,10 +356,10 @@
356 356
 //#define USE_WATCHDOG
357 357
 
358 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 363
 #endif
364 364
 
365 365
 // @section lcd
@@ -397,7 +397,7 @@
397 397
 #define MM_PER_ARC_SEGMENT 1
398 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 402
 // @section temperature
403 403
 
@@ -475,52 +475,52 @@ const unsigned int dropsegments=5; //everything with less than this number of st
475 475
 //#define HAVE_TMCDRIVER
476 476
 #if ENABLED(HAVE_TMCDRIVER)
477 477
 
478
-//#define X_IS_TMC
478
+  //#define X_IS_TMC
479 479
   #define X_MAX_CURRENT 1000  //in mA
480 480
   #define X_SENSE_RESISTOR 91 //in mOhms
481 481
   #define X_MICROSTEPS 16     //number of microsteps
482 482
 
483
-//#define X2_IS_TMC
483
+  //#define X2_IS_TMC
484 484
   #define X2_MAX_CURRENT 1000  //in mA
485 485
   #define X2_SENSE_RESISTOR 91 //in mOhms
486 486
   #define X2_MICROSTEPS 16     //number of microsteps
487 487
 
488
-//#define Y_IS_TMC
488
+  //#define Y_IS_TMC
489 489
   #define Y_MAX_CURRENT 1000  //in mA
490 490
   #define Y_SENSE_RESISTOR 91 //in mOhms
491 491
   #define Y_MICROSTEPS 16     //number of microsteps
492 492
 
493
-//#define Y2_IS_TMC
493
+  //#define Y2_IS_TMC
494 494
   #define Y2_MAX_CURRENT 1000  //in mA
495 495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
496 496
   #define Y2_MICROSTEPS 16     //number of microsteps
497 497
 
498
-//#define Z_IS_TMC
498
+  //#define Z_IS_TMC
499 499
   #define Z_MAX_CURRENT 1000  //in mA
500 500
   #define Z_SENSE_RESISTOR 91 //in mOhms
501 501
   #define Z_MICROSTEPS 16     //number of microsteps
502 502
 
503
-//#define Z2_IS_TMC
503
+  //#define Z2_IS_TMC
504 504
   #define Z2_MAX_CURRENT 1000  //in mA
505 505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
506 506
   #define Z2_MICROSTEPS 16     //number of microsteps
507 507
 
508
-//#define E0_IS_TMC
508
+  //#define E0_IS_TMC
509 509
   #define E0_MAX_CURRENT 1000  //in mA
510 510
   #define E0_SENSE_RESISTOR 91 //in mOhms
511 511
   #define E0_MICROSTEPS 16     //number of microsteps
512 512
 
513
-//#define E1_IS_TMC
513
+  //#define E1_IS_TMC
514 514
   #define E1_MAX_CURRENT 1000  //in mA
515 515
   #define E1_SENSE_RESISTOR 91 //in mOhms
516 516
   #define E1_MICROSTEPS 16     //number of microsteps
517 517
 
518
-//#define E2_IS_TMC
518
+  //#define E2_IS_TMC
519 519
   #define E2_MAX_CURRENT 1000  //in mA
520 520
   #define E2_SENSE_RESISTOR 91 //in mOhms
521 521
   #define E2_MICROSTEPS 16     //number of microsteps
522 522
 
523
-//#define E3_IS_TMC
523
+  //#define E3_IS_TMC
524 524
   #define E3_MAX_CURRENT 1000  //in mA
525 525
   #define E3_SENSE_RESISTOR 91 //in mOhms
526 526
   #define E3_MICROSTEPS 16     //number of microsteps
@@ -537,61 +537,61 @@ const unsigned int dropsegments=5; //everything with less than this number of st
537 537
 //#define HAVE_L6470DRIVER
538 538
 #if ENABLED(HAVE_L6470DRIVER)
539 539
 
540
-//#define X_IS_L6470
540
+  //#define X_IS_L6470
541 541
   #define X_MICROSTEPS 16     //number of microsteps
542 542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543 543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544 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 547
   #define X2_MICROSTEPS 16     //number of microsteps
548 548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549 549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550 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 553
   #define Y_MICROSTEPS 16     //number of microsteps
554 554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555 555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556 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 559
   #define Y2_MICROSTEPS 16     //number of microsteps
560 560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561 561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562 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 565
   #define Z_MICROSTEPS 16     //number of microsteps
566 566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567 567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568 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 571
   #define Z2_MICROSTEPS 16     //number of microsteps
572 572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573 573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574 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 577
   #define E0_MICROSTEPS 16     //number of microsteps
578 578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579 579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580 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 583
   #define E1_MICROSTEPS 16     //number of microsteps
584 584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585 585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586 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 589
   #define E2_MICROSTEPS 16     //number of microsteps
590 590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591 591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592 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 595
   #define E3_MICROSTEPS 16     //number of microsteps
596 596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
597 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,10 +356,10 @@
356 356
 //#define USE_WATCHDOG
357 357
 
358 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 363
 #endif
364 364
 
365 365
 // @section lcd
@@ -397,7 +397,7 @@
397 397
 #define MM_PER_ARC_SEGMENT 1
398 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 402
 // @section temperature
403 403
 
@@ -475,52 +475,52 @@ const unsigned int dropsegments=5; //everything with less than this number of st
475 475
 //#define HAVE_TMCDRIVER
476 476
 #if ENABLED(HAVE_TMCDRIVER)
477 477
 
478
-//#define X_IS_TMC
478
+  //#define X_IS_TMC
479 479
   #define X_MAX_CURRENT 1000  //in mA
480 480
   #define X_SENSE_RESISTOR 91 //in mOhms
481 481
   #define X_MICROSTEPS 16     //number of microsteps
482 482
 
483
-//#define X2_IS_TMC
483
+  //#define X2_IS_TMC
484 484
   #define X2_MAX_CURRENT 1000  //in mA
485 485
   #define X2_SENSE_RESISTOR 91 //in mOhms
486 486
   #define X2_MICROSTEPS 16     //number of microsteps
487 487
 
488
-//#define Y_IS_TMC
488
+  //#define Y_IS_TMC
489 489
   #define Y_MAX_CURRENT 1000  //in mA
490 490
   #define Y_SENSE_RESISTOR 91 //in mOhms
491 491
   #define Y_MICROSTEPS 16     //number of microsteps
492 492
 
493
-//#define Y2_IS_TMC
493
+  //#define Y2_IS_TMC
494 494
   #define Y2_MAX_CURRENT 1000  //in mA
495 495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
496 496
   #define Y2_MICROSTEPS 16     //number of microsteps
497 497
 
498
-//#define Z_IS_TMC
498
+  //#define Z_IS_TMC
499 499
   #define Z_MAX_CURRENT 1000  //in mA
500 500
   #define Z_SENSE_RESISTOR 91 //in mOhms
501 501
   #define Z_MICROSTEPS 16     //number of microsteps
502 502
 
503
-//#define Z2_IS_TMC
503
+  //#define Z2_IS_TMC
504 504
   #define Z2_MAX_CURRENT 1000  //in mA
505 505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
506 506
   #define Z2_MICROSTEPS 16     //number of microsteps
507 507
 
508
-//#define E0_IS_TMC
508
+  //#define E0_IS_TMC
509 509
   #define E0_MAX_CURRENT 1000  //in mA
510 510
   #define E0_SENSE_RESISTOR 91 //in mOhms
511 511
   #define E0_MICROSTEPS 16     //number of microsteps
512 512
 
513
-//#define E1_IS_TMC
513
+  //#define E1_IS_TMC
514 514
   #define E1_MAX_CURRENT 1000  //in mA
515 515
   #define E1_SENSE_RESISTOR 91 //in mOhms
516 516
   #define E1_MICROSTEPS 16     //number of microsteps
517 517
 
518
-//#define E2_IS_TMC
518
+  //#define E2_IS_TMC
519 519
   #define E2_MAX_CURRENT 1000  //in mA
520 520
   #define E2_SENSE_RESISTOR 91 //in mOhms
521 521
   #define E2_MICROSTEPS 16     //number of microsteps
522 522
 
523
-//#define E3_IS_TMC
523
+  //#define E3_IS_TMC
524 524
   #define E3_MAX_CURRENT 1000  //in mA
525 525
   #define E3_SENSE_RESISTOR 91 //in mOhms
526 526
   #define E3_MICROSTEPS 16     //number of microsteps
@@ -537,61 +537,61 @@ const unsigned int dropsegments=5; //everything with less than this number of st
537 537
 //#define HAVE_L6470DRIVER
538 538
 #if ENABLED(HAVE_L6470DRIVER)
539 539
 
540
-//#define X_IS_L6470
540
+  //#define X_IS_L6470
541 541
   #define X_MICROSTEPS 16     //number of microsteps
542 542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543 543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544 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 547
   #define X2_MICROSTEPS 16     //number of microsteps
548 548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549 549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550 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 553
   #define Y_MICROSTEPS 16     //number of microsteps
554 554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555 555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556 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 559
   #define Y2_MICROSTEPS 16     //number of microsteps
560 560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561 561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562 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 565
   #define Z_MICROSTEPS 16     //number of microsteps
566 566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567 567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568 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 571
   #define Z2_MICROSTEPS 16     //number of microsteps
572 572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573 573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574 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 577
   #define E0_MICROSTEPS 16     //number of microsteps
578 578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579 579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580 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 583
   #define E1_MICROSTEPS 16     //number of microsteps
584 584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585 585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586 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 589
   #define E2_MICROSTEPS 16     //number of microsteps
590 590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591 591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592 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 595
   #define E3_MICROSTEPS 16     //number of microsteps
596 596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
597 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,10 +356,10 @@
356 356
 //#define USE_WATCHDOG
357 357
 
358 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 363
 #endif
364 364
 
365 365
 // @section lcd
@@ -397,7 +397,7 @@
397 397
 #define MM_PER_ARC_SEGMENT 1
398 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 402
 // @section temperature
403 403
 
@@ -475,52 +475,52 @@ const unsigned int dropsegments=5; //everything with less than this number of st
475 475
 //#define HAVE_TMCDRIVER
476 476
 #if ENABLED(HAVE_TMCDRIVER)
477 477
 
478
-//#define X_IS_TMC
478
+  //#define X_IS_TMC
479 479
   #define X_MAX_CURRENT 1000  //in mA
480 480
   #define X_SENSE_RESISTOR 91 //in mOhms
481 481
   #define X_MICROSTEPS 16     //number of microsteps
482 482
 
483
-//#define X2_IS_TMC
483
+  //#define X2_IS_TMC
484 484
   #define X2_MAX_CURRENT 1000  //in mA
485 485
   #define X2_SENSE_RESISTOR 91 //in mOhms
486 486
   #define X2_MICROSTEPS 16     //number of microsteps
487 487
 
488
-//#define Y_IS_TMC
488
+  //#define Y_IS_TMC
489 489
   #define Y_MAX_CURRENT 1000  //in mA
490 490
   #define Y_SENSE_RESISTOR 91 //in mOhms
491 491
   #define Y_MICROSTEPS 16     //number of microsteps
492 492
 
493
-//#define Y2_IS_TMC
493
+  //#define Y2_IS_TMC
494 494
   #define Y2_MAX_CURRENT 1000  //in mA
495 495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
496 496
   #define Y2_MICROSTEPS 16     //number of microsteps
497 497
 
498
-//#define Z_IS_TMC
498
+  //#define Z_IS_TMC
499 499
   #define Z_MAX_CURRENT 1000  //in mA
500 500
   #define Z_SENSE_RESISTOR 91 //in mOhms
501 501
   #define Z_MICROSTEPS 16     //number of microsteps
502 502
 
503
-//#define Z2_IS_TMC
503
+  //#define Z2_IS_TMC
504 504
   #define Z2_MAX_CURRENT 1000  //in mA
505 505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
506 506
   #define Z2_MICROSTEPS 16     //number of microsteps
507 507
 
508
-//#define E0_IS_TMC
508
+  //#define E0_IS_TMC
509 509
   #define E0_MAX_CURRENT 1000  //in mA
510 510
   #define E0_SENSE_RESISTOR 91 //in mOhms
511 511
   #define E0_MICROSTEPS 16     //number of microsteps
512 512
 
513
-//#define E1_IS_TMC
513
+  //#define E1_IS_TMC
514 514
   #define E1_MAX_CURRENT 1000  //in mA
515 515
   #define E1_SENSE_RESISTOR 91 //in mOhms
516 516
   #define E1_MICROSTEPS 16     //number of microsteps
517 517
 
518
-//#define E2_IS_TMC
518
+  //#define E2_IS_TMC
519 519
   #define E2_MAX_CURRENT 1000  //in mA
520 520
   #define E2_SENSE_RESISTOR 91 //in mOhms
521 521
   #define E2_MICROSTEPS 16     //number of microsteps
522 522
 
523
-//#define E3_IS_TMC
523
+  //#define E3_IS_TMC
524 524
   #define E3_MAX_CURRENT 1000  //in mA
525 525
   #define E3_SENSE_RESISTOR 91 //in mOhms
526 526
   #define E3_MICROSTEPS 16     //number of microsteps
@@ -537,61 +537,61 @@ const unsigned int dropsegments=5; //everything with less than this number of st
537 537
 //#define HAVE_L6470DRIVER
538 538
 #if ENABLED(HAVE_L6470DRIVER)
539 539
 
540
-//#define X_IS_L6470
540
+  //#define X_IS_L6470
541 541
   #define X_MICROSTEPS 16     //number of microsteps
542 542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543 543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544 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 547
   #define X2_MICROSTEPS 16     //number of microsteps
548 548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549 549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550 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 553
   #define Y_MICROSTEPS 16     //number of microsteps
554 554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555 555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556 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 559
   #define Y2_MICROSTEPS 16     //number of microsteps
560 560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561 561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562 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 565
   #define Z_MICROSTEPS 16     //number of microsteps
566 566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567 567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568 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 571
   #define Z2_MICROSTEPS 16     //number of microsteps
572 572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573 573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574 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 577
   #define E0_MICROSTEPS 16     //number of microsteps
578 578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579 579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580 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 583
   #define E1_MICROSTEPS 16     //number of microsteps
584 584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585 585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586 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 589
   #define E2_MICROSTEPS 16     //number of microsteps
590 590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591 591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592 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 595
   #define E3_MICROSTEPS 16     //number of microsteps
596 596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
597 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,10 +348,10 @@
348 348
 //#define USE_WATCHDOG
349 349
 
350 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 355
 #endif
356 356
 
357 357
 // @section lcd
@@ -389,7 +389,7 @@
389 389
 #define MM_PER_ARC_SEGMENT 1
390 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 394
 // @section temperature
395 395
 
@@ -470,52 +470,52 @@ const unsigned int dropsegments=5; //everything with less than this number of st
470 470
 //#define HAVE_TMCDRIVER
471 471
 #if ENABLED(HAVE_TMCDRIVER)
472 472
 
473
-//#define X_IS_TMC
473
+  //#define X_IS_TMC
474 474
   #define X_MAX_CURRENT 1000  //in mA
475 475
   #define X_SENSE_RESISTOR 91 //in mOhms
476 476
   #define X_MICROSTEPS 16     //number of microsteps
477 477
 
478
-//#define X2_IS_TMC
478
+  //#define X2_IS_TMC
479 479
   #define X2_MAX_CURRENT 1000  //in mA
480 480
   #define X2_SENSE_RESISTOR 91 //in mOhms
481 481
   #define X2_MICROSTEPS 16     //number of microsteps
482 482
 
483
-//#define Y_IS_TMC
483
+  //#define Y_IS_TMC
484 484
   #define Y_MAX_CURRENT 1000  //in mA
485 485
   #define Y_SENSE_RESISTOR 91 //in mOhms
486 486
   #define Y_MICROSTEPS 16     //number of microsteps
487 487
 
488
-//#define Y2_IS_TMC
488
+  //#define Y2_IS_TMC
489 489
   #define Y2_MAX_CURRENT 1000  //in mA
490 490
   #define Y2_SENSE_RESISTOR 91 //in mOhms
491 491
   #define Y2_MICROSTEPS 16     //number of microsteps
492 492
 
493
-//#define Z_IS_TMC
493
+  //#define Z_IS_TMC
494 494
   #define Z_MAX_CURRENT 1000  //in mA
495 495
   #define Z_SENSE_RESISTOR 91 //in mOhms
496 496
   #define Z_MICROSTEPS 16     //number of microsteps
497 497
 
498
-//#define Z2_IS_TMC
498
+  //#define Z2_IS_TMC
499 499
   #define Z2_MAX_CURRENT 1000  //in mA
500 500
   #define Z2_SENSE_RESISTOR 91 //in mOhms
501 501
   #define Z2_MICROSTEPS 16     //number of microsteps
502 502
 
503
-//#define E0_IS_TMC
503
+  //#define E0_IS_TMC
504 504
   #define E0_MAX_CURRENT 1000  //in mA
505 505
   #define E0_SENSE_RESISTOR 91 //in mOhms
506 506
   #define E0_MICROSTEPS 16     //number of microsteps
507 507
 
508
-//#define E1_IS_TMC
508
+  //#define E1_IS_TMC
509 509
   #define E1_MAX_CURRENT 1000  //in mA
510 510
   #define E1_SENSE_RESISTOR 91 //in mOhms
511 511
   #define E1_MICROSTEPS 16     //number of microsteps
512 512
 
513
-//#define E2_IS_TMC
513
+  //#define E2_IS_TMC
514 514
   #define E2_MAX_CURRENT 1000  //in mA
515 515
   #define E2_SENSE_RESISTOR 91 //in mOhms
516 516
   #define E2_MICROSTEPS 16     //number of microsteps
517 517
 
518
-//#define E3_IS_TMC
518
+  //#define E3_IS_TMC
519 519
   #define E3_MAX_CURRENT 1000  //in mA
520 520
   #define E3_SENSE_RESISTOR 91 //in mOhms
521 521
   #define E3_MICROSTEPS 16     //number of microsteps
@@ -532,61 +532,61 @@ const unsigned int dropsegments=5; //everything with less than this number of st
532 532
 //#define HAVE_L6470DRIVER
533 533
 #if ENABLED(HAVE_L6470DRIVER)
534 534
 
535
-//#define X_IS_L6470
535
+  //#define X_IS_L6470
536 536
   #define X_MICROSTEPS 16     //number of microsteps
537 537
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
538 538
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
539 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 542
   #define X2_MICROSTEPS 16     //number of microsteps
543 543
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
544 544
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
545 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 548
   #define Y_MICROSTEPS 16     //number of microsteps
549 549
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
550 550
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
551 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 554
   #define Y2_MICROSTEPS 16     //number of microsteps
555 555
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
556 556
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
557 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 560
   #define Z_MICROSTEPS 16     //number of microsteps
561 561
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
562 562
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
563 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 566
   #define Z2_MICROSTEPS 16     //number of microsteps
567 567
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
568 568
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
569 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 572
   #define E0_MICROSTEPS 16     //number of microsteps
573 573
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
574 574
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
575 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 578
   #define E1_MICROSTEPS 16     //number of microsteps
579 579
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
580 580
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
581 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 584
   #define E2_MICROSTEPS 16     //number of microsteps
585 585
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
586 586
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
587 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 590
   #define E3_MICROSTEPS 16     //number of microsteps
591 591
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
592 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,10 +356,10 @@
356 356
 //#define USE_WATCHDOG
357 357
 
358 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 363
 #endif
364 364
 
365 365
 // @section lcd
@@ -397,7 +397,7 @@
397 397
 #define MM_PER_ARC_SEGMENT 1
398 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 402
 // @section temperature
403 403
 
@@ -475,52 +475,52 @@ const unsigned int dropsegments=5; //everything with less than this number of st
475 475
 //#define HAVE_TMCDRIVER
476 476
 #if ENABLED(HAVE_TMCDRIVER)
477 477
 
478
-//#define X_IS_TMC
478
+  //#define X_IS_TMC
479 479
   #define X_MAX_CURRENT 1000  //in mA
480 480
   #define X_SENSE_RESISTOR 91 //in mOhms
481 481
   #define X_MICROSTEPS 16     //number of microsteps
482 482
 
483
-//#define X2_IS_TMC
483
+  //#define X2_IS_TMC
484 484
   #define X2_MAX_CURRENT 1000  //in mA
485 485
   #define X2_SENSE_RESISTOR 91 //in mOhms
486 486
   #define X2_MICROSTEPS 16     //number of microsteps
487 487
 
488
-//#define Y_IS_TMC
488
+  //#define Y_IS_TMC
489 489
   #define Y_MAX_CURRENT 1000  //in mA
490 490
   #define Y_SENSE_RESISTOR 91 //in mOhms
491 491
   #define Y_MICROSTEPS 16     //number of microsteps
492 492
 
493
-//#define Y2_IS_TMC
493
+  //#define Y2_IS_TMC
494 494
   #define Y2_MAX_CURRENT 1000  //in mA
495 495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
496 496
   #define Y2_MICROSTEPS 16     //number of microsteps
497 497
 
498
-//#define Z_IS_TMC
498
+  //#define Z_IS_TMC
499 499
   #define Z_MAX_CURRENT 1000  //in mA
500 500
   #define Z_SENSE_RESISTOR 91 //in mOhms
501 501
   #define Z_MICROSTEPS 16     //number of microsteps
502 502
 
503
-//#define Z2_IS_TMC
503
+  //#define Z2_IS_TMC
504 504
   #define Z2_MAX_CURRENT 1000  //in mA
505 505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
506 506
   #define Z2_MICROSTEPS 16     //number of microsteps
507 507
 
508
-//#define E0_IS_TMC
508
+  //#define E0_IS_TMC
509 509
   #define E0_MAX_CURRENT 1000  //in mA
510 510
   #define E0_SENSE_RESISTOR 91 //in mOhms
511 511
   #define E0_MICROSTEPS 16     //number of microsteps
512 512
 
513
-//#define E1_IS_TMC
513
+  //#define E1_IS_TMC
514 514
   #define E1_MAX_CURRENT 1000  //in mA
515 515
   #define E1_SENSE_RESISTOR 91 //in mOhms
516 516
   #define E1_MICROSTEPS 16     //number of microsteps
517 517
 
518
-//#define E2_IS_TMC
518
+  //#define E2_IS_TMC
519 519
   #define E2_MAX_CURRENT 1000  //in mA
520 520
   #define E2_SENSE_RESISTOR 91 //in mOhms
521 521
   #define E2_MICROSTEPS 16     //number of microsteps
522 522
 
523
-//#define E3_IS_TMC
523
+  //#define E3_IS_TMC
524 524
   #define E3_MAX_CURRENT 1000  //in mA
525 525
   #define E3_SENSE_RESISTOR 91 //in mOhms
526 526
   #define E3_MICROSTEPS 16     //number of microsteps
@@ -537,61 +537,61 @@ const unsigned int dropsegments=5; //everything with less than this number of st
537 537
 //#define HAVE_L6470DRIVER
538 538
 #if ENABLED(HAVE_L6470DRIVER)
539 539
 
540
-//#define X_IS_L6470
540
+  //#define X_IS_L6470
541 541
   #define X_MICROSTEPS 16     //number of microsteps
542 542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543 543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544 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 547
   #define X2_MICROSTEPS 16     //number of microsteps
548 548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549 549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550 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 553
   #define Y_MICROSTEPS 16     //number of microsteps
554 554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555 555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556 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 559
   #define Y2_MICROSTEPS 16     //number of microsteps
560 560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561 561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562 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 565
   #define Z_MICROSTEPS 16     //number of microsteps
566 566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567 567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568 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 571
   #define Z2_MICROSTEPS 16     //number of microsteps
572 572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573 573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574 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 577
   #define E0_MICROSTEPS 16     //number of microsteps
578 578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579 579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580 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 583
   #define E1_MICROSTEPS 16     //number of microsteps
584 584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585 585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586 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 589
   #define E2_MICROSTEPS 16     //number of microsteps
590 590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591 591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592 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 595
   #define E3_MICROSTEPS 16     //number of microsteps
596 596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
597 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,10 +355,10 @@
355 355
 //#define USE_WATCHDOG
356 356
 
357 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 362
 #endif
363 363
 
364 364
 // @section lcd
@@ -397,7 +397,7 @@
397 397
 #define MM_PER_ARC_SEGMENT 1
398 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 402
 // @section temperature
403 403
 
@@ -478,52 +478,52 @@ const unsigned int dropsegments=5; //everything with less than this number of st
478 478
 //#define HAVE_TMCDRIVER
479 479
 #if ENABLED(HAVE_TMCDRIVER)
480 480
 
481
-//#define X_IS_TMC
481
+  //#define X_IS_TMC
482 482
   #define X_MAX_CURRENT 1000  //in mA
483 483
   #define X_SENSE_RESISTOR 91 //in mOhms
484 484
   #define X_MICROSTEPS 16     //number of microsteps
485 485
 
486
-//#define X2_IS_TMC
486
+  //#define X2_IS_TMC
487 487
   #define X2_MAX_CURRENT 1000  //in mA
488 488
   #define X2_SENSE_RESISTOR 91 //in mOhms
489 489
   #define X2_MICROSTEPS 16     //number of microsteps
490 490
 
491
-//#define Y_IS_TMC
491
+  //#define Y_IS_TMC
492 492
   #define Y_MAX_CURRENT 1000  //in mA
493 493
   #define Y_SENSE_RESISTOR 91 //in mOhms
494 494
   #define Y_MICROSTEPS 16     //number of microsteps
495 495
 
496
-//#define Y2_IS_TMC
496
+  //#define Y2_IS_TMC
497 497
   #define Y2_MAX_CURRENT 1000  //in mA
498 498
   #define Y2_SENSE_RESISTOR 91 //in mOhms
499 499
   #define Y2_MICROSTEPS 16     //number of microsteps
500 500
 
501
-//#define Z_IS_TMC
501
+  //#define Z_IS_TMC
502 502
   #define Z_MAX_CURRENT 1000  //in mA
503 503
   #define Z_SENSE_RESISTOR 91 //in mOhms
504 504
   #define Z_MICROSTEPS 16     //number of microsteps
505 505
 
506
-//#define Z2_IS_TMC
506
+  //#define Z2_IS_TMC
507 507
   #define Z2_MAX_CURRENT 1000  //in mA
508 508
   #define Z2_SENSE_RESISTOR 91 //in mOhms
509 509
   #define Z2_MICROSTEPS 16     //number of microsteps
510 510
 
511
-//#define E0_IS_TMC
511
+  //#define E0_IS_TMC
512 512
   #define E0_MAX_CURRENT 1000  //in mA
513 513
   #define E0_SENSE_RESISTOR 91 //in mOhms
514 514
   #define E0_MICROSTEPS 16     //number of microsteps
515 515
 
516
-//#define E1_IS_TMC
516
+  //#define E1_IS_TMC
517 517
   #define E1_MAX_CURRENT 1000  //in mA
518 518
   #define E1_SENSE_RESISTOR 91 //in mOhms
519 519
   #define E1_MICROSTEPS 16     //number of microsteps
520 520
 
521
-//#define E2_IS_TMC
521
+  //#define E2_IS_TMC
522 522
   #define E2_MAX_CURRENT 1000  //in mA
523 523
   #define E2_SENSE_RESISTOR 91 //in mOhms
524 524
   #define E2_MICROSTEPS 16     //number of microsteps
525 525
 
526
-//#define E3_IS_TMC
526
+  //#define E3_IS_TMC
527 527
   #define E3_MAX_CURRENT 1000  //in mA
528 528
   #define E3_SENSE_RESISTOR 91 //in mOhms
529 529
   #define E3_MICROSTEPS 16     //number of microsteps
@@ -540,61 +540,61 @@ const unsigned int dropsegments=5; //everything with less than this number of st
540 540
 //#define HAVE_L6470DRIVER
541 541
 #if ENABLED(HAVE_L6470DRIVER)
542 542
 
543
-//#define X_IS_L6470
543
+  //#define X_IS_L6470
544 544
   #define X_MICROSTEPS 16     //number of microsteps
545 545
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
546 546
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
547 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 550
   #define X2_MICROSTEPS 16     //number of microsteps
551 551
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
552 552
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
553 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 556
   #define Y_MICROSTEPS 16     //number of microsteps
557 557
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
558 558
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
559 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 562
   #define Y2_MICROSTEPS 16     //number of microsteps
563 563
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
564 564
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
565 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 568
   #define Z_MICROSTEPS 16     //number of microsteps
569 569
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
570 570
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
571 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 574
   #define Z2_MICROSTEPS 16     //number of microsteps
575 575
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
576 576
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
577 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 580
   #define E0_MICROSTEPS 16     //number of microsteps
581 581
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
582 582
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
583 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 586
   #define E1_MICROSTEPS 16     //number of microsteps
587 587
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
588 588
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
589 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 592
   #define E2_MICROSTEPS 16     //number of microsteps
593 593
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
594 594
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
595 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 598
   #define E3_MICROSTEPS 16     //number of microsteps
599 599
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
600 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,10 +356,10 @@
356 356
 //#define USE_WATCHDOG
357 357
 
358 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 363
 #endif
364 364
 
365 365
 // @section lcd
@@ -397,7 +397,7 @@
397 397
 #define MM_PER_ARC_SEGMENT 1
398 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 402
 // @section temperature
403 403
 
@@ -475,52 +475,52 @@ const unsigned int dropsegments=5; //everything with less than this number of st
475 475
 //#define HAVE_TMCDRIVER
476 476
 #if ENABLED(HAVE_TMCDRIVER)
477 477
 
478
-//#define X_IS_TMC
478
+  //#define X_IS_TMC
479 479
   #define X_MAX_CURRENT 1000  //in mA
480 480
   #define X_SENSE_RESISTOR 91 //in mOhms
481 481
   #define X_MICROSTEPS 16     //number of microsteps
482 482
 
483
-//#define X2_IS_TMC
483
+  //#define X2_IS_TMC
484 484
   #define X2_MAX_CURRENT 1000  //in mA
485 485
   #define X2_SENSE_RESISTOR 91 //in mOhms
486 486
   #define X2_MICROSTEPS 16     //number of microsteps
487 487
 
488
-//#define Y_IS_TMC
488
+  //#define Y_IS_TMC
489 489
   #define Y_MAX_CURRENT 1000  //in mA
490 490
   #define Y_SENSE_RESISTOR 91 //in mOhms
491 491
   #define Y_MICROSTEPS 16     //number of microsteps
492 492
 
493
-//#define Y2_IS_TMC
493
+  //#define Y2_IS_TMC
494 494
   #define Y2_MAX_CURRENT 1000  //in mA
495 495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
496 496
   #define Y2_MICROSTEPS 16     //number of microsteps
497 497
 
498
-//#define Z_IS_TMC
498
+  //#define Z_IS_TMC
499 499
   #define Z_MAX_CURRENT 1000  //in mA
500 500
   #define Z_SENSE_RESISTOR 91 //in mOhms
501 501
   #define Z_MICROSTEPS 16     //number of microsteps
502 502
 
503
-//#define Z2_IS_TMC
503
+  //#define Z2_IS_TMC
504 504
   #define Z2_MAX_CURRENT 1000  //in mA
505 505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
506 506
   #define Z2_MICROSTEPS 16     //number of microsteps
507 507
 
508
-//#define E0_IS_TMC
508
+  //#define E0_IS_TMC
509 509
   #define E0_MAX_CURRENT 1000  //in mA
510 510
   #define E0_SENSE_RESISTOR 91 //in mOhms
511 511
   #define E0_MICROSTEPS 16     //number of microsteps
512 512
 
513
-//#define E1_IS_TMC
513
+  //#define E1_IS_TMC
514 514
   #define E1_MAX_CURRENT 1000  //in mA
515 515
   #define E1_SENSE_RESISTOR 91 //in mOhms
516 516
   #define E1_MICROSTEPS 16     //number of microsteps
517 517
 
518
-//#define E2_IS_TMC
518
+  //#define E2_IS_TMC
519 519
   #define E2_MAX_CURRENT 1000  //in mA
520 520
   #define E2_SENSE_RESISTOR 91 //in mOhms
521 521
   #define E2_MICROSTEPS 16     //number of microsteps
522 522
 
523
-//#define E3_IS_TMC
523
+  //#define E3_IS_TMC
524 524
   #define E3_MAX_CURRENT 1000  //in mA
525 525
   #define E3_SENSE_RESISTOR 91 //in mOhms
526 526
   #define E3_MICROSTEPS 16     //number of microsteps
@@ -537,61 +537,61 @@ const unsigned int dropsegments=5; //everything with less than this number of st
537 537
 //#define HAVE_L6470DRIVER
538 538
 #if ENABLED(HAVE_L6470DRIVER)
539 539
 
540
-//#define X_IS_L6470
540
+  //#define X_IS_L6470
541 541
   #define X_MICROSTEPS 16     //number of microsteps
542 542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543 543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544 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 547
   #define X2_MICROSTEPS 16     //number of microsteps
548 548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549 549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550 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 553
   #define Y_MICROSTEPS 16     //number of microsteps
554 554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555 555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556 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 559
   #define Y2_MICROSTEPS 16     //number of microsteps
560 560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561 561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562 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 565
   #define Z_MICROSTEPS 16     //number of microsteps
566 566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567 567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568 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 571
   #define Z2_MICROSTEPS 16     //number of microsteps
572 572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573 573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574 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 577
   #define E0_MICROSTEPS 16     //number of microsteps
578 578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579 579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580 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 583
   #define E1_MICROSTEPS 16     //number of microsteps
584 584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585 585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586 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 589
   #define E2_MICROSTEPS 16     //number of microsteps
590 590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591 591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592 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 595
   #define E3_MICROSTEPS 16     //number of microsteps
596 596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
597 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,10 +357,10 @@
357 357
 //#define USE_WATCHDOG
358 358
 
359 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 364
 #endif
365 365
 
366 366
 // @section lcd
@@ -398,7 +398,7 @@
398 398
 #define MM_PER_ARC_SEGMENT 1
399 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 403
 // @section temperature
404 404
 
@@ -476,52 +476,52 @@ const unsigned int dropsegments=5; //everything with less than this number of st
476 476
 //#define HAVE_TMCDRIVER
477 477
 #if ENABLED(HAVE_TMCDRIVER)
478 478
 
479
-//#define X_IS_TMC
479
+  //#define X_IS_TMC
480 480
   #define X_MAX_CURRENT 1000  //in mA
481 481
   #define X_SENSE_RESISTOR 91 //in mOhms
482 482
   #define X_MICROSTEPS 16     //number of microsteps
483 483
 
484
-//#define X2_IS_TMC
484
+  //#define X2_IS_TMC
485 485
   #define X2_MAX_CURRENT 1000  //in mA
486 486
   #define X2_SENSE_RESISTOR 91 //in mOhms
487 487
   #define X2_MICROSTEPS 16     //number of microsteps
488 488
 
489
-//#define Y_IS_TMC
489
+  //#define Y_IS_TMC
490 490
   #define Y_MAX_CURRENT 1000  //in mA
491 491
   #define Y_SENSE_RESISTOR 91 //in mOhms
492 492
   #define Y_MICROSTEPS 16     //number of microsteps
493 493
 
494
-//#define Y2_IS_TMC
494
+  //#define Y2_IS_TMC
495 495
   #define Y2_MAX_CURRENT 1000  //in mA
496 496
   #define Y2_SENSE_RESISTOR 91 //in mOhms
497 497
   #define Y2_MICROSTEPS 16     //number of microsteps
498 498
 
499
-//#define Z_IS_TMC
499
+  //#define Z_IS_TMC
500 500
   #define Z_MAX_CURRENT 1000  //in mA
501 501
   #define Z_SENSE_RESISTOR 91 //in mOhms
502 502
   #define Z_MICROSTEPS 16     //number of microsteps
503 503
 
504
-//#define Z2_IS_TMC
504
+  //#define Z2_IS_TMC
505 505
   #define Z2_MAX_CURRENT 1000  //in mA
506 506
   #define Z2_SENSE_RESISTOR 91 //in mOhms
507 507
   #define Z2_MICROSTEPS 16     //number of microsteps
508 508
 
509
-//#define E0_IS_TMC
509
+  //#define E0_IS_TMC
510 510
   #define E0_MAX_CURRENT 1000  //in mA
511 511
   #define E0_SENSE_RESISTOR 91 //in mOhms
512 512
   #define E0_MICROSTEPS 16     //number of microsteps
513 513
 
514
-//#define E1_IS_TMC
514
+  //#define E1_IS_TMC
515 515
   #define E1_MAX_CURRENT 1000  //in mA
516 516
   #define E1_SENSE_RESISTOR 91 //in mOhms
517 517
   #define E1_MICROSTEPS 16     //number of microsteps
518 518
 
519
-//#define E2_IS_TMC
519
+  //#define E2_IS_TMC
520 520
   #define E2_MAX_CURRENT 1000  //in mA
521 521
   #define E2_SENSE_RESISTOR 91 //in mOhms
522 522
   #define E2_MICROSTEPS 16     //number of microsteps
523 523
 
524
-//#define E3_IS_TMC
524
+  //#define E3_IS_TMC
525 525
   #define E3_MAX_CURRENT 1000  //in mA
526 526
   #define E3_SENSE_RESISTOR 91 //in mOhms
527 527
   #define E3_MICROSTEPS 16     //number of microsteps
@@ -538,61 +538,61 @@ const unsigned int dropsegments=5; //everything with less than this number of st
538 538
 //#define HAVE_L6470DRIVER
539 539
 #if ENABLED(HAVE_L6470DRIVER)
540 540
 
541
-//#define X_IS_L6470
541
+  //#define X_IS_L6470
542 542
   #define X_MICROSTEPS 16     //number of microsteps
543 543
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
544 544
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
545 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 548
   #define X2_MICROSTEPS 16     //number of microsteps
549 549
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
550 550
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
551 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 554
   #define Y_MICROSTEPS 16     //number of microsteps
555 555
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
556 556
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
557 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 560
   #define Y2_MICROSTEPS 16     //number of microsteps
561 561
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
562 562
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
563 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 566
   #define Z_MICROSTEPS 16     //number of microsteps
567 567
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
568 568
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
569 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 572
   #define Z2_MICROSTEPS 16     //number of microsteps
573 573
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
574 574
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
575 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 578
   #define E0_MICROSTEPS 16     //number of microsteps
579 579
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
580 580
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
581 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 584
   #define E1_MICROSTEPS 16     //number of microsteps
585 585
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
586 586
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
587 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 590
   #define E2_MICROSTEPS 16     //number of microsteps
591 591
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
592 592
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
593 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 596
   #define E3_MICROSTEPS 16     //number of microsteps
597 597
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
598 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,10 +358,10 @@
358 358
 //#define USE_WATCHDOG
359 359
 
360 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 365
 #endif
366 366
 
367 367
 // @section lcd
@@ -399,7 +399,7 @@
399 399
 #define MM_PER_ARC_SEGMENT 1
400 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 404
 // @section temperature
405 405
 
@@ -477,52 +477,52 @@ const unsigned int dropsegments=5; //everything with less than this number of st
477 477
 //#define HAVE_TMCDRIVER
478 478
 #if ENABLED(HAVE_TMCDRIVER)
479 479
 
480
-//#define X_IS_TMC
480
+  //#define X_IS_TMC
481 481
   #define X_MAX_CURRENT 1000  //in mA
482 482
   #define X_SENSE_RESISTOR 91 //in mOhms
483 483
   #define X_MICROSTEPS 16     //number of microsteps
484 484
 
485
-//#define X2_IS_TMC
485
+  //#define X2_IS_TMC
486 486
   #define X2_MAX_CURRENT 1000  //in mA
487 487
   #define X2_SENSE_RESISTOR 91 //in mOhms
488 488
   #define X2_MICROSTEPS 16     //number of microsteps
489 489
 
490
-//#define Y_IS_TMC
490
+  //#define Y_IS_TMC
491 491
   #define Y_MAX_CURRENT 1000  //in mA
492 492
   #define Y_SENSE_RESISTOR 91 //in mOhms
493 493
   #define Y_MICROSTEPS 16     //number of microsteps
494 494
 
495
-//#define Y2_IS_TMC
495
+  //#define Y2_IS_TMC
496 496
   #define Y2_MAX_CURRENT 1000  //in mA
497 497
   #define Y2_SENSE_RESISTOR 91 //in mOhms
498 498
   #define Y2_MICROSTEPS 16     //number of microsteps
499 499
 
500
-//#define Z_IS_TMC
500
+  //#define Z_IS_TMC
501 501
   #define Z_MAX_CURRENT 1000  //in mA
502 502
   #define Z_SENSE_RESISTOR 91 //in mOhms
503 503
   #define Z_MICROSTEPS 16     //number of microsteps
504 504
 
505
-//#define Z2_IS_TMC
505
+  //#define Z2_IS_TMC
506 506
   #define Z2_MAX_CURRENT 1000  //in mA
507 507
   #define Z2_SENSE_RESISTOR 91 //in mOhms
508 508
   #define Z2_MICROSTEPS 16     //number of microsteps
509 509
 
510
-//#define E0_IS_TMC
510
+  //#define E0_IS_TMC
511 511
   #define E0_MAX_CURRENT 1000  //in mA
512 512
   #define E0_SENSE_RESISTOR 91 //in mOhms
513 513
   #define E0_MICROSTEPS 16     //number of microsteps
514 514
 
515
-//#define E1_IS_TMC
515
+  //#define E1_IS_TMC
516 516
   #define E1_MAX_CURRENT 1000  //in mA
517 517
   #define E1_SENSE_RESISTOR 91 //in mOhms
518 518
   #define E1_MICROSTEPS 16     //number of microsteps
519 519
 
520
-//#define E2_IS_TMC
520
+  //#define E2_IS_TMC
521 521
   #define E2_MAX_CURRENT 1000  //in mA
522 522
   #define E2_SENSE_RESISTOR 91 //in mOhms
523 523
   #define E2_MICROSTEPS 16     //number of microsteps
524 524
 
525
-//#define E3_IS_TMC
525
+  //#define E3_IS_TMC
526 526
   #define E3_MAX_CURRENT 1000  //in mA
527 527
   #define E3_SENSE_RESISTOR 91 //in mOhms
528 528
   #define E3_MICROSTEPS 16     //number of microsteps
@@ -539,61 +539,61 @@ const unsigned int dropsegments=5; //everything with less than this number of st
539 539
 //#define HAVE_L6470DRIVER
540 540
 #if ENABLED(HAVE_L6470DRIVER)
541 541
 
542
-//#define X_IS_L6470
542
+  //#define X_IS_L6470
543 543
   #define X_MICROSTEPS 16     //number of microsteps
544 544
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
545 545
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
546 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 549
   #define X2_MICROSTEPS 16     //number of microsteps
550 550
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
551 551
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
552 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 555
   #define Y_MICROSTEPS 16     //number of microsteps
556 556
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
557 557
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
558 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 561
   #define Y2_MICROSTEPS 16     //number of microsteps
562 562
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
563 563
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
564 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 567
   #define Z_MICROSTEPS 16     //number of microsteps
568 568
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
569 569
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
570 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 573
   #define Z2_MICROSTEPS 16     //number of microsteps
574 574
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
575 575
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
576 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 579
   #define E0_MICROSTEPS 16     //number of microsteps
580 580
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
581 581
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
582 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 585
   #define E1_MICROSTEPS 16     //number of microsteps
586 586
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
587 587
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
588 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 591
   #define E2_MICROSTEPS 16     //number of microsteps
592 592
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
593 593
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
594 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 597
   #define E3_MICROSTEPS 16     //number of microsteps
598 598
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
599 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,10 +357,10 @@
357 357
 //#define USE_WATCHDOG
358 358
 
359 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 364
 #endif
365 365
 
366 366
 // @section lcd
@@ -398,7 +398,7 @@
398 398
 #define MM_PER_ARC_SEGMENT 1
399 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 403
 // @section temperature
404 404
 
@@ -476,52 +476,52 @@ const unsigned int dropsegments=5; //everything with less than this number of st
476 476
 //#define HAVE_TMCDRIVER
477 477
 #if ENABLED(HAVE_TMCDRIVER)
478 478
 
479
-//#define X_IS_TMC
479
+  //#define X_IS_TMC
480 480
   #define X_MAX_CURRENT 1000  //in mA
481 481
   #define X_SENSE_RESISTOR 91 //in mOhms
482 482
   #define X_MICROSTEPS 16     //number of microsteps
483 483
 
484
-//#define X2_IS_TMC
484
+  //#define X2_IS_TMC
485 485
   #define X2_MAX_CURRENT 1000  //in mA
486 486
   #define X2_SENSE_RESISTOR 91 //in mOhms
487 487
   #define X2_MICROSTEPS 16     //number of microsteps
488 488
 
489
-//#define Y_IS_TMC
489
+  //#define Y_IS_TMC
490 490
   #define Y_MAX_CURRENT 1000  //in mA
491 491
   #define Y_SENSE_RESISTOR 91 //in mOhms
492 492
   #define Y_MICROSTEPS 16     //number of microsteps
493 493
 
494
-//#define Y2_IS_TMC
494
+  //#define Y2_IS_TMC
495 495
   #define Y2_MAX_CURRENT 1000  //in mA
496 496
   #define Y2_SENSE_RESISTOR 91 //in mOhms
497 497
   #define Y2_MICROSTEPS 16     //number of microsteps
498 498
 
499
-//#define Z_IS_TMC
499
+  //#define Z_IS_TMC
500 500
   #define Z_MAX_CURRENT 1000  //in mA
501 501
   #define Z_SENSE_RESISTOR 91 //in mOhms
502 502
   #define Z_MICROSTEPS 16     //number of microsteps
503 503
 
504
-//#define Z2_IS_TMC
504
+  //#define Z2_IS_TMC
505 505
   #define Z2_MAX_CURRENT 1000  //in mA
506 506
   #define Z2_SENSE_RESISTOR 91 //in mOhms
507 507
   #define Z2_MICROSTEPS 16     //number of microsteps
508 508
 
509
-//#define E0_IS_TMC
509
+  //#define E0_IS_TMC
510 510
   #define E0_MAX_CURRENT 1000  //in mA
511 511
   #define E0_SENSE_RESISTOR 91 //in mOhms
512 512
   #define E0_MICROSTEPS 16     //number of microsteps
513 513
 
514
-//#define E1_IS_TMC
514
+  //#define E1_IS_TMC
515 515
   #define E1_MAX_CURRENT 1000  //in mA
516 516
   #define E1_SENSE_RESISTOR 91 //in mOhms
517 517
   #define E1_MICROSTEPS 16     //number of microsteps
518 518
 
519
-//#define E2_IS_TMC
519
+  //#define E2_IS_TMC
520 520
   #define E2_MAX_CURRENT 1000  //in mA
521 521
   #define E2_SENSE_RESISTOR 91 //in mOhms
522 522
   #define E2_MICROSTEPS 16     //number of microsteps
523 523
 
524
-//#define E3_IS_TMC
524
+  //#define E3_IS_TMC
525 525
   #define E3_MAX_CURRENT 1000  //in mA
526 526
   #define E3_SENSE_RESISTOR 91 //in mOhms
527 527
   #define E3_MICROSTEPS 16     //number of microsteps
@@ -538,61 +538,61 @@ const unsigned int dropsegments=5; //everything with less than this number of st
538 538
 //#define HAVE_L6470DRIVER
539 539
 #if ENABLED(HAVE_L6470DRIVER)
540 540
 
541
-//#define X_IS_L6470
541
+  //#define X_IS_L6470
542 542
   #define X_MICROSTEPS 16     //number of microsteps
543 543
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
544 544
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
545 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 548
   #define X2_MICROSTEPS 16     //number of microsteps
549 549
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
550 550
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
551 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 554
   #define Y_MICROSTEPS 16     //number of microsteps
555 555
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
556 556
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
557 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 560
   #define Y2_MICROSTEPS 16     //number of microsteps
561 561
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
562 562
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
563 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 566
   #define Z_MICROSTEPS 16     //number of microsteps
567 567
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
568 568
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
569 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 572
   #define Z2_MICROSTEPS 16     //number of microsteps
573 573
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
574 574
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
575 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 578
   #define E0_MICROSTEPS 16     //number of microsteps
579 579
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
580 580
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
581 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 584
   #define E1_MICROSTEPS 16     //number of microsteps
585 585
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
586 586
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
587 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 590
   #define E2_MICROSTEPS 16     //number of microsteps
591 591
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
592 592
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
593 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 596
   #define E3_MICROSTEPS 16     //number of microsteps
597 597
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
598 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,10 +361,10 @@
361 361
 //#define USE_WATCHDOG
362 362
 
363 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 368
 #endif
369 369
 
370 370
 // @section lcd
@@ -402,7 +402,7 @@
402 402
 #define MM_PER_ARC_SEGMENT 1
403 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 407
 // @section temperature
408 408
 
@@ -480,52 +480,52 @@ const unsigned int dropsegments=5; //everything with less than this number of st
480 480
 //#define HAVE_TMCDRIVER
481 481
 #if ENABLED(HAVE_TMCDRIVER)
482 482
 
483
-//#define X_IS_TMC
483
+  //#define X_IS_TMC
484 484
   #define X_MAX_CURRENT 1000  //in mA
485 485
   #define X_SENSE_RESISTOR 91 //in mOhms
486 486
   #define X_MICROSTEPS 16     //number of microsteps
487 487
 
488
-//#define X2_IS_TMC
488
+  //#define X2_IS_TMC
489 489
   #define X2_MAX_CURRENT 1000  //in mA
490 490
   #define X2_SENSE_RESISTOR 91 //in mOhms
491 491
   #define X2_MICROSTEPS 16     //number of microsteps
492 492
 
493
-//#define Y_IS_TMC
493
+  //#define Y_IS_TMC
494 494
   #define Y_MAX_CURRENT 1000  //in mA
495 495
   #define Y_SENSE_RESISTOR 91 //in mOhms
496 496
   #define Y_MICROSTEPS 16     //number of microsteps
497 497
 
498
-//#define Y2_IS_TMC
498
+  //#define Y2_IS_TMC
499 499
   #define Y2_MAX_CURRENT 1000  //in mA
500 500
   #define Y2_SENSE_RESISTOR 91 //in mOhms
501 501
   #define Y2_MICROSTEPS 16     //number of microsteps
502 502
 
503
-//#define Z_IS_TMC
503
+  //#define Z_IS_TMC
504 504
   #define Z_MAX_CURRENT 1000  //in mA
505 505
   #define Z_SENSE_RESISTOR 91 //in mOhms
506 506
   #define Z_MICROSTEPS 16     //number of microsteps
507 507
 
508
-//#define Z2_IS_TMC
508
+  //#define Z2_IS_TMC
509 509
   #define Z2_MAX_CURRENT 1000  //in mA
510 510
   #define Z2_SENSE_RESISTOR 91 //in mOhms
511 511
   #define Z2_MICROSTEPS 16     //number of microsteps
512 512
 
513
-//#define E0_IS_TMC
513
+  //#define E0_IS_TMC
514 514
   #define E0_MAX_CURRENT 1000  //in mA
515 515
   #define E0_SENSE_RESISTOR 91 //in mOhms
516 516
   #define E0_MICROSTEPS 16     //number of microsteps
517 517
 
518
-//#define E1_IS_TMC
518
+  //#define E1_IS_TMC
519 519
   #define E1_MAX_CURRENT 1000  //in mA
520 520
   #define E1_SENSE_RESISTOR 91 //in mOhms
521 521
   #define E1_MICROSTEPS 16     //number of microsteps
522 522
 
523
-//#define E2_IS_TMC
523
+  //#define E2_IS_TMC
524 524
   #define E2_MAX_CURRENT 1000  //in mA
525 525
   #define E2_SENSE_RESISTOR 91 //in mOhms
526 526
   #define E2_MICROSTEPS 16     //number of microsteps
527 527
 
528
-//#define E3_IS_TMC
528
+  //#define E3_IS_TMC
529 529
   #define E3_MAX_CURRENT 1000  //in mA
530 530
   #define E3_SENSE_RESISTOR 91 //in mOhms
531 531
   #define E3_MICROSTEPS 16     //number of microsteps
@@ -542,61 +542,61 @@ const unsigned int dropsegments=5; //everything with less than this number of st
542 542
 //#define HAVE_L6470DRIVER
543 543
 #if ENABLED(HAVE_L6470DRIVER)
544 544
 
545
-//#define X_IS_L6470
545
+  //#define X_IS_L6470
546 546
   #define X_MICROSTEPS 16     //number of microsteps
547 547
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
548 548
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
549 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 552
   #define X2_MICROSTEPS 16     //number of microsteps
553 553
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
554 554
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
555 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 558
   #define Y_MICROSTEPS 16     //number of microsteps
559 559
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
560 560
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
561 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 564
   #define Y2_MICROSTEPS 16     //number of microsteps
565 565
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
566 566
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
567 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 570
   #define Z_MICROSTEPS 16     //number of microsteps
571 571
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
572 572
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
573 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 576
   #define Z2_MICROSTEPS 16     //number of microsteps
577 577
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
578 578
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
579 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 582
   #define E0_MICROSTEPS 16     //number of microsteps
583 583
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
584 584
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
585 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 588
   #define E1_MICROSTEPS 16     //number of microsteps
589 589
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
590 590
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
591 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 594
   #define E2_MICROSTEPS 16     //number of microsteps
595 595
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
596 596
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
597 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 600
   #define E3_MICROSTEPS 16     //number of microsteps
601 601
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
602 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,10 +355,10 @@
355 355
 //#define USE_WATCHDOG
356 356
 
357 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 362
 #endif
363 363
 
364 364
 // @section lcd
@@ -396,7 +396,7 @@
396 396
 #define MM_PER_ARC_SEGMENT 1
397 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 401
 // @section temperature
402 402
 
@@ -474,52 +474,52 @@ const unsigned int dropsegments=5; //everything with less than this number of st
474 474
 //#define HAVE_TMCDRIVER
475 475
 #if ENABLED(HAVE_TMCDRIVER)
476 476
 
477
-//#define X_IS_TMC
477
+  //#define X_IS_TMC
478 478
   #define X_MAX_CURRENT 1000  //in mA
479 479
   #define X_SENSE_RESISTOR 91 //in mOhms
480 480
   #define X_MICROSTEPS 16     //number of microsteps
481 481
 
482
-//#define X2_IS_TMC
482
+  //#define X2_IS_TMC
483 483
   #define X2_MAX_CURRENT 1000  //in mA
484 484
   #define X2_SENSE_RESISTOR 91 //in mOhms
485 485
   #define X2_MICROSTEPS 16     //number of microsteps
486 486
 
487
-//#define Y_IS_TMC
487
+  //#define Y_IS_TMC
488 488
   #define Y_MAX_CURRENT 1000  //in mA
489 489
   #define Y_SENSE_RESISTOR 91 //in mOhms
490 490
   #define Y_MICROSTEPS 16     //number of microsteps
491 491
 
492
-//#define Y2_IS_TMC
492
+  //#define Y2_IS_TMC
493 493
   #define Y2_MAX_CURRENT 1000  //in mA
494 494
   #define Y2_SENSE_RESISTOR 91 //in mOhms
495 495
   #define Y2_MICROSTEPS 16     //number of microsteps
496 496
 
497
-//#define Z_IS_TMC
497
+  //#define Z_IS_TMC
498 498
   #define Z_MAX_CURRENT 1000  //in mA
499 499
   #define Z_SENSE_RESISTOR 91 //in mOhms
500 500
   #define Z_MICROSTEPS 16     //number of microsteps
501 501
 
502
-//#define Z2_IS_TMC
502
+  //#define Z2_IS_TMC
503 503
   #define Z2_MAX_CURRENT 1000  //in mA
504 504
   #define Z2_SENSE_RESISTOR 91 //in mOhms
505 505
   #define Z2_MICROSTEPS 16     //number of microsteps
506 506
 
507
-//#define E0_IS_TMC
507
+  //#define E0_IS_TMC
508 508
   #define E0_MAX_CURRENT 1000  //in mA
509 509
   #define E0_SENSE_RESISTOR 91 //in mOhms
510 510
   #define E0_MICROSTEPS 16     //number of microsteps
511 511
 
512
-//#define E1_IS_TMC
512
+  //#define E1_IS_TMC
513 513
   #define E1_MAX_CURRENT 1000  //in mA
514 514
   #define E1_SENSE_RESISTOR 91 //in mOhms
515 515
   #define E1_MICROSTEPS 16     //number of microsteps
516 516
 
517
-//#define E2_IS_TMC
517
+  //#define E2_IS_TMC
518 518
   #define E2_MAX_CURRENT 1000  //in mA
519 519
   #define E2_SENSE_RESISTOR 91 //in mOhms
520 520
   #define E2_MICROSTEPS 16     //number of microsteps
521 521
 
522
-//#define E3_IS_TMC
522
+  //#define E3_IS_TMC
523 523
   #define E3_MAX_CURRENT 1000  //in mA
524 524
   #define E3_SENSE_RESISTOR 91 //in mOhms
525 525
   #define E3_MICROSTEPS 16     //number of microsteps
@@ -536,61 +536,61 @@ const unsigned int dropsegments=5; //everything with less than this number of st
536 536
 //#define HAVE_L6470DRIVER
537 537
 #if ENABLED(HAVE_L6470DRIVER)
538 538
 
539
-//#define X_IS_L6470
539
+  //#define X_IS_L6470
540 540
   #define X_MICROSTEPS 16     //number of microsteps
541 541
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
542 542
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
543 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 546
   #define X2_MICROSTEPS 16     //number of microsteps
547 547
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
548 548
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
549 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 552
   #define Y_MICROSTEPS 16     //number of microsteps
553 553
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
554 554
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
555 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 558
   #define Y2_MICROSTEPS 16     //number of microsteps
559 559
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
560 560
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
561 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 564
   #define Z_MICROSTEPS 16     //number of microsteps
565 565
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
566 566
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
567 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 570
   #define Z2_MICROSTEPS 16     //number of microsteps
571 571
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
572 572
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
573 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 576
   #define E0_MICROSTEPS 16     //number of microsteps
577 577
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
578 578
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
579 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 582
   #define E1_MICROSTEPS 16     //number of microsteps
583 583
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
584 584
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
585 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 588
   #define E2_MICROSTEPS 16     //number of microsteps
589 589
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
590 590
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
591 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 594
   #define E3_MICROSTEPS 16     //number of microsteps
595 595
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
596 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,10 +356,10 @@
356 356
 //#define USE_WATCHDOG
357 357
 
358 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 363
 #endif
364 364
 
365 365
 // @section lcd
@@ -397,7 +397,7 @@
397 397
 #define MM_PER_ARC_SEGMENT 1
398 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 402
 // @section temperature
403 403
 
@@ -475,52 +475,52 @@ const unsigned int dropsegments=5; //everything with less than this number of st
475 475
 //#define HAVE_TMCDRIVER
476 476
 #if ENABLED(HAVE_TMCDRIVER)
477 477
 
478
-//#define X_IS_TMC
478
+  //#define X_IS_TMC
479 479
   #define X_MAX_CURRENT 1000  //in mA
480 480
   #define X_SENSE_RESISTOR 91 //in mOhms
481 481
   #define X_MICROSTEPS 16     //number of microsteps
482 482
 
483
-//#define X2_IS_TMC
483
+  //#define X2_IS_TMC
484 484
   #define X2_MAX_CURRENT 1000  //in mA
485 485
   #define X2_SENSE_RESISTOR 91 //in mOhms
486 486
   #define X2_MICROSTEPS 16     //number of microsteps
487 487
 
488
-//#define Y_IS_TMC
488
+  //#define Y_IS_TMC
489 489
   #define Y_MAX_CURRENT 1000  //in mA
490 490
   #define Y_SENSE_RESISTOR 91 //in mOhms
491 491
   #define Y_MICROSTEPS 16     //number of microsteps
492 492
 
493
-//#define Y2_IS_TMC
493
+  //#define Y2_IS_TMC
494 494
   #define Y2_MAX_CURRENT 1000  //in mA
495 495
   #define Y2_SENSE_RESISTOR 91 //in mOhms
496 496
   #define Y2_MICROSTEPS 16     //number of microsteps
497 497
 
498
-//#define Z_IS_TMC
498
+  //#define Z_IS_TMC
499 499
   #define Z_MAX_CURRENT 1000  //in mA
500 500
   #define Z_SENSE_RESISTOR 91 //in mOhms
501 501
   #define Z_MICROSTEPS 16     //number of microsteps
502 502
 
503
-//#define Z2_IS_TMC
503
+  //#define Z2_IS_TMC
504 504
   #define Z2_MAX_CURRENT 1000  //in mA
505 505
   #define Z2_SENSE_RESISTOR 91 //in mOhms
506 506
   #define Z2_MICROSTEPS 16     //number of microsteps
507 507
 
508
-//#define E0_IS_TMC
508
+  //#define E0_IS_TMC
509 509
   #define E0_MAX_CURRENT 1000  //in mA
510 510
   #define E0_SENSE_RESISTOR 91 //in mOhms
511 511
   #define E0_MICROSTEPS 16     //number of microsteps
512 512
 
513
-//#define E1_IS_TMC
513
+  //#define E1_IS_TMC
514 514
   #define E1_MAX_CURRENT 1000  //in mA
515 515
   #define E1_SENSE_RESISTOR 91 //in mOhms
516 516
   #define E1_MICROSTEPS 16     //number of microsteps
517 517
 
518
-//#define E2_IS_TMC
518
+  //#define E2_IS_TMC
519 519
   #define E2_MAX_CURRENT 1000  //in mA
520 520
   #define E2_SENSE_RESISTOR 91 //in mOhms
521 521
   #define E2_MICROSTEPS 16     //number of microsteps
522 522
 
523
-//#define E3_IS_TMC
523
+  //#define E3_IS_TMC
524 524
   #define E3_MAX_CURRENT 1000  //in mA
525 525
   #define E3_SENSE_RESISTOR 91 //in mOhms
526 526
   #define E3_MICROSTEPS 16     //number of microsteps
@@ -537,61 +537,61 @@ const unsigned int dropsegments=5; //everything with less than this number of st
537 537
 //#define HAVE_L6470DRIVER
538 538
 #if ENABLED(HAVE_L6470DRIVER)
539 539
 
540
-//#define X_IS_L6470
540
+  //#define X_IS_L6470
541 541
   #define X_MICROSTEPS 16     //number of microsteps
542 542
   #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
543 543
   #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544 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 547
   #define X2_MICROSTEPS 16     //number of microsteps
548 548
   #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
549 549
   #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550 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 553
   #define Y_MICROSTEPS 16     //number of microsteps
554 554
   #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
555 555
   #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556 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 559
   #define Y2_MICROSTEPS 16     //number of microsteps
560 560
   #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
561 561
   #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562 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 565
   #define Z_MICROSTEPS 16     //number of microsteps
566 566
   #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
567 567
   #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568 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 571
   #define Z2_MICROSTEPS 16     //number of microsteps
572 572
   #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
573 573
   #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574 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 577
   #define E0_MICROSTEPS 16     //number of microsteps
578 578
   #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
579 579
   #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
580 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 583
   #define E1_MICROSTEPS 16     //number of microsteps
584 584
   #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
585 585
   #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
586 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 589
   #define E2_MICROSTEPS 16     //number of microsteps
590 590
   #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
591 591
   #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
592 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 595
   #define E3_MICROSTEPS 16     //number of microsteps
596 596
   #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high
597 597
   #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off

Loading…
Cancel
Save