소스 검색

Merge pull request #2146 from Wackerbarth/Versioning

Versioning
AnHardt 10 년 전
부모
커밋
d1f4471000

+ 8
- 4
Marlin/Configuration.h 파일 보기

@@ -37,14 +37,18 @@ Here are some standard links for getting your machine calibrated:
37 37
 
38 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 46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
41 47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
42 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 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 53
 // @section machine
50 54
 

+ 13
- 0
Marlin/Default_Version.h 파일 보기

@@ -0,0 +1,13 @@
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
+
6
+// #error "You must specify the following parameter related to your distribution"
7
+
8
+#if true
9
+  #define BUILD_VERSION "1.1.0 dev"
10
+  #define STRING_DISTRIBUTION_DATE "2015-06-00 12:00"
11
+  // It might also be appropriate to define a location where additional information can be found
12
+  #define SOURCE_CODE_URL  "http:// ..."
13
+#endif

+ 4
- 4
Marlin/Marlin_main.cpp 파일 보기

@@ -614,19 +614,19 @@ void setup() {
614 614
   MCUSR = 0;
615 615
 
616 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 620
     #ifdef STRING_CONFIG_H_AUTHOR
621 621
       SERIAL_ECHO_START;
622 622
       SERIAL_ECHOPGM(MSG_CONFIGURATION_VER);
623
-      SERIAL_ECHOPGM(STRING_VERSION_CONFIG_H);
623
+      SERIAL_ECHOPGM(STRING_DISTRIBUTION_DATE);
624 624
       SERIAL_ECHOPGM(MSG_AUTHOR);
625 625
       SERIAL_ECHOLNPGM(STRING_CONFIG_H_AUTHOR);
626 626
       SERIAL_ECHOPGM("Compiled: ");
627 627
       SERIAL_ECHOLNPGM(__DATE__);
628 628
     #endif // STRING_CONFIG_H_AUTHOR
629
-  #endif // STRING_VERSION_CONFIG_H
629
+  #endif // STRING_DISTRIBUTION_DATE
630 630
 
631 631
   SERIAL_ECHO_START;
632 632
   SERIAL_ECHOPGM(MSG_FREE_MEMORY);

+ 8
- 4
Marlin/configurator/config/Configuration.h 파일 보기

@@ -37,14 +37,18 @@ Here are some standard links for getting your machine calibrated:
37 37
 
38 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 46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
41 47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
42 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 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 53
 // @section machine
50 54
 

+ 7
- 7
Marlin/configurator/config/language.h 파일 보기

@@ -45,20 +45,20 @@
45 45
 
46 46
 #if MB(ULTIMAKER)|| MB(ULTIMAKER_OLD)|| MB(ULTIMAIN_2)
47 47
   #define MACHINE_NAME "Ultimaker"
48
-  #define FIRMWARE_URL "http://firmware.ultimaker.com"
48
+  #define SOURCE_CODE_URL "http://firmware.ultimaker.com"
49 49
 #elif MB(RUMBA)
50 50
   #define MACHINE_NAME "Rumba"
51 51
 #elif MB(3DRAG)
52 52
   #define MACHINE_NAME "3Drag"
53
-  #define FIRMWARE_URL "http://3dprint.elettronicain.it/"
53
+  #define SOURCE_CODE_URL "http://3dprint.elettronicain.it/"
54 54
 #elif MB(K8200)
55 55
   #define MACHINE_NAME "K8200"
56
-  #define FIRMWARE_URL "https://github.com/CONSULitAS/Marlin-K8200"
56
+  #define SOURCE_CODE_URL "https://github.com/CONSULitAS/Marlin-K8200"
57 57
 #elif MB(5DPRINT)
58 58
   #define MACHINE_NAME "Makibox"
59 59
 #elif MB(SAV_MKI)
60 60
   #define MACHINE_NAME "SAV MkI"
61
-  #define FIRMWARE_URL "https://github.com/fmalpartida/Marlin/tree/SAV-MkI-config"
61
+  #define SOURCE_CODE_URL "https://github.com/fmalpartida/Marlin/tree/SAV-MkI-config"
62 62
 #elif !defined(MACHINE_NAME)
63 63
   #define MACHINE_NAME "3D Printer"
64 64
 #endif
@@ -73,8 +73,8 @@
73 73
   #define MACHINE_NAME CUSTOM_MACHINE_NAME
74 74
 #endif
75 75
 
76
-#ifndef FIRMWARE_URL
77
-  #define FIRMWARE_URL "https://github.com/MarlinFirmware/Marlin"
76
+#ifndef SOURCE_CODE_URL
77
+  #define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
78 78
 #endif
79 79
 
80 80
 #ifndef BUILD_VERSION
@@ -126,7 +126,7 @@
126 126
 #define MSG_HEATING_COMPLETE                "Heating done."
127 127
 #define MSG_BED_HEATING                     "Bed Heating."
128 128
 #define MSG_BED_DONE                        "Bed done."
129
-#define MSG_M115_REPORT                     "FIRMWARE_NAME:Marlin " BUILD_VERSION " FIRMWARE_URL:" FIRMWARE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
129
+#define MSG_M115_REPORT                     "FIRMWARE_NAME:Marlin " BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
130 130
 #define MSG_COUNT_X                         " Count X: "
131 131
 #define MSG_ERR_KILLED                      "Printer halted. kill() called!"
132 132
 #define MSG_ERR_STOPPED                     "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"

+ 14
- 5
Marlin/example_configurations/Felix/Configuration.h 파일 보기

@@ -31,22 +31,31 @@ Here are some standard links for getting your machine calibrated:
31 31
 //===========================================================================
32 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 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 46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39 47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40 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 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 55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48 56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49 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 59
 #define SERIAL_PORT 0
51 60
 
52 61
 // This determines the communication speed of the printer

+ 14
- 5
Marlin/example_configurations/Felix/Configuration_DUAL.h 파일 보기

@@ -31,22 +31,31 @@ Here are some standard links for getting your machine calibrated:
31 31
 //===========================================================================
32 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 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 46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39 47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40 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 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 55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48 56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49 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 59
 #define SERIAL_PORT 0
51 60
 
52 61
 // This determines the communication speed of the printer

+ 16
- 7
Marlin/example_configurations/Hephestos/Configuration.h 파일 보기

@@ -31,22 +31,31 @@ Here are some standard links for getting your machine calibrated:
31 31
 //===========================================================================
32 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 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 46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39 47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40 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 55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48 56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49 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 59
 #define SERIAL_PORT 0
51 60
 
52 61
 // This determines the communication speed of the printer
@@ -64,7 +73,7 @@ Here are some standard links for getting your machine calibrated:
64 73
 #define CUSTOM_MACHINE_NAME "HEPHESTOS"
65 74
 
66 75
 // Added for BQ
67
-#define FIRMWARE_URL "http://www.bq.com/gb/downloads-prusa-i3-hephestos.html"
76
+#define SOURCE_CODE_URL "http://www.bq.com/gb/downloads-prusa-i3-hephestos.html"
68 77
  
69 78
 // Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines)
70 79
 // You can use an online service to generate a random UUID. (eg http://www.uuidgenerator.net/version4)

+ 8
- 4
Marlin/example_configurations/K8200/Configuration.h 파일 보기

@@ -42,14 +42,18 @@ Here are some standard links for getting your machine calibrated:
42 42
 
43 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 51
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
46 52
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
47 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 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 58
 // @section machine
55 59
 

+ 8
- 4
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h 파일 보기

@@ -37,14 +37,18 @@ Here are some standard links for getting your machine calibrated:
37 37
 
38 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 46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
41 47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
42 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 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 53
 // @section machine
50 54
 

+ 20
- 4
Marlin/example_configurations/SCARA/Configuration.h 파일 보기

@@ -22,6 +22,13 @@ Here are some standard links for getting your machine calibrated:
22 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 32
 //========================= SCARA Settings ==================================
26 33
 //===========================================================================
27 34
 // SCARA-mode for Marlin has been developed by QHARLEY in ZA in 2012/2013. Implemented
@@ -53,18 +60,27 @@ Here are some standard links for getting your machine calibrated:
53 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 71
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
57 72
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
58 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 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 80
 // SERIAL_PORT selects which serial port should be used for communication with the host.
66 81
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
67 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 84
 #define SERIAL_PORT 0
69 85
 
70 86
 // This determines the communication speed of the printer

+ 15
- 6
Marlin/example_configurations/WITBOX/Configuration.h 파일 보기

@@ -31,22 +31,31 @@ Here are some standard links for getting your machine calibrated:
31 31
 //===========================================================================
32 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 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 46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39 47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40 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 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 55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48 56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49 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 59
 #define SERIAL_PORT 0
51 60
 
52 61
 // This determines the communication speed of the printer
@@ -64,7 +73,7 @@ Here are some standard links for getting your machine calibrated:
64 73
 #define CUSTOM_MACHINE_NAME "WITBOX"
65 74
 
66 75
 // Added for BQ
67
-#define FIRMWARE_URL "http://www.bq.com/gb/downloads-witbox.html"
76
+#define SOURCE_CODE_URL "http://www.bq.com/gb/downloads-witbox.html"
68 77
 
69 78
 // Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines)
70 79
 // You can use an online service to generate a random UUID. (eg http://www.uuidgenerator.net/version4)

+ 14
- 5
Marlin/example_configurations/delta/biv2.5/Configuration.h 파일 보기

@@ -31,22 +31,31 @@ Here are some standard links for getting your machine calibrated:
31 31
 //===========================================================================
32 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 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 46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39 47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40 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 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 55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48 56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49 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 59
 #define SERIAL_PORT 0
51 60
 
52 61
 // This determines the communication speed of the printer

+ 14
- 5
Marlin/example_configurations/delta/generic/Configuration.h 파일 보기

@@ -31,22 +31,31 @@ Here are some standard links for getting your machine calibrated:
31 31
 //===========================================================================
32 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 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 46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39 47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40 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 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 55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48 56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49 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 59
 #define SERIAL_PORT 0
51 60
 
52 61
 // This determines the communication speed of the printer

+ 14
- 5
Marlin/example_configurations/delta/kossel_mini/Configuration.h 파일 보기

@@ -31,22 +31,31 @@ Here are some standard links for getting your machine calibrated:
31 31
 //===========================================================================
32 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 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 46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39 47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40 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 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 55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48 56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49 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 59
 #define SERIAL_PORT 0
51 60
 
52 61
 // This determines the communication speed of the printer

+ 3
- 2
Marlin/example_configurations/delta/kossel_pro/Configuration.h 파일 보기

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

+ 14
- 5
Marlin/example_configurations/makibox/Configuration.h 파일 보기

@@ -31,22 +31,31 @@ Here are some standard links for getting your machine calibrated:
31 31
 //===========================================================================
32 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 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 46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39 47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40 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 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 55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48 56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49 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 59
 #define SERIAL_PORT 0
51 60
 
52 61
 // This determines the communication speed of the printer

+ 14
- 5
Marlin/example_configurations/tvrrug/Round2/Configuration.h 파일 보기

@@ -31,22 +31,31 @@ Here are some standard links for getting your machine calibrated:
31 31
 //===========================================================================
32 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 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 46
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
39 47
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
40 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 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 55
 // SERIAL_PORT selects which serial port should be used for communication with the host.
48 56
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
49 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 59
 #define SERIAL_PORT 0
51 60
 
52 61
 // This determines the communication speed of the printer

+ 7
- 7
Marlin/language.h 파일 보기

@@ -46,20 +46,20 @@
46 46
 
47 47
 #if MB(ULTIMAKER)|| MB(ULTIMAKER_OLD)|| MB(ULTIMAIN_2)
48 48
   #define MACHINE_NAME "Ultimaker"
49
-  #define FIRMWARE_URL "http://firmware.ultimaker.com"
49
+  #define SOURCE_CODE_URL "http://firmware.ultimaker.com"
50 50
 #elif MB(RUMBA)
51 51
   #define MACHINE_NAME "Rumba"
52 52
 #elif MB(3DRAG)
53 53
   #define MACHINE_NAME "3Drag"
54
-  #define FIRMWARE_URL "http://3dprint.elettronicain.it/"
54
+  #define SOURCE_CODE_URL "http://3dprint.elettronicain.it/"
55 55
 #elif MB(K8200)
56 56
   #define MACHINE_NAME "K8200"
57
-  #define FIRMWARE_URL "https://github.com/CONSULitAS/Marlin-K8200"
57
+  #define SOURCE_CODE_URL "https://github.com/CONSULitAS/Marlin-K8200"
58 58
 #elif MB(5DPRINT)
59 59
   #define MACHINE_NAME "Makibox"
60 60
 #elif MB(SAV_MKI)
61 61
   #define MACHINE_NAME "SAV MkI"
62
-  #define FIRMWARE_URL "https://github.com/fmalpartida/Marlin/tree/SAV-MkI-config"
62
+  #define SOURCE_CODE_URL "https://github.com/fmalpartida/Marlin/tree/SAV-MkI-config"
63 63
 #elif !defined(MACHINE_NAME)
64 64
   #define MACHINE_NAME "3D Printer"
65 65
 #endif
@@ -74,8 +74,8 @@
74 74
   #define MACHINE_NAME CUSTOM_MACHINE_NAME
75 75
 #endif
76 76
 
77
-#ifndef FIRMWARE_URL
78
-  #define FIRMWARE_URL "https://github.com/MarlinFirmware/Marlin"
77
+#ifndef SOURCE_CODE_URL
78
+  #define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
79 79
 #endif
80 80
 
81 81
 #ifndef BUILD_VERSION
@@ -127,7 +127,7 @@
127 127
 #define MSG_HEATING_COMPLETE                "Heating done."
128 128
 #define MSG_BED_HEATING                     "Bed Heating."
129 129
 #define MSG_BED_DONE                        "Bed done."
130
-#define MSG_M115_REPORT                     "FIRMWARE_NAME:Marlin " BUILD_VERSION " FIRMWARE_URL:" FIRMWARE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
130
+#define MSG_M115_REPORT                     "FIRMWARE_NAME:Marlin " BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
131 131
 #define MSG_COUNT_X                         " Count X: "
132 132
 #define MSG_ERR_KILLED                      "Printer halted. kill() called!"
133 133
 #define MSG_ERR_STOPPED                     "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"

Loading…
취소
저장