Bläddra i källkod

Unify config in a single include without nested includes

Scott Lahteine 7 år sedan
förälder
incheckning
c6226bb0aa
52 ändrade filer med 87 tillägg och 191 borttagningar
  1. 1
    3
      Marlin/Configuration.h
  2. 1
    6
      Marlin/Configuration_adv.h
  3. 2
    1
      Marlin/Marlin.h
  4. 1
    2
      Marlin/Marlin.ino
  5. 32
    0
      Marlin/MarlinConfig.h
  6. 1
    1
      Marlin/configuration_store.h
  7. 1
    2
      Marlin/dac_mcp4728.h
  8. 1
    1
      Marlin/digipot_mcp4451.cpp
  9. 1
    3
      Marlin/example_configurations/Cartesio/Configuration.h
  10. 1
    6
      Marlin/example_configurations/Cartesio/Configuration_adv.h
  11. 1
    3
      Marlin/example_configurations/Felix/Configuration.h
  12. 1
    6
      Marlin/example_configurations/Felix/Configuration_adv.h
  13. 1
    3
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  14. 1
    3
      Marlin/example_configurations/Hephestos/Configuration.h
  15. 1
    6
      Marlin/example_configurations/Hephestos/Configuration_adv.h
  16. 1
    3
      Marlin/example_configurations/Hephestos_2/Configuration.h
  17. 1
    6
      Marlin/example_configurations/Hephestos_2/Configuration_adv.h
  18. 1
    3
      Marlin/example_configurations/K8200/Configuration.h
  19. 1
    6
      Marlin/example_configurations/K8200/Configuration_adv.h
  20. 1
    3
      Marlin/example_configurations/K8400/Configuration.h
  21. 1
    6
      Marlin/example_configurations/K8400/Configuration_adv.h
  22. 1
    3
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  23. 1
    3
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  24. 1
    3
      Marlin/example_configurations/RigidBot/Configuration.h
  25. 1
    6
      Marlin/example_configurations/RigidBot/Configuration_adv.h
  26. 1
    3
      Marlin/example_configurations/SCARA/Configuration.h
  27. 1
    6
      Marlin/example_configurations/SCARA/Configuration_adv.h
  28. 1
    3
      Marlin/example_configurations/TAZ4/Configuration.h
  29. 1
    6
      Marlin/example_configurations/TAZ4/Configuration_adv.h
  30. 1
    3
      Marlin/example_configurations/WITBOX/Configuration.h
  31. 1
    6
      Marlin/example_configurations/WITBOX/Configuration_adv.h
  32. 1
    3
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  33. 1
    3
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  34. 1
    6
      Marlin/example_configurations/delta/biv2.5/Configuration_adv.h
  35. 1
    3
      Marlin/example_configurations/delta/generic/Configuration.h
  36. 1
    6
      Marlin/example_configurations/delta/generic/Configuration_adv.h
  37. 1
    3
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  38. 1
    6
      Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
  39. 1
    3
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  40. 1
    6
      Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
  41. 1
    3
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  42. 1
    6
      Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
  43. 1
    3
      Marlin/example_configurations/makibox/Configuration.h
  44. 1
    6
      Marlin/example_configurations/makibox/Configuration_adv.h
  45. 1
    3
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  46. 1
    6
      Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
  47. 1
    1
      Marlin/language.h
  48. 1
    1
      Marlin/qr_solve.h
  49. 1
    1
      Marlin/servo.cpp
  50. 1
    1
      Marlin/stepper_indirection.cpp
  51. 1
    1
      Marlin/stepper_indirection.h
  52. 4
    5
      Marlin/ultralcd_impl_DOGM.h

+ 1
- 3
Marlin/Configuration.h Visa fil

@@ -1343,6 +1343,4 @@
1343 1343
   //#define FILAMENT_LCD_DISPLAY
1344 1344
 #endif
1345 1345
 
1346
-#include "Configuration_adv.h"
1347
-
1348
-#endif //CONFIGURATION_H
1346
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -798,7 +796,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
798 796
 
799 797
 //#define EXPERIMENTAL_I2CBUS
800 798
 
801
-#include "Conditionals.h"
802
-#include "SanityCheck.h"
803
-
804
-#endif //CONFIGURATION_ADV_H
799
+#endif // CONFIGURATION_ADV_H

+ 2
- 1
Marlin/Marlin.h Visa fil

@@ -39,8 +39,9 @@
39 39
 #include <avr/eeprom.h>
40 40
 #include <avr/interrupt.h>
41 41
 
42
+#include "MarlinConfig.h"
43
+
42 44
 #include "fastio.h"
43
-#include "Configuration.h"
44 45
 
45 46
 #ifndef SANITYCHECK_H
46 47
   #error "Your Configuration.h and Configuration_adv.h files are outdated!"

+ 1
- 2
Marlin/Marlin.ino Visa fil

@@ -34,8 +34,7 @@
34 34
 /* All the implementation is done in *.cpp files to get better compatibility with avr-gcc without the Arduino IDE */
35 35
 /* Use this file to help the Arduino IDE find which Arduino libraries are needed and to keep documentation on GCode */
36 36
 
37
-#include "Configuration.h"
38
-#include "pins.h"
37
+#include "MarlinConfig.h"
39 38
 
40 39
 #if ENABLED(ULTRA_LCD)
41 40
   #if ENABLED(LCD_I2C_TYPE_PCF8575)

+ 32
- 0
Marlin/MarlinConfig.h Visa fil

@@ -0,0 +1,32 @@
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
+#ifndef MARLIN_CONFIG_H
24
+#define MARLIN_CONFIG_H
25
+
26
+#include "Configuration.h"
27
+#include "Conditionals_LCD.h"
28
+#include "Configuration_adv.h"
29
+#include "Conditionals.h"
30
+#include "SanityCheck.h"
31
+
32
+#endif // MARLIN_CONFIG_H

+ 1
- 1
Marlin/configuration_store.h Visa fil

@@ -23,7 +23,7 @@
23 23
 #ifndef CONFIGURATION_STORE_H
24 24
 #define CONFIGURATION_STORE_H
25 25
 
26
-#include "Configuration.h"
26
+#include "MarlinConfig.h"
27 27
 
28 28
 void Config_ResetDefault();
29 29
 

+ 1
- 2
Marlin/dac_mcp4728.h Visa fil

@@ -27,8 +27,7 @@
27 27
 #ifndef mcp4728_h
28 28
 #define mcp4728_h
29 29
 
30
-#include "Configuration.h"
31
-#include "Configuration_adv.h"
30
+#include "MarlinConfig.h"
32 31
 
33 32
 #if ENABLED(DAC_STEPPER_CURRENT)
34 33
 #include "Wire.h"

+ 1
- 1
Marlin/digipot_mcp4451.cpp Visa fil

@@ -20,7 +20,7 @@
20 20
  *
21 21
  */
22 22
 
23
-#include "Configuration.h"
23
+#include "MarlinConfig.h"
24 24
 
25 25
 #if ENABLED(DIGIPOT_I2C)
26 26
 

+ 1
- 3
Marlin/example_configurations/Cartesio/Configuration.h Visa fil

@@ -1337,6 +1337,4 @@
1337 1337
   //#define FILAMENT_LCD_DISPLAY
1338 1338
 #endif
1339 1339
 
1340
-#include "Configuration_adv.h"
1341
-
1342
-#endif //CONFIGURATION_H
1340
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/Cartesio/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -798,7 +796,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
798 796
 
799 797
 //#define EXPERIMENTAL_I2CBUS
800 798
 
801
-#include "Conditionals.h"
802
-#include "SanityCheck.h"
803
-
804
-#endif //CONFIGURATION_ADV_H
799
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/Felix/Configuration.h Visa fil

@@ -1320,6 +1320,4 @@
1320 1320
   //#define FILAMENT_LCD_DISPLAY
1321 1321
 #endif
1322 1322
 
1323
-#include "Configuration_adv.h"
1324
-
1325
-#endif //CONFIGURATION_H
1323
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/Felix/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -798,7 +796,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
798 796
 
799 797
 //#define EXPERIMENTAL_I2CBUS
800 798
 
801
-#include "Conditionals.h"
802
-#include "SanityCheck.h"
803
-
804
-#endif //CONFIGURATION_ADV_H
799
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/Felix/DUAL/Configuration.h Visa fil

@@ -1318,6 +1318,4 @@
1318 1318
   //#define FILAMENT_LCD_DISPLAY
1319 1319
 #endif
1320 1320
 
1321
-#include "Configuration_adv.h"
1322
-
1323
-#endif //CONFIGURATION_H
1321
+#endif // CONFIGURATION_H

+ 1
- 3
Marlin/example_configurations/Hephestos/Configuration.h Visa fil

@@ -1329,6 +1329,4 @@
1329 1329
   //#define FILAMENT_LCD_DISPLAY
1330 1330
 #endif
1331 1331
 
1332
-#include "Configuration_adv.h"
1333
-
1334
-#endif //CONFIGURATION_H
1332
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/Hephestos/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -798,7 +796,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
798 796
 
799 797
 //#define EXPERIMENTAL_I2CBUS
800 798
 
801
-#include "Conditionals.h"
802
-#include "SanityCheck.h"
803
-
804
-#endif //CONFIGURATION_ADV_H
799
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/Hephestos_2/Configuration.h Visa fil

@@ -1331,6 +1331,4 @@
1331 1331
   //#define FILAMENT_LCD_DISPLAY
1332 1332
 #endif
1333 1333
 
1334
-#include "Configuration_adv.h"
1335
-
1336
-#endif //CONFIGURATION_H
1334
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/Hephestos_2/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -798,7 +796,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
798 796
 
799 797
 //#define EXPERIMENTAL_I2CBUS
800 798
 
801
-#include "Conditionals.h"
802
-#include "SanityCheck.h"
803
-
804
-#endif //CONFIGURATION_ADV_H
799
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/K8200/Configuration.h Visa fil

@@ -1354,6 +1354,4 @@
1354 1354
   //#define FILAMENT_LCD_DISPLAY
1355 1355
 #endif
1356 1356
 
1357
-#include "Configuration_adv.h"
1358
-
1359
-#endif //CONFIGURATION_H
1357
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/K8200/Configuration_adv.h Visa fil

@@ -52,8 +52,6 @@
52 52
  */
53 53
 #define CONFIGURATION_ADV_H_VERSION 010100
54 54
 
55
-#include "Conditionals_LCD.h"
56
-
57 55
 // @section temperature
58 56
 
59 57
 //===========================================================================
@@ -804,7 +802,4 @@ const unsigned int dropsegments = 2; //everything with less than this number of
804 802
 
805 803
 //#define EXPERIMENTAL_I2CBUS
806 804
 
807
-#include "Conditionals.h"
808
-#include "SanityCheck.h"
809
-
810
-#endif //CONFIGURATION_ADV_H
805
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/K8400/Configuration.h Visa fil

@@ -1337,6 +1337,4 @@
1337 1337
   //#define FILAMENT_LCD_DISPLAY
1338 1338
 #endif
1339 1339
 
1340
-#include "Configuration_adv.h"
1341
-
1342
-#endif //CONFIGURATION_H
1340
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/K8400/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -798,7 +796,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
798 796
 
799 797
 //#define EXPERIMENTAL_I2CBUS
800 798
 
801
-#include "Conditionals.h"
802
-#include "SanityCheck.h"
803
-
804
-#endif //CONFIGURATION_ADV_H
799
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/K8400/Dual-head/Configuration.h Visa fil

@@ -1337,6 +1337,4 @@
1337 1337
   //#define FILAMENT_LCD_DISPLAY
1338 1338
 #endif
1339 1339
 
1340
-#include "Configuration_adv.h"
1341
-
1342
-#endif //CONFIGURATION_H
1340
+#endif // CONFIGURATION_H

+ 1
- 3
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h Visa fil

@@ -1337,6 +1337,4 @@
1337 1337
   //#define FILAMENT_LCD_DISPLAY
1338 1338
 #endif
1339 1339
 
1340
-#include "Configuration_adv.h"
1341
-
1342
-#endif //CONFIGURATION_H
1340
+#endif // CONFIGURATION_H

+ 1
- 3
Marlin/example_configurations/RigidBot/Configuration.h Visa fil

@@ -1337,6 +1337,4 @@
1337 1337
   //#define FILAMENT_LCD_DISPLAY
1338 1338
 #endif
1339 1339
 
1340
-#include "Configuration_adv.h"
1341
-
1342
-#endif //CONFIGURATION_H
1340
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/RigidBot/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -798,7 +796,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
798 796
 
799 797
 //#define EXPERIMENTAL_I2CBUS
800 798
 
801
-#include "Conditionals.h"
802
-#include "SanityCheck.h"
803
-
804
-#endif //CONFIGURATION_ADV_H
799
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/SCARA/Configuration.h Visa fil

@@ -1345,6 +1345,4 @@
1345 1345
   //#define FILAMENT_LCD_DISPLAY
1346 1346
 #endif
1347 1347
 
1348
-#include "Configuration_adv.h"
1349
-
1350
-#endif //CONFIGURATION_H
1348
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/SCARA/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -798,7 +796,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
798 796
 
799 797
 //#define EXPERIMENTAL_I2CBUS
800 798
 
801
-#include "Conditionals.h"
802
-#include "SanityCheck.h"
803
-
804
-#endif //CONFIGURATION_ADV_H
799
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/TAZ4/Configuration.h Visa fil

@@ -1358,6 +1358,4 @@
1358 1358
   //#define FILAMENT_LCD_DISPLAY
1359 1359
 #endif
1360 1360
 
1361
-#include "Configuration_adv.h"
1362
-
1363
-#endif //CONFIGURATION_H
1361
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/TAZ4/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -806,7 +804,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
806 804
 
807 805
 //#define EXPERIMENTAL_I2CBUS
808 806
 
809
-#include "Conditionals.h"
810
-#include "SanityCheck.h"
811
-
812
-#endif //CONFIGURATION_ADV_H
807
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/WITBOX/Configuration.h Visa fil

@@ -1329,6 +1329,4 @@
1329 1329
   //#define FILAMENT_LCD_DISPLAY
1330 1330
 #endif
1331 1331
 
1332
-#include "Configuration_adv.h"
1333
-
1334
-#endif //CONFIGURATION_H
1332
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/WITBOX/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -798,7 +796,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
798 796
 
799 797
 //#define EXPERIMENTAL_I2CBUS
800 798
 
801
-#include "Conditionals.h"
802
-#include "SanityCheck.h"
803
-
804
-#endif //CONFIGURATION_ADV_H
799
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/adafruit/ST7565/Configuration.h Visa fil

@@ -1337,6 +1337,4 @@
1337 1337
   //#define FILAMENT_LCD_DISPLAY
1338 1338
 #endif
1339 1339
 
1340
-#include "Configuration_adv.h"
1341
-
1342
-#endif //CONFIGURATION_H
1340
+#endif // CONFIGURATION_H

+ 1
- 3
Marlin/example_configurations/delta/biv2.5/Configuration.h Visa fil

@@ -1429,6 +1429,4 @@
1429 1429
   //#define FILAMENT_LCD_DISPLAY
1430 1430
 #endif
1431 1431
 
1432
-#include "Configuration_adv.h"
1433
-
1434
-#endif //CONFIGURATION_H
1432
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/delta/biv2.5/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -800,7 +798,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
800 798
 
801 799
 //#define EXPERIMENTAL_I2CBUS
802 800
 
803
-#include "Conditionals.h"
804
-#include "SanityCheck.h"
805
-
806
-#endif //CONFIGURATION_ADV_H
801
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/delta/generic/Configuration.h Visa fil

@@ -1423,6 +1423,4 @@
1423 1423
   //#define FILAMENT_LCD_DISPLAY
1424 1424
 #endif
1425 1425
 
1426
-#include "Configuration_adv.h"
1427
-
1428
-#endif //CONFIGURATION_H
1426
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/delta/generic/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -800,7 +798,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
800 798
 
801 799
 //#define EXPERIMENTAL_I2CBUS
802 800
 
803
-#include "Conditionals.h"
804
-#include "SanityCheck.h"
805
-
806
-#endif //CONFIGURATION_ADV_H
801
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/delta/kossel_mini/Configuration.h Visa fil

@@ -1426,6 +1426,4 @@
1426 1426
   //#define FILAMENT_LCD_DISPLAY
1427 1427
 #endif
1428 1428
 
1429
-#include "Configuration_adv.h"
1430
-
1431
-#endif //CONFIGURATION_H
1429
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -799,7 +797,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
799 797
 
800 798
 //#define EXPERIMENTAL_I2CBUS
801 799
 
802
-#include "Conditionals.h"
803
-#include "SanityCheck.h"
804
-
805
-#endif //CONFIGURATION_ADV_H
800
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/delta/kossel_pro/Configuration.h Visa fil

@@ -1426,6 +1426,4 @@
1426 1426
   //#define FILAMENT_LCD_DISPLAY
1427 1427
 #endif
1428 1428
 
1429
-#include "Configuration_adv.h"
1430
-
1431
-#endif //CONFIGURATION_H
1429
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h Visa fil

@@ -51,8 +51,6 @@
51 51
  */
52 52
 #define CONFIGURATION_ADV_H_VERSION 010100
53 53
 
54
-#include "Conditionals_LCD.h"
55
-
56 54
 // @section temperature
57 55
 
58 56
 //===========================================================================
@@ -804,7 +802,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
804 802
 
805 803
 //#define EXPERIMENTAL_I2CBUS
806 804
 
807
-#include "Conditionals.h"
808
-#include "SanityCheck.h"
809
-
810
-#endif //CONFIGURATION_ADV_H
805
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/delta/kossel_xl/Configuration.h Visa fil

@@ -1429,6 +1429,4 @@
1429 1429
   //#define FILAMENT_LCD_DISPLAY
1430 1430
 #endif
1431 1431
 
1432
-#include "Configuration_adv.h"
1433
-
1434
-#endif //CONFIGURATION_H
1432
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -800,7 +798,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
800 798
 
801 799
 //#define EXPERIMENTAL_I2CBUS
802 800
 
803
-#include "Conditionals.h"
804
-#include "SanityCheck.h"
805
-
806
-#endif //CONFIGURATION_ADV_H
801
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/makibox/Configuration.h Visa fil

@@ -1340,6 +1340,4 @@
1340 1340
   //#define FILAMENT_LCD_DISPLAY
1341 1341
 #endif
1342 1342
 
1343
-#include "Configuration_adv.h"
1344
-
1345
-#endif //CONFIGURATION_H
1343
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/makibox/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -798,7 +796,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
798 796
 
799 797
 //#define EXPERIMENTAL_I2CBUS
800 798
 
801
-#include "Conditionals.h"
802
-#include "SanityCheck.h"
803
-
804
-#endif //CONFIGURATION_ADV_H
799
+#endif // CONFIGURATION_ADV_H

+ 1
- 3
Marlin/example_configurations/tvrrug/Round2/Configuration.h Visa fil

@@ -1331,6 +1331,4 @@
1331 1331
   //#define FILAMENT_LCD_DISPLAY
1332 1332
 #endif
1333 1333
 
1334
-#include "Configuration_adv.h"
1335
-
1336
-#endif //CONFIGURATION_H
1334
+#endif // CONFIGURATION_H

+ 1
- 6
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h Visa fil

@@ -46,8 +46,6 @@
46 46
  */
47 47
 #define CONFIGURATION_ADV_H_VERSION 010100
48 48
 
49
-#include "Conditionals_LCD.h"
50
-
51 49
 // @section temperature
52 50
 
53 51
 //===========================================================================
@@ -798,7 +796,4 @@ const unsigned int dropsegments = 5; //everything with less than this number of
798 796
 
799 797
 //#define EXPERIMENTAL_I2CBUS
800 798
 
801
-#include "Conditionals.h"
802
-#include "SanityCheck.h"
803
-
804
-#endif //CONFIGURATION_ADV_H
799
+#endif // CONFIGURATION_ADV_H

+ 1
- 1
Marlin/language.h Visa fil

@@ -23,7 +23,7 @@
23 23
 #ifndef LANGUAGE_H
24 24
 #define LANGUAGE_H
25 25
 
26
-#include "Configuration.h"
26
+#include "MarlinConfig.h"
27 27
 
28 28
 // Fallback if no language is set. DON'T CHANGE
29 29
 #ifndef LCD_LANGUAGE

+ 1
- 1
Marlin/qr_solve.h Visa fil

@@ -20,7 +20,7 @@
20 20
  *
21 21
  */
22 22
 
23
-#include "Configuration.h"
23
+#include "MarlinConfig.h"
24 24
 
25 25
 #if ENABLED(AUTO_BED_LEVELING_GRID)
26 26
 

+ 1
- 1
Marlin/servo.cpp Visa fil

@@ -50,7 +50,7 @@
50 50
  * detach()              - Stop an attached servo from pulsing its i/o pin.
51 51
  *
52 52
  */
53
-#include "Configuration.h"
53
+#include "MarlinConfig.h"
54 54
 
55 55
 #if HAS_SERVOS
56 56
 

+ 1
- 1
Marlin/stepper_indirection.cpp Visa fil

@@ -43,7 +43,7 @@
43 43
 
44 44
 #include "stepper_indirection.h"
45 45
 
46
-#include "Configuration.h"
46
+#include "MarlinConfig.h"
47 47
 
48 48
 #if ENABLED(HAVE_TMCDRIVER)
49 49
   #include <SPI.h>

+ 1
- 1
Marlin/stepper_indirection.h Visa fil

@@ -44,7 +44,7 @@
44 44
 #ifndef STEPPER_INDIRECTION_H
45 45
 #define STEPPER_INDIRECTION_H
46 46
 
47
-#include "Configuration.h"
47
+#include "MarlinConfig.h"
48 48
 
49 49
 // TMC26X drivers have STEP/DIR on normal pins, but ENABLE via SPI
50 50
 #if ENABLED(HAVE_TMCDRIVER)

+ 4
- 5
Marlin/ultralcd_impl_DOGM.h Visa fil

@@ -36,6 +36,8 @@
36 36
 #ifndef ULTRALCD_IMPL_DOGM_H
37 37
 #define ULTRALCD_IMPL_DOGM_H
38 38
 
39
+#include "MarlinConfig.h"
40
+
39 41
 /**
40 42
  * Implementation of the LCD display routines for a DOGM128 graphic display.
41 43
  * These are common LCD 128x64 pixel graphic displays.
@@ -51,20 +53,17 @@
51 53
   #define LCD_CLICKED (buttons&EN_C)
52 54
 #endif
53 55
 
54
-#include <U8glib.h>
55 56
 #include "dogm_bitmaps.h"
56
-
57 57
 #include "ultralcd.h"
58 58
 #include "ultralcd_st7920_u8glib_rrd.h"
59
-#include "Configuration.h"
60
-
61 59
 #include "duration_t.h"
62 60
 
61
+#include <U8glib.h>
62
+
63 63
 #if DISABLED(MAPPER_C2C3) && DISABLED(MAPPER_NON) && ENABLED(USE_BIG_EDIT_FONT)
64 64
   #undef USE_BIG_EDIT_FONT
65 65
 #endif
66 66
 
67
-
68 67
 #if ENABLED(USE_SMALL_INFOFONT)
69 68
   #include "dogm_font_data_6x9_marlin.h"
70 69
   #define FONT_STATUSMENU_NAME u8g_font_6x9

Laddar…
Avbryt
Spara