Browse Source

Merge pull request #3594 from jbrazio/feature/rework-versioning

Rework Marlin's versioning system
Scott Lahteine 8 years ago
parent
commit
266ae90861
30 changed files with 194 additions and 124 deletions
  1. 22
    14
      LinuxAddons/bin/generate_version_header_for_marlin
  2. 1
    1
      Marlin/Configuration.h
  3. 0
    36
      Marlin/Default_Version.h
  4. 35
    0
      Marlin/SanityCheck.h
  5. 74
    0
      Marlin/Version.h
  6. 2
    2
      Marlin/example_configurations/Felix/Configuration.h
  7. 2
    2
      Marlin/example_configurations/Felix/Configuration_DUAL.h
  8. 2
    2
      Marlin/example_configurations/Hephestos/Configuration.h
  9. 2
    2
      Marlin/example_configurations/Hephestos_2/Configuration.h
  10. 2
    2
      Marlin/example_configurations/K8200/Configuration.h
  11. 2
    2
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  12. 2
    2
      Marlin/example_configurations/RigidBot/Configuration.h
  13. 2
    2
      Marlin/example_configurations/SCARA/Configuration.h
  14. 2
    2
      Marlin/example_configurations/TAZ4/Configuration.h
  15. 2
    2
      Marlin/example_configurations/WITBOX/Configuration.h
  16. 2
    2
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  17. 2
    2
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  18. 2
    2
      Marlin/example_configurations/delta/generic/Configuration.h
  19. 2
    2
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  20. 1
    1
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  21. 1
    1
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  22. 2
    2
      Marlin/example_configurations/makibox/Configuration.h
  23. 2
    2
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  24. 14
    25
      Marlin/language.h
  25. 2
    2
      Marlin/pins_3DRAG.h
  26. 4
    4
      Marlin/pins_K8200.h
  27. 2
    2
      Marlin/pins_SAV_MKI.h
  28. 2
    2
      Marlin/pins_ULTIMAIN_2.h
  29. 2
    2
      Marlin/pins_ULTIMAKER.h
  30. 2
    2
      Marlin/pins_ULTIMAKER_OLD.h

+ 22
- 14
LinuxAddons/bin/generate_version_header_for_marlin View File

@@ -3,16 +3,29 @@
3 3
 
4 4
 DIR="$1" export DIR
5 5
 OUTFILE="$2" export OUTFILE
6
-echo "/* This file is automatically generated by an Arduino hook" >"$OUTFILE"
7
-echo " * Do not manually edit it" >>"$OUTFILE"
8
-echo " * It does not get committed to the repository" >>"$OUTFILE"
9
-echo " */" >>"$OUTFILE"
10
-echo "" >>"$OUTFILE"
11
-
12
-echo "#define BUILD_UNIX_DATETIME" `date +%s` >>"$OUTFILE"
13
-echo "#define STRING_DISTRIBUTION_DATE" `date '+"%Y-%m-%d %H:%M"'` >>"$OUTFILE"
6
+
7
+BUILDATE=$(date '+"%s"')
8
+DISTDATE=$(date '+"%Y-%m-%d %H:%M"')
9
+
10
+
11
+cat > "$OUTFILE" <<EOF
12
+/**
13
+ * THIS FILE IS AUTOMATICALLY GENERATED DO NOT MANUALLY EDIT IT.
14
+ * IT DOES NOT GET COMMITTED TO THE REPOSITORY.
15
+ */
16
+
17
+#define BUILD_UNIX_DATETIME ${BUILDATE}
18
+#define STRING_DISTRIBUTION_DATE ${DISTDATE}
19
+#define PROTOCOL_VERSION "1.0"
20
+#define MACHINE_NAME "Travis CI"
21
+#define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
22
+#define DEFAULT_MACHINE_UUID "3442baa1-08ee-435b-8a10-99d185bd43b8"
23
+#define WEBSITE_URL "http://marlinfw.org"
24
+EOF
25
+
14 26
 ( set +e
15 27
   cd "$DIR"
28
+
16 29
   BRANCH=`git symbolic-ref -q --short HEAD`
17 30
   if [ "x$BRANCH" == "x" ] ; then
18 31
     BRANCH=""
@@ -21,6 +34,7 @@ echo "#define STRING_DISTRIBUTION_DATE" `date '+"%Y-%m-%d %H:%M"'` >>"$OUTFILE"
21 34
   else
22 35
     BRANCH=" $BRANCH"
23 36
   fi
37
+
24 38
   VERSION=`git describe --tags --first-parent 2>/dev/null`
25 39
   if [ "x$VERSION" != "x" ] ; then
26 40
     echo "#define SHORT_BUILD_VERSION \"$VERSION\"" | sed "s/-.*/$BRANCH\"/" >>"$OUTFILE"
@@ -30,10 +44,4 @@ echo "#define STRING_DISTRIBUTION_DATE" `date '+"%Y-%m-%d %H:%M"'` >>"$OUTFILE"
30 44
     echo "#define SHORT_BUILD_VERSION \"$BRANCH\"" >>"$OUTFILE"
31 45
     echo "#define DETAILED_BUILD_VERSION \"${BRANCH}-$VERSION\"" >>"$OUTFILE"
32 46
   fi
33
-  URL=`git config --local --get remote.origin.url | sed "sx.*github.com.xhttps://github.com/x" | sed "sx\.gitx/x"`
34
-  if [ "x$URL" != "x" ] ; then
35
-    echo "#define SOURCE_CODE_URL  \""$URL"\"" >>"$OUTFILE"
36
-    echo "// Deprecated URL definition" >>"$OUTFILE"
37
-    echo "#define FIRMWARE_URL  \""$URL"\"" >>"$OUTFILE"
38
-  fi
39 47
 )

+ 1
- 1
Marlin/Configuration.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during

+ 0
- 36
Marlin/Default_Version.h View File

@@ -1,36 +0,0 @@
1
-/**
2
- * Marlin 3D Printer Firmware
3
- * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
- *
5
- * Based on Sprinter and grbl.
6
- * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
- *
8
- * This program is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
- *
21
- */
22
-
23
-/**
24
- * This file is a placeholder for a file which could be distributed in an archive
25
- * It takes the place of an automatically created "_Version.h" which is generated during the build process
26
- */
27
-
28
-// #error "You must specify the following parameters related to your distribution"
29
-
30
-#if true
31
-#define SHORT_BUILD_VERSION "1.1.0-RCBugFix"
32
-#define DETAILED_BUILD_VERSION "1.1.0-RCBugFix From Archive"
33
-#define STRING_DISTRIBUTION_DATE "2016-04-16 12:00"
34
-// It might also be appropriate to define a location where additional information can be found
35
-// #define SOURCE_CODE_URL  "http:// ..."
36
-#endif

+ 35
- 0
Marlin/SanityCheck.h View File

@@ -39,6 +39,41 @@
39 39
 #endif
40 40
 
41 41
 /**
42
+ * Marlin release, version and default string
43
+ */
44
+#ifndef SHORT_BUILD_VERSION
45
+  #error SHORT_BUILD_VERSION Information must be specified
46
+#endif
47
+
48
+#ifndef DETAILED_BUILD_VERSION
49
+  #error BUILD_VERSION Information must be specified
50
+#endif
51
+
52
+#ifndef STRING_DISTRIBUTION_DATE
53
+  #error STRING_DISTRIBUTION_DATE Information must be specified
54
+#endif
55
+
56
+#ifndef PROTOCOL_VERSION
57
+  #error PROTOCOL_VERSION Information must be specified
58
+#endif
59
+
60
+#ifndef MACHINE_NAME
61
+  #error MACHINE_NAME Information must be specified
62
+#endif
63
+
64
+#ifndef SOURCE_CODE_URL
65
+  #error SOURCE_CODE_URL Information must be specified
66
+#endif
67
+
68
+#ifndef DEFAULT_MACHINE_UUID
69
+  #error DEFAULT_MACHINE_UUID Information must be specified
70
+#endif
71
+
72
+#ifndef WEBSITE_URL
73
+  #error WEBSITE_URL Information must be specified
74
+#endif
75
+
76
+/**
42 77
  * Dual Stepper Drivers
43 78
  */
44 79
 #if ENABLED(Z_DUAL_STEPPER_DRIVERS) && ENABLED(Y_DUAL_STEPPER_DRIVERS)

+ 74
- 0
Marlin/Version.h View File

@@ -0,0 +1,74 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+/**
24
+ * This file is the standard Marlin version identifier file, all fields can be
25
+ * overriden by the ones defined on _Version.h by using the Configuration.h
26
+ * directive USE_AUTOMATIC_VERSIONING.
27
+ */
28
+
29
+/**
30
+ * Marlin release version identifier
31
+ */
32
+#define SHORT_BUILD_VERSION "1.1.0-RCBugFix"
33
+
34
+/**
35
+ * Verbose version identifier which should contain a reference to the location
36
+ * from where the binary was downloaded or the source code was compiled.
37
+ */
38
+#define DETAILED_BUILD_VERSION SHORT_BUILD_VERSION " (Github)"
39
+
40
+/**
41
+ * The STRING_DISTRIBUTION_DATE represents when the binary file was built,
42
+ * here we define this default string as the date where the latest release
43
+ * version was tagged.
44
+ */
45
+#define STRING_DISTRIBUTION_DATE "2016-04-16 12:00"
46
+
47
+/**
48
+ * @todo: Missing documentation block
49
+ */
50
+#define PROTOCOL_VERSION "1.0"
51
+
52
+/**
53
+ * Defines a generic printer name to be output to the LCD after booting Marlin.
54
+ */
55
+#define MACHINE_NAME "3D Printer"
56
+
57
+/**
58
+ * The SOURCE_CODE_URL is the location where users will find the Marlin Source
59
+ * Code which is installed on the device. In most cases —unless the manufacturer
60
+ * has a distinct Github fork— the Source Code URL should just be the main
61
+ * Marlin repository.
62
+ */
63
+#define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
64
+
65
+/**
66
+ * Default generic printer UUID.
67
+ */
68
+#define DEFAULT_MACHINE_UUID "cede2a2f-41a2-4748-9b12-c55c62f367ff"
69
+
70
+/**
71
+ * The WEBSITE_URL is the location where users can get more information such as
72
+ * documentation about a specific Marlin release.
73
+ */
74
+#define WEBSITE_URL "http://marlinfw.org"

+ 2
- 2
Marlin/example_configurations/Felix/Configuration.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -586,7 +586,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
586 586
   //    O-- FRONT --+
587 587
   //  (0,0)
588 588
   #define X_PROBE_OFFSET_FROM_EXTRUDER -25     // X offset: -left  +right  [of the nozzle]
589
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle] 
589
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
590 590
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
591 591
 
592 592
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.

+ 2
- 2
Marlin/example_configurations/Felix/Configuration_DUAL.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -583,7 +583,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
583 583
   //    O-- FRONT --+
584 584
   //  (0,0)
585 585
   #define X_PROBE_OFFSET_FROM_EXTRUDER -25     // X offset: -left  +right  [of the nozzle]
586
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle] 
586
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
587 587
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
588 588
 
589 589
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.

+ 2
- 2
Marlin/example_configurations/Hephestos/Configuration.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -596,7 +596,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
596 596
   //    O-- FRONT --+
597 597
   //  (0,0)
598 598
   #define X_PROBE_OFFSET_FROM_EXTRUDER -25     // X offset: -left  +right  [of the nozzle]
599
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle] 
599
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
600 600
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
601 601
 
602 602
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.

+ 2
- 2
Marlin/example_configurations/Hephestos_2/Configuration.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -598,7 +598,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
598 598
   //    O-- FRONT --+
599 599
   //  (0,0)
600 600
   #define X_PROBE_OFFSET_FROM_EXTRUDER 34  // X offset: -left  +right  [of the nozzle]
601
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER 15  // Y offset: -front +behind [the nozzle] 
601
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER 15  // Y offset: -front +behind [the nozzle]
602 602
   #define Z_PROBE_OFFSET_FROM_EXTRUDER 0   // Z offset: -below +above  [the nozzle]
603 603
 
604 604
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.

+ 2
- 2
Marlin/example_configurations/K8200/Configuration.h View File

@@ -83,7 +83,7 @@
83 83
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
84 84
   #include "_Version.h"
85 85
 #else
86
-  #include "Default_Version.h"
86
+  #include "Version.h"
87 87
 #endif
88 88
 
89 89
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -621,7 +621,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
621 621
   //    O-- FRONT --+
622 622
   //  (0,0)
623 623
   #define X_PROBE_OFFSET_FROM_EXTRUDER -25     // X offset: -left  +right  [of the nozzle]
624
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle] 
624
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
625 625
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
626 626
 
627 627
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.

+ 2
- 2
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -604,7 +604,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
604 604
   //    O-- FRONT --+
605 605
   //  (0,0)
606 606
   #define X_PROBE_OFFSET_FROM_EXTRUDER -25     // X offset: -left  +right  [of the nozzle]
607
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle] 
607
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
608 608
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
609 609
 
610 610
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.

+ 2
- 2
Marlin/example_configurations/RigidBot/Configuration.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -598,7 +598,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
598 598
   //    O-- FRONT --+
599 599
   //  (0,0)
600 600
   #define X_PROBE_OFFSET_FROM_EXTRUDER -25     // X offset: -left  +right  [of the nozzle]
601
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle] 
601
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
602 602
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
603 603
 
604 604
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.

+ 2
- 2
Marlin/example_configurations/SCARA/Configuration.h View File

@@ -101,7 +101,7 @@
101 101
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
102 102
   #include "_Version.h"
103 103
 #else
104
-  #include "Default_Version.h"
104
+  #include "Version.h"
105 105
 #endif
106 106
 
107 107
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -612,7 +612,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
612 612
   //    O-- FRONT --+
613 613
   //  (0,0)
614 614
   #define X_PROBE_OFFSET_FROM_EXTRUDER -25     // X offset: -left  +right  [of the nozzle]
615
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle] 
615
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
616 616
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
617 617
 
618 618
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.

+ 2
- 2
Marlin/example_configurations/TAZ4/Configuration.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -625,7 +625,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
625 625
   //    O-- FRONT --+
626 626
   //  (0,0)
627 627
   #define X_PROBE_OFFSET_FROM_EXTRUDER -25     // X offset: -left  +right  [of the nozzle]
628
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle] 
628
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
629 629
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
630 630
 
631 631
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.

+ 2
- 2
Marlin/example_configurations/WITBOX/Configuration.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -596,7 +596,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
596 596
   //    O-- FRONT --+
597 597
   //  (0,0)
598 598
   #define X_PROBE_OFFSET_FROM_EXTRUDER -25     // X offset: -left  +right  [of the nozzle]
599
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle] 
599
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
600 600
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
601 601
 
602 602
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.

+ 2
- 2
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -604,7 +604,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
604 604
   //    O-- FRONT --+
605 605
   //  (0,0)
606 606
   #define X_PROBE_OFFSET_FROM_EXTRUDER -25     // X offset: -left  +right  [of the nozzle]
607
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle] 
607
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
608 608
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
609 609
 
610 610
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.

+ 2
- 2
Marlin/example_configurations/delta/biv2.5/Configuration.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -650,7 +650,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
650 650
   //    O-- FRONT --+
651 651
   //  (0,0)
652 652
   #define X_PROBE_OFFSET_FROM_EXTRUDER 0     // X offset: -left  +right  [of the nozzle]
653
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -10   // Y offset: -front +behind [the nozzle] 
653
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -10   // Y offset: -front +behind [the nozzle]
654 654
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -3.5  // Z offset: -below +above  [the nozzle]
655 655
 
656 656
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.

+ 2
- 2
Marlin/example_configurations/delta/generic/Configuration.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -650,7 +650,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
650 650
   //    O-- FRONT --+
651 651
   //  (0,0)
652 652
   #define X_PROBE_OFFSET_FROM_EXTRUDER 0     // X offset: -left  +right  [of the nozzle]
653
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -10   // Y offset: -front +behind [the nozzle] 
653
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -10   // Y offset: -front +behind [the nozzle]
654 654
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -3.5  // Z offset: -below +above  [the nozzle]
655 655
 
656 656
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.

+ 2
- 2
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -650,7 +650,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
650 650
   //    O-- FRONT --+
651 651
   //  (0,0)
652 652
   #define X_PROBE_OFFSET_FROM_EXTRUDER 0     // X offset: -left  +right  [of the nozzle]
653
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -10   // Y offset: -front +behind [the nozzle] 
653
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -10   // Y offset: -front +behind [the nozzle]
654 654
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -3.5  // Z offset: -below +above  [the nozzle]
655 655
 
656 656
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.

+ 1
- 1
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

@@ -82,7 +82,7 @@
82 82
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
83 83
   #include "_Version.h"
84 84
 #else
85
-  #include "Default_Version.h"
85
+  #include "Version.h"
86 86
 #endif
87 87
 
88 88
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during

+ 1
- 1
Marlin/example_configurations/delta/kossel_xl/Configuration.h View File

@@ -69,7 +69,7 @@
69 69
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
70 70
   #include "_Version.h"
71 71
 #else
72
-  #include "Default_Version.h"
72
+  #include "Version.h"
73 73
 #endif
74 74
 
75 75
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during

+ 2
- 2
Marlin/example_configurations/makibox/Configuration.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -607,7 +607,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
607 607
   //    O-- FRONT --+
608 608
   //  (0,0)
609 609
   #define X_PROBE_OFFSET_FROM_EXTRUDER -25     // X offset: -left  +right  [of the nozzle]
610
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle] 
610
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
611 611
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
612 612
 
613 613
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.

+ 2
- 2
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

@@ -76,7 +76,7 @@
76 76
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
77 77
   #include "_Version.h"
78 78
 #else
79
-  #include "Default_Version.h"
79
+  #include "Version.h"
80 80
 #endif
81 81
 
82 82
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
@@ -594,7 +594,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
594 594
   //    O-- FRONT --+
595 595
   //  (0,0)
596 596
   #define X_PROBE_OFFSET_FROM_EXTRUDER -25     // X offset: -left  +right  [of the nozzle]
597
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle] 
597
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
598 598
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
599 599
 
600 600
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.

+ 14
- 25
Marlin/language.h View File

@@ -66,43 +66,32 @@
66 66
 #if ENABLED(USE_AUTOMATIC_VERSIONING)
67 67
   #include "_Version.h"
68 68
 #else
69
-  #include "Default_Version.h"
69
+  #include "Version.h"
70 70
 #endif
71 71
 
72
-#define PROTOCOL_VERSION "1.0"
73
-
74
-#ifndef DEFAULT_MACHINE_NAME
75
-  #define DEFAULT_MACHINE_NAME "3D Printer"
72
+#ifdef DEFAULT_SOURCE_CODE_URL
73
+  #undef  SOURCE_CODE_URL
74
+  #define SOURCE_CODE_URL DEFAULT_SOURCE_CODE_URL
76 75
 #endif
77 76
 
78 77
 #ifdef CUSTOM_MACHINE_NAME
78
+  #undef  MACHINE_NAME
79 79
   #define MACHINE_NAME CUSTOM_MACHINE_NAME
80 80
 #else
81
-  #define MACHINE_NAME DEFAULT_MACHINE_NAME
82
-#endif
83
-
84
-#ifndef DEFAULT_SOURCE_URL
85
-  /**
86
-   * The SOURCE_CODE_URL is the location where users will find the Marlin Source
87
-   * Code which is installed on the device. In most cases —unless the manufacturer
88
-   * has a distinct Github fork— the Source Code URL should just be the main
89
-   * Marlin repository.
90
-   */
91
-  #define DEFAULT_SOURCE_URL "https://github.com/MarlinFirmware/Marlin"
92
-#endif
93
-
94
-#ifndef SOURCE_CODE_URL
95
-  #define SOURCE_CODE_URL DEFAULT_SOURCE_URL
96
-#endif
97
-
98
-#ifndef DETAILED_BUILD_VERSION
99
-  #error BUILD_VERSION Information must be specified
81
+  #ifdef DEFAULT_MACHINE_NAME
82
+    #undef  MACHINE_NAME
83
+    #define MACHINE_NAME DEFAULT_MACHINE_NAME
84
+  #endif
100 85
 #endif
101 86
 
102 87
 #ifndef MACHINE_UUID
103
-  #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
88
+  #define MACHINE_UUID DEFAULT_MACHINE_UUID
104 89
 #endif
105 90
 
91
+#ifdef DEFAULT_WEBSITE_URL
92
+  #undef  WEBSITE_URL
93
+  #define WEBSITE_URL DEFAULT_WEBSITE_URL
94
+#endif
106 95
 
107 96
 // Common LCD messages
108 97
 

+ 2
- 2
Marlin/pins_3DRAG.h View File

@@ -26,8 +26,8 @@
26 26
 
27 27
 #include "pins_RAMPS_14.h"
28 28
 
29
-#define DEFAULT_MACHINE_NAME "3Drag"
30
-#define DEFAULT_SOURCE_URL   "http://3dprint.elettronicain.it/"
29
+#define DEFAULT_MACHINE_NAME    "3Drag"
30
+#define DEFAULT_SOURCE_CODE_URL "http://3dprint.elettronicain.it/"
31 31
 
32 32
 #undef Z_ENABLE_PIN
33 33
 #define Z_ENABLE_PIN       63

+ 4
- 4
Marlin/pins_K8200.h View File

@@ -27,8 +27,8 @@
27 27
 
28 28
 #include "pins_3DRAG.h"
29 29
 
30
-#undef DEFAULT_MACHINE_NAME
31
-#define DEFAULT_MACHINE_NAME "K8200"
30
+#undef  DEFAULT_MACHINE_NAME
31
+#define DEFAULT_MACHINE_NAME    "K8200"
32 32
 
33
-#undef DEFAULT_SOURCE_URL
34
-#define DEFAULT_SOURCE_URL   "https://github.com/CONSULitAS/Marlin-K8200"
33
+#undef  DEFAULT_SOURCE_CODE_URL
34
+#define DEFAULT_SOURCE_CODE_URL "https://github.com/CONSULitAS/Marlin-K8200"

+ 2
- 2
Marlin/pins_SAV_MKI.h View File

@@ -31,8 +31,8 @@
31 31
   #error Oops!  Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
32 32
 #endif
33 33
 
34
-#define DEFAULT_MACHINE_NAME "SAV MkI"
35
-#define DEFAULT_SOURCE_URL   "https://github.com/fmalpartida/Marlin/tree/SAV-MkI-config"
34
+#define DEFAULT_MACHINE_NAME    "SAV MkI"
35
+#define DEFAULT_SOURCE_CODE_URL "https://github.com/fmalpartida/Marlin/tree/SAV-MkI-config"
36 36
 
37 37
 #define LARGE_FLASH        true
38 38
 

+ 2
- 2
Marlin/pins_ULTIMAIN_2.h View File

@@ -28,8 +28,8 @@
28 28
   #error Oops!  Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
29 29
 #endif
30 30
 
31
-#define DEFAULT_MACHINE_NAME "Ultimaker"
32
-#define DEFAULT_SOURCE_URL   "https://github.com/Ultimaker/Marlin"
31
+#define DEFAULT_MACHINE_NAME    "Ultimaker"
32
+#define DEFAULT_SOURCE_CODE_URL "https://github.com/Ultimaker/Marlin"
33 33
 
34 34
 #define X_STEP_PIN 25
35 35
 #define X_DIR_PIN 23

+ 2
- 2
Marlin/pins_ULTIMAKER.h View File

@@ -28,8 +28,8 @@
28 28
   #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
29 29
 #endif
30 30
 
31
-#define DEFAULT_MACHINE_NAME "Ultimaker"
32
-#define DEFAULT_SOURCE_URL   "https://github.com/Ultimaker/Marlin"
31
+#define DEFAULT_MACHINE_NAME    "Ultimaker"
32
+#define DEFAULT_SOURCE_CODE_URL "https://github.com/Ultimaker/Marlin"
33 33
 
34 34
 #define LARGE_FLASH true
35 35
 

+ 2
- 2
Marlin/pins_ULTIMAKER_OLD.h View File

@@ -28,8 +28,8 @@
28 28
   #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
29 29
 #endif
30 30
 
31
-#define DEFAULT_MACHINE_NAME "Ultimaker"
32
-#define DEFAULT_SOURCE_URL   "https://github.com/Ultimaker/Marlin"
31
+#define DEFAULT_MACHINE_NAME    "Ultimaker"
32
+#define DEFAULT_SOURCE_CODE_URL "https://github.com/Ultimaker/Marlin"
33 33
 
34 34
 #define LARGE_FLASH true
35 35
 

Loading…
Cancel
Save