Browse Source

Unify config in a single include without nested includes

Scott Lahteine 7 years ago
parent
commit
c6226bb0aa
52 changed files with 87 additions and 191 deletions
  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 View File

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

+ 1
- 6
Marlin/Configuration_adv.h View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
798
 
796
 
799
 //#define EXPERIMENTAL_I2CBUS
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 View File

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

+ 1
- 2
Marlin/Marlin.ino View File

34
 /* All the implementation is done in *.cpp files to get better compatibility with avr-gcc without the Arduino IDE */
34
 /* All the implementation is done in *.cpp files to get better compatibility with avr-gcc without the Arduino IDE */
35
 /* Use this file to help the Arduino IDE find which Arduino libraries are needed and to keep documentation on GCode */
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
 #if ENABLED(ULTRA_LCD)
39
 #if ENABLED(ULTRA_LCD)
41
   #if ENABLED(LCD_I2C_TYPE_PCF8575)
40
   #if ENABLED(LCD_I2C_TYPE_PCF8575)

+ 32
- 0
Marlin/MarlinConfig.h View File

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 View File

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

+ 1
- 2
Marlin/dac_mcp4728.h View File

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

+ 1
- 1
Marlin/digipot_mcp4451.cpp View File

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

+ 1
- 3
Marlin/example_configurations/Cartesio/Configuration.h View File

1337
   //#define FILAMENT_LCD_DISPLAY
1337
   //#define FILAMENT_LCD_DISPLAY
1338
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
798
 
796
 
799
 //#define EXPERIMENTAL_I2CBUS
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 View File

1320
   //#define FILAMENT_LCD_DISPLAY
1320
   //#define FILAMENT_LCD_DISPLAY
1321
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
798
 
796
 
799
 //#define EXPERIMENTAL_I2CBUS
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 View File

1318
   //#define FILAMENT_LCD_DISPLAY
1318
   //#define FILAMENT_LCD_DISPLAY
1319
 #endif
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 View File

1329
   //#define FILAMENT_LCD_DISPLAY
1329
   //#define FILAMENT_LCD_DISPLAY
1330
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
798
 
796
 
799
 //#define EXPERIMENTAL_I2CBUS
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 View File

1331
   //#define FILAMENT_LCD_DISPLAY
1331
   //#define FILAMENT_LCD_DISPLAY
1332
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
798
 
796
 
799
 //#define EXPERIMENTAL_I2CBUS
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 View File

1354
   //#define FILAMENT_LCD_DISPLAY
1354
   //#define FILAMENT_LCD_DISPLAY
1355
 #endif
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 View File

52
  */
52
  */
53
 #define CONFIGURATION_ADV_H_VERSION 010100
53
 #define CONFIGURATION_ADV_H_VERSION 010100
54
 
54
 
55
-#include "Conditionals_LCD.h"
56
-
57
 // @section temperature
55
 // @section temperature
58
 
56
 
59
 //===========================================================================
57
 //===========================================================================
804
 
802
 
805
 //#define EXPERIMENTAL_I2CBUS
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 View File

1337
   //#define FILAMENT_LCD_DISPLAY
1337
   //#define FILAMENT_LCD_DISPLAY
1338
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
798
 
796
 
799
 //#define EXPERIMENTAL_I2CBUS
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 View File

1337
   //#define FILAMENT_LCD_DISPLAY
1337
   //#define FILAMENT_LCD_DISPLAY
1338
 #endif
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 View File

1337
   //#define FILAMENT_LCD_DISPLAY
1337
   //#define FILAMENT_LCD_DISPLAY
1338
 #endif
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 View File

1337
   //#define FILAMENT_LCD_DISPLAY
1337
   //#define FILAMENT_LCD_DISPLAY
1338
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
798
 
796
 
799
 //#define EXPERIMENTAL_I2CBUS
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 View File

1345
   //#define FILAMENT_LCD_DISPLAY
1345
   //#define FILAMENT_LCD_DISPLAY
1346
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
798
 
796
 
799
 //#define EXPERIMENTAL_I2CBUS
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 View File

1358
   //#define FILAMENT_LCD_DISPLAY
1358
   //#define FILAMENT_LCD_DISPLAY
1359
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
806
 
804
 
807
 //#define EXPERIMENTAL_I2CBUS
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 View File

1329
   //#define FILAMENT_LCD_DISPLAY
1329
   //#define FILAMENT_LCD_DISPLAY
1330
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
798
 
796
 
799
 //#define EXPERIMENTAL_I2CBUS
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 View File

1337
   //#define FILAMENT_LCD_DISPLAY
1337
   //#define FILAMENT_LCD_DISPLAY
1338
 #endif
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 View File

1429
   //#define FILAMENT_LCD_DISPLAY
1429
   //#define FILAMENT_LCD_DISPLAY
1430
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
800
 
798
 
801
 //#define EXPERIMENTAL_I2CBUS
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 View File

1423
   //#define FILAMENT_LCD_DISPLAY
1423
   //#define FILAMENT_LCD_DISPLAY
1424
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
800
 
798
 
801
 //#define EXPERIMENTAL_I2CBUS
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 View File

1426
   //#define FILAMENT_LCD_DISPLAY
1426
   //#define FILAMENT_LCD_DISPLAY
1427
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
799
 
797
 
800
 //#define EXPERIMENTAL_I2CBUS
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 View File

1426
   //#define FILAMENT_LCD_DISPLAY
1426
   //#define FILAMENT_LCD_DISPLAY
1427
 #endif
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 View File

51
  */
51
  */
52
 #define CONFIGURATION_ADV_H_VERSION 010100
52
 #define CONFIGURATION_ADV_H_VERSION 010100
53
 
53
 
54
-#include "Conditionals_LCD.h"
55
-
56
 // @section temperature
54
 // @section temperature
57
 
55
 
58
 //===========================================================================
56
 //===========================================================================
804
 
802
 
805
 //#define EXPERIMENTAL_I2CBUS
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 View File

1429
   //#define FILAMENT_LCD_DISPLAY
1429
   //#define FILAMENT_LCD_DISPLAY
1430
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
800
 
798
 
801
 //#define EXPERIMENTAL_I2CBUS
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 View File

1340
   //#define FILAMENT_LCD_DISPLAY
1340
   //#define FILAMENT_LCD_DISPLAY
1341
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
798
 
796
 
799
 //#define EXPERIMENTAL_I2CBUS
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 View File

1331
   //#define FILAMENT_LCD_DISPLAY
1331
   //#define FILAMENT_LCD_DISPLAY
1332
 #endif
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 View File

46
  */
46
  */
47
 #define CONFIGURATION_ADV_H_VERSION 010100
47
 #define CONFIGURATION_ADV_H_VERSION 010100
48
 
48
 
49
-#include "Conditionals_LCD.h"
50
-
51
 // @section temperature
49
 // @section temperature
52
 
50
 
53
 //===========================================================================
51
 //===========================================================================
798
 
796
 
799
 //#define EXPERIMENTAL_I2CBUS
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 View File

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

+ 1
- 1
Marlin/qr_solve.h View File

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

+ 1
- 1
Marlin/servo.cpp View File

50
  * detach()              - Stop an attached servo from pulsing its i/o pin.
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
 #if HAS_SERVOS
55
 #if HAS_SERVOS
56
 
56
 

+ 1
- 1
Marlin/stepper_indirection.cpp View File

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

+ 1
- 1
Marlin/stepper_indirection.h View File

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

+ 4
- 5
Marlin/ultralcd_impl_DOGM.h View File

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

Loading…
Cancel
Save