浏览代码

Revised Versioning mechanism

Richard Wackerbarth 10 年前
父节点
当前提交
5ea139fd79

+ 8
- 4
Marlin/Configuration.h 查看文件

37
 
37
 
38
 // @section info
38
 // @section info
39
 
39
 
40
+#ifdef HAS_AUTOMATIC_VERSIONING
41
+  #include "_Version.h"
42
+#else
43
+  #include "Default_Version.h"
44
+#endif
45
+
40
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
41
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
42
 // build by the user have been successfully uploaded into firmware.
48
 // build by the user have been successfully uploaded into firmware.
43
-#define STRING_VERSION "1.0.3 dev"
44
-#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
45
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
49
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
46
-#define STRING_SPLASH_LINE1 "v" STRING_VERSION // will be shown during bootup in line 1
47
-//#define STRING_SPLASH_LINE2 STRING_VERSION_CONFIG_H // will be shown during bootup in line2
50
+#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
51
+//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
48
 
52
 
49
 // @section machine
53
 // @section machine
50
 
54
 

+ 12
- 0
Marlin/Default_Version.h 查看文件

1
+/*
2
+ * This file is a placeholder for a file which could be distributed in an archive
3
+ * It takes the place of an automatically created "_Version.h" which is generated during the build process
4
+ */
5
+#error "You must specify the following parameter related to your distribution"
6
+
7
+#if false
8
+  #define BUILD_VERSION "1.1.0 dev"
9
+  #define STRING_DISTRIBUTION_DATE "2015-06-00 12:00"
10
+  // It might also be appropriate to define a location where additional information can be found
11
+  #define FIRMWARE_URL  "http:// ..."
12
+#endif

+ 4
- 4
Marlin/Marlin_main.cpp 查看文件

614
   MCUSR = 0;
614
   MCUSR = 0;
615
 
615
 
616
   SERIAL_ECHOPGM(MSG_MARLIN);
616
   SERIAL_ECHOPGM(MSG_MARLIN);
617
-  SERIAL_ECHOLNPGM(" " STRING_VERSION);
617
+  SERIAL_ECHOLNPGM(" " BUILD_VERSION);
618
 
618
 
619
-  #ifdef STRING_VERSION_CONFIG_H
619
+  #ifdef STRING_DISTRIBUTION_DATE
620
     #ifdef STRING_CONFIG_H_AUTHOR
620
     #ifdef STRING_CONFIG_H_AUTHOR
621
       SERIAL_ECHO_START;
621
       SERIAL_ECHO_START;
622
       SERIAL_ECHOPGM(MSG_CONFIGURATION_VER);
622
       SERIAL_ECHOPGM(MSG_CONFIGURATION_VER);
623
-      SERIAL_ECHOPGM(STRING_VERSION_CONFIG_H);
623
+      SERIAL_ECHOPGM(STRING_DISTRIBUTION_DATE);
624
       SERIAL_ECHOPGM(MSG_AUTHOR);
624
       SERIAL_ECHOPGM(MSG_AUTHOR);
625
       SERIAL_ECHOLNPGM(STRING_CONFIG_H_AUTHOR);
625
       SERIAL_ECHOLNPGM(STRING_CONFIG_H_AUTHOR);
626
       SERIAL_ECHOPGM("Compiled: ");
626
       SERIAL_ECHOPGM("Compiled: ");
627
       SERIAL_ECHOLNPGM(__DATE__);
627
       SERIAL_ECHOLNPGM(__DATE__);
628
     #endif // STRING_CONFIG_H_AUTHOR
628
     #endif // STRING_CONFIG_H_AUTHOR
629
-  #endif // STRING_VERSION_CONFIG_H
629
+  #endif // STRING_DISTRIBUTION_DATE
630
 
630
 
631
   SERIAL_ECHO_START;
631
   SERIAL_ECHO_START;
632
   SERIAL_ECHOPGM(MSG_FREE_MEMORY);
632
   SERIAL_ECHOPGM(MSG_FREE_MEMORY);

+ 8
- 4
Marlin/configurator/config/Configuration.h 查看文件

37
 
37
 
38
 // @section info
38
 // @section info
39
 
39
 
40
+#ifdef HAS_AUTOMATIC_VERSIONING
41
+  #include "_Version.h"
42
+#else
43
+  #include "Default_Version.h"
44
+#endif
45
+
40
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
41
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
42
 // build by the user have been successfully uploaded into firmware.
48
 // build by the user have been successfully uploaded into firmware.
43
-#define STRING_VERSION "1.0.3 dev"
44
-#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
45
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
49
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
46
-#define STRING_SPLASH_LINE1 "v" STRING_VERSION // will be shown during bootup in line 1
47
-//#define STRING_SPLASH_LINE2 STRING_VERSION_CONFIG_H // will be shown during bootup in line2
50
+#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
51
+//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
48
 
52
 
49
 // @section machine
53
 // @section machine
50
 
54
 

+ 14
- 5
Marlin/example_configurations/Felix/Configuration.h 查看文件

31
 //===========================================================================
31
 //===========================================================================
32
 //============================= SCARA Printer ===============================
32
 //============================= SCARA Printer ===============================
33
 //===========================================================================
33
 //===========================================================================
34
-// For a Delta printer replace the configuration files with the files in the
34
+// For a Scara printer replace the configuration files with the files in the
35
 // example_configurations/SCARA directory.
35
 // example_configurations/SCARA directory.
36
 //
36
 //
37
 
37
 
38
+// @section info
39
+
40
+#ifdef HAS_AUTOMATIC_VERSIONING
41
+  #include "_Version.h"
42
+#else
43
+  #include "Default_Version.h"
44
+#endif
45
+
38
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40
 // build by the user have been successfully uploaded into firmware.
48
 // build by the user have been successfully uploaded into firmware.
41
-#define STRING_VERSION "1.0.3 dev"
42
-#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
43
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
49
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
44
-#define STRING_SPLASH_LINE1 "v" STRING_VERSION // will be shown during bootup in line 1
45
-//#define STRING_SPLASH_LINE2 STRING_VERSION_CONFIG_H // will be shown during bootup in line2
50
+#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
51
+//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
52
+
53
+// @section machine
46
 
54
 
47
 // SERIAL_PORT selects which serial port should be used for communication with the host.
55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
57
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
58
+// :[0,1,2,3,4,5,6,7]
50
 #define SERIAL_PORT 0
59
 #define SERIAL_PORT 0
51
 
60
 
52
 // This determines the communication speed of the printer
61
 // This determines the communication speed of the printer

+ 14
- 5
Marlin/example_configurations/Felix/Configuration_DUAL.h 查看文件

31
 //===========================================================================
31
 //===========================================================================
32
 //============================= SCARA Printer ===============================
32
 //============================= SCARA Printer ===============================
33
 //===========================================================================
33
 //===========================================================================
34
-// For a Delta printer replace the configuration files with the files in the
34
+// For a Scara printer replace the configuration files with the files in the
35
 // example_configurations/SCARA directory.
35
 // example_configurations/SCARA directory.
36
 //
36
 //
37
 
37
 
38
+// @section info
39
+
40
+#ifdef HAS_AUTOMATIC_VERSIONING
41
+  #include "_Version.h"
42
+#else
43
+  #include "Default_Version.h"
44
+#endif
45
+
38
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40
 // build by the user have been successfully uploaded into firmware.
48
 // build by the user have been successfully uploaded into firmware.
41
-#define STRING_VERSION "1.0.3 dev"
42
-#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
43
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
49
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
44
-#define STRING_SPLASH_LINE1 "v" STRING_VERSION // will be shown during bootup in line 1
45
-//#define STRING_SPLASH_LINE2 STRING_VERSION_CONFIG_H // will be shown during bootup in line2
50
+#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
51
+//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
52
+
53
+// @section machine
46
 
54
 
47
 // SERIAL_PORT selects which serial port should be used for communication with the host.
55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
57
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
58
+// :[0,1,2,3,4,5,6,7]
50
 #define SERIAL_PORT 0
59
 #define SERIAL_PORT 0
51
 
60
 
52
 // This determines the communication speed of the printer
61
 // This determines the communication speed of the printer

+ 15
- 6
Marlin/example_configurations/Hephestos/Configuration.h 查看文件

31
 //===========================================================================
31
 //===========================================================================
32
 //============================= SCARA Printer ===============================
32
 //============================= SCARA Printer ===============================
33
 //===========================================================================
33
 //===========================================================================
34
-// For a Delta printer replace the configuration files with the files in the
34
+// For a Scara printer replace the configuration files with the files in the
35
 // example_configurations/SCARA directory.
35
 // example_configurations/SCARA directory.
36
 //
36
 //
37
 
37
 
38
+// @section info
39
+
40
+#ifdef HAS_AUTOMATIC_VERSIONING
41
+  #include "_Version.h"
42
+#else
43
+  #include "Default_Version.h"
44
+#endif
45
+
38
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40
 // build by the user have been successfully uploaded into firmware.
48
 // build by the user have been successfully uploaded into firmware.
41
-#define STRING_VERSION "1.0.3 dev"
42
-#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
43
-#define STRING_CONFIG_H_AUTHOR "(bq Hephestos)" // Who made the changes.
44
-#define STRING_SPLASH_LINE1 "v" STRING_VERSION // will be shown during bootup in line 1
45
-//#define STRING_SPLASH_LINE2 STRING_VERSION_CONFIG_H // will be shown during bootup in line2
49
+#define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
50
+#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
51
+//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
52
+
53
+// @section machine
46
 
54
 
47
 // SERIAL_PORT selects which serial port should be used for communication with the host.
55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
57
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
58
+// :[0,1,2,3,4,5,6,7]
50
 #define SERIAL_PORT 0
59
 #define SERIAL_PORT 0
51
 
60
 
52
 // This determines the communication speed of the printer
61
 // This determines the communication speed of the printer

+ 8
- 4
Marlin/example_configurations/K8200/Configuration.h 查看文件

42
 
42
 
43
 // @section info
43
 // @section info
44
 
44
 
45
+#ifdef HAS_AUTOMATIC_VERSIONING
46
+  #include "_Version.h"
47
+#else
48
+  #include "Default_Version.h"
49
+#endif
50
+
45
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
51
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
46
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
52
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
47
 // build by the user have been successfully uploaded into firmware.
53
 // build by the user have been successfully uploaded into firmware.
48
-#define STRING_VERSION "1.0.3 dev"
49
-#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
50
 #define STRING_CONFIG_H_AUTHOR "(K8200, CONSULitAS)" // Who made the changes.
54
 #define STRING_CONFIG_H_AUTHOR "(K8200, CONSULitAS)" // Who made the changes.
51
-#define STRING_SPLASH_LINE1 "v" STRING_VERSION // will be shown during bootup in line 1
52
-//#define STRING_SPLASH_LINE2 STRING_VERSION_CONFIG_H // will be shown during bootup in line2
55
+#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
56
+//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 
57
 
54
 // @section machine
58
 // @section machine
55
 
59
 

+ 8
- 4
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h 查看文件

37
 
37
 
38
 // @section info
38
 // @section info
39
 
39
 
40
+#ifdef HAS_AUTOMATIC_VERSIONING
41
+  #include "_Version.h"
42
+#else
43
+  #include "Default_Version.h"
44
+#endif
45
+
40
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
41
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
42
 // build by the user have been successfully uploaded into firmware.
48
 // build by the user have been successfully uploaded into firmware.
43
-#define STRING_VERSION "1.0.3 dev"
44
-#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
45
 #define STRING_CONFIG_H_AUTHOR "RepRapWorld.com" // Who made the changes.
49
 #define STRING_CONFIG_H_AUTHOR "RepRapWorld.com" // Who made the changes.
46
-#define STRING_SPLASH_LINE1 "v" STRING_VERSION // will be shown during bootup in line 1
47
-//#define STRING_SPLASH_LINE2 STRING_VERSION_CONFIG_H // will be shown during bootup in line2
50
+#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
51
+//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
48
 
52
 
49
 // @section machine
53
 // @section machine
50
 
54
 

+ 20
- 4
Marlin/example_configurations/SCARA/Configuration.h 查看文件

22
 // BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
22
 // BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
23
 
23
 
24
 //===========================================================================
24
 //===========================================================================
25
+//============================= DELTA Printer ===============================
26
+//===========================================================================
27
+// For a Delta printer replace the configuration files with the files in the
28
+// example_configurations/delta directory.
29
+//
30
+
31
+//===========================================================================
25
 //========================= SCARA Settings ==================================
32
 //========================= SCARA Settings ==================================
26
 //===========================================================================
33
 //===========================================================================
27
 // SCARA-mode for Marlin has been developed by QHARLEY in ZA in 2012/2013. Implemented
34
 // SCARA-mode for Marlin has been developed by QHARLEY in ZA in 2012/2013. Implemented
53
 //========================= SCARA Settings end ==============================
60
 //========================= SCARA Settings end ==============================
54
 //===========================================================================
61
 //===========================================================================
55
 
62
 
63
+// @section info
64
+
65
+#ifdef HAS_AUTOMATIC_VERSIONING
66
+  #include "_Version.h"
67
+#else
68
+  #include "Default_Version.h"
69
+#endif
70
+
56
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
71
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
57
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
72
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
58
 // build by the user have been successfully uploaded into firmware.
73
 // build by the user have been successfully uploaded into firmware.
59
-#define STRING_VERSION "1.0.3 dev"
60
-#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
61
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
74
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
62
-#define STRING_SPLASH_LINE1 "v" STRING_VERSION // will be shown during bootup in line 1
63
-//#define STRING_SPLASH_LINE2 STRING_VERSION_CONFIG_H // will be shown during bootup in line2
75
+#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
76
+//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
77
+
78
+// @section machine
64
 
79
 
65
 // SERIAL_PORT selects which serial port should be used for communication with the host.
80
 // SERIAL_PORT selects which serial port should be used for communication with the host.
66
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
81
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
67
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
82
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
83
+// :[0,1,2,3,4,5,6,7]
68
 #define SERIAL_PORT 0
84
 #define SERIAL_PORT 0
69
 
85
 
70
 // This determines the communication speed of the printer
86
 // This determines the communication speed of the printer

+ 14
- 5
Marlin/example_configurations/WITBOX/Configuration.h 查看文件

31
 //===========================================================================
31
 //===========================================================================
32
 //============================= SCARA Printer ===============================
32
 //============================= SCARA Printer ===============================
33
 //===========================================================================
33
 //===========================================================================
34
-// For a Delta printer replace the configuration files with the files in the
34
+// For a Scara printer replace the configuration files with the files in the
35
 // example_configurations/SCARA directory.
35
 // example_configurations/SCARA directory.
36
 //
36
 //
37
 
37
 
38
+// @section info
39
+
40
+#ifdef HAS_AUTOMATIC_VERSIONING
41
+  #include "_Version.h"
42
+#else
43
+  #include "Default_Version.h"
44
+#endif
45
+
38
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40
 // build by the user have been successfully uploaded into firmware.
48
 // build by the user have been successfully uploaded into firmware.
41
-#define STRING_VERSION "1.0.3 dev"
42
-#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
43
 #define STRING_CONFIG_H_AUTHOR "(bq Witbox)" // Who made the changes.
49
 #define STRING_CONFIG_H_AUTHOR "(bq Witbox)" // Who made the changes.
44
-#define STRING_SPLASH_LINE1 "v" STRING_VERSION // will be shown during bootup in line 1
45
-//#define STRING_SPLASH_LINE2 STRING_VERSION_CONFIG_H // will be shown during bootup in line2
50
+#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
51
+//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
52
+
53
+// @section machine
46
 
54
 
47
 // SERIAL_PORT selects which serial port should be used for communication with the host.
55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
57
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
58
+// :[0,1,2,3,4,5,6,7]
50
 #define SERIAL_PORT 0
59
 #define SERIAL_PORT 0
51
 
60
 
52
 // This determines the communication speed of the printer
61
 // This determines the communication speed of the printer

+ 14
- 5
Marlin/example_configurations/delta/biv2.5/Configuration.h 查看文件

31
 //===========================================================================
31
 //===========================================================================
32
 //============================= SCARA Printer ===============================
32
 //============================= SCARA Printer ===============================
33
 //===========================================================================
33
 //===========================================================================
34
-// For a Delta printer replace the configuration files with the files in the
34
+// For a Scara printer replace the configuration files with the files in the
35
 // example_configurations/SCARA directory.
35
 // example_configurations/SCARA directory.
36
 //
36
 //
37
 
37
 
38
+// @section info
39
+
40
+#ifdef HAS_AUTOMATIC_VERSIONING
41
+  #include "_Version.h"
42
+#else
43
+  #include "Default_Version.h"
44
+#endif
45
+
38
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40
 // build by the user have been successfully uploaded into firmware.
48
 // build by the user have been successfully uploaded into firmware.
41
-#define STRING_VERSION "1.0.3 dev"
42
-#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
43
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
49
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
44
-#define STRING_SPLASH_LINE1 "v" STRING_VERSION // will be shown during bootup in line 1
45
-//#define STRING_SPLASH_LINE2 STRING_VERSION_CONFIG_H // will be shown during bootup in line2
50
+#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
51
+//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
52
+
53
+// @section machine
46
 
54
 
47
 // SERIAL_PORT selects which serial port should be used for communication with the host.
55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
57
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
58
+// :[0,1,2,3,4,5,6,7]
50
 #define SERIAL_PORT 0
59
 #define SERIAL_PORT 0
51
 
60
 
52
 // This determines the communication speed of the printer
61
 // This determines the communication speed of the printer

+ 14
- 5
Marlin/example_configurations/delta/generic/Configuration.h 查看文件

31
 //===========================================================================
31
 //===========================================================================
32
 //============================= SCARA Printer ===============================
32
 //============================= SCARA Printer ===============================
33
 //===========================================================================
33
 //===========================================================================
34
-// For a Delta printer replace the configuration files with the files in the
34
+// For a Scara printer replace the configuration files with the files in the
35
 // example_configurations/SCARA directory.
35
 // example_configurations/SCARA directory.
36
 //
36
 //
37
 
37
 
38
+// @section info
39
+
40
+#ifdef HAS_AUTOMATIC_VERSIONING
41
+  #include "_Version.h"
42
+#else
43
+  #include "Default_Version.h"
44
+#endif
45
+
38
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40
 // build by the user have been successfully uploaded into firmware.
48
 // build by the user have been successfully uploaded into firmware.
41
-#define STRING_VERSION "1.0.3 dev"
42
-#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
43
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
49
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
44
-#define STRING_SPLASH_LINE1 "v" STRING_VERSION // will be shown during bootup in line 1
45
-//#define STRING_SPLASH_LINE2 STRING_VERSION_CONFIG_H // will be shown during bootup in line2
50
+#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
51
+//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
52
+
53
+// @section machine
46
 
54
 
47
 // SERIAL_PORT selects which serial port should be used for communication with the host.
55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
57
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
58
+// :[0,1,2,3,4,5,6,7]
50
 #define SERIAL_PORT 0
59
 #define SERIAL_PORT 0
51
 
60
 
52
 // This determines the communication speed of the printer
61
 // This determines the communication speed of the printer

+ 14
- 5
Marlin/example_configurations/delta/kossel_mini/Configuration.h 查看文件

31
 //===========================================================================
31
 //===========================================================================
32
 //============================= SCARA Printer ===============================
32
 //============================= SCARA Printer ===============================
33
 //===========================================================================
33
 //===========================================================================
34
-// For a Delta printer replace the configuration files with the files in the
34
+// For a Scara printer replace the configuration files with the files in the
35
 // example_configurations/SCARA directory.
35
 // example_configurations/SCARA directory.
36
 //
36
 //
37
 
37
 
38
+// @section info
39
+
40
+#ifdef HAS_AUTOMATIC_VERSIONING
41
+  #include "_Version.h"
42
+#else
43
+  #include "Default_Version.h"
44
+#endif
45
+
38
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40
 // build by the user have been successfully uploaded into firmware.
48
 // build by the user have been successfully uploaded into firmware.
41
-#define STRING_VERSION "1.0.3 dev"
42
-#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
43
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
49
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
44
-#define STRING_SPLASH_LINE1 "v" STRING_VERSION // will be shown during bootup in line 1
45
-//#define STRING_SPLASH_LINE2 STRING_VERSION_CONFIG_H // will be shown during bootup in line2
50
+#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
51
+//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
52
+
53
+// @section machine
46
 
54
 
47
 // SERIAL_PORT selects which serial port should be used for communication with the host.
55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
57
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
58
+// :[0,1,2,3,4,5,6,7]
50
 #define SERIAL_PORT 0
59
 #define SERIAL_PORT 0
51
 
60
 
52
 // This determines the communication speed of the printer
61
 // This determines the communication speed of the printer

+ 3
- 2
Marlin/example_configurations/delta/kossel_pro/Configuration.h 查看文件

38
 // For a Scara printer replace the configuration files with the files in the
38
 // For a Scara printer replace the configuration files with the files in the
39
 // example_configurations/SCARA directory.
39
 // example_configurations/SCARA directory.
40
 //
40
 //
41
+
42
+// @section info
43
+
41
 #ifdef HAS_AUTOMATIC_VERSIONING
44
 #ifdef HAS_AUTOMATIC_VERSIONING
42
   #include "_Version.h"
45
   #include "_Version.h"
43
 #else
46
 #else
44
   #include "Default_Version.h"
47
   #include "Default_Version.h"
45
 #endif
48
 #endif
46
 
49
 
47
-// @section info
48
-
49
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
50
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
50
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
51
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
51
 // build by the user have been successfully uploaded into firmware.
52
 // build by the user have been successfully uploaded into firmware.

+ 14
- 5
Marlin/example_configurations/makibox/Configuration.h 查看文件

31
 //===========================================================================
31
 //===========================================================================
32
 //============================= SCARA Printer ===============================
32
 //============================= SCARA Printer ===============================
33
 //===========================================================================
33
 //===========================================================================
34
-// For a Delta printer replace the configuration files with the files in the
34
+// For a Scara printer replace the configuration files with the files in the
35
 // example_configurations/SCARA directory.
35
 // example_configurations/SCARA directory.
36
 //
36
 //
37
 
37
 
38
+// @section info
39
+
40
+#ifdef HAS_AUTOMATIC_VERSIONING
41
+  #include "_Version.h"
42
+#else
43
+  #include "Default_Version.h"
44
+#endif
45
+
38
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40
 // build by the user have been successfully uploaded into firmware.
48
 // build by the user have been successfully uploaded into firmware.
41
-#define STRING_VERSION "1.0.3 dev"
42
-#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
43
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
49
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
44
-#define STRING_SPLASH_LINE1 "v" STRING_VERSION // will be shown during bootup in line 1
45
-//#define STRING_SPLASH_LINE2 STRING_VERSION_CONFIG_H // will be shown during bootup in line2
50
+#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
51
+//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
52
+
53
+// @section machine
46
 
54
 
47
 // SERIAL_PORT selects which serial port should be used for communication with the host.
55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
57
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
58
+// :[0,1,2,3,4,5,6,7]
50
 #define SERIAL_PORT 0
59
 #define SERIAL_PORT 0
51
 
60
 
52
 // This determines the communication speed of the printer
61
 // This determines the communication speed of the printer

+ 14
- 5
Marlin/example_configurations/tvrrug/Round2/Configuration.h 查看文件

31
 //===========================================================================
31
 //===========================================================================
32
 //============================= SCARA Printer ===============================
32
 //============================= SCARA Printer ===============================
33
 //===========================================================================
33
 //===========================================================================
34
-// For a Delta printer replace the configuration files with the files in the
34
+// For a Scara printer replace the configuration files with the files in the
35
 // example_configurations/SCARA directory.
35
 // example_configurations/SCARA directory.
36
 //
36
 //
37
 
37
 
38
+// @section info
39
+
40
+#ifdef HAS_AUTOMATIC_VERSIONING
41
+  #include "_Version.h"
42
+#else
43
+  #include "Default_Version.h"
44
+#endif
45
+
38
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40
 // build by the user have been successfully uploaded into firmware.
48
 // build by the user have been successfully uploaded into firmware.
41
-#define STRING_VERSION "1.0.3 dev"
42
-#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
43
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
49
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
44
-#define STRING_SPLASH_LINE1 "v" STRING_VERSION // will be shown during bootup in line 1
45
-//#define STRING_SPLASH_LINE2 STRING_VERSION_CONFIG_H // will be shown during bootup in line2
50
+#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
51
+//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
52
+
53
+// @section machine
46
 
54
 
47
 // SERIAL_PORT selects which serial port should be used for communication with the host.
55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
57
 // Serial port 0 is still used by the Arduino bootloader regardless of this setting.
58
+// :[0,1,2,3,4,5,6,7]
50
 #define SERIAL_PORT 0
59
 #define SERIAL_PORT 0
51
 
60
 
52
 // This determines the communication speed of the printer
61
 // This determines the communication speed of the printer

正在加载...
取消
保存