Browse Source

Optional `M42`/`M226`; Add more features filters (#19664)

Scott Lahteine 3 years ago
parent
commit
454f9d6319

+ 5
- 0
Marlin/Configuration_adv.h View File

@@ -3560,6 +3560,11 @@
3560 3560
 //#define M100_FREE_MEMORY_WATCHER
3561 3561
 
3562 3562
 //
3563
+// M42 - Set pin states
3564
+//
3565
+//#define DIRECT_PIN_CONTROL
3566
+
3567
+//
3563 3568
 // M43 - display pin status, toggle pins, watch pins, watch endstops & toggle LED, test servo probe
3564 3569
 //
3565 3570
 //#define PINS_DEBUGGING

+ 6
- 0
Marlin/src/gcode/control/M226.cpp View File

@@ -20,6 +20,10 @@
20 20
  *
21 21
  */
22 22
 
23
+#include "../../inc/MarlinConfig.h"
24
+
25
+#if ENABLED(DIRECT_PIN_CONTROL)
26
+
23 27
 #include "../gcode.h"
24 28
 #include "../../MarlinCore.h" // for pin_is_protected and idle()
25 29
 #include "../../module/stepper.h"
@@ -50,3 +54,5 @@ void GcodeSuite::M226() {
50 54
     } // pin_state -1 0 1 && pin > -1
51 55
   } // parser.seen('P')
52 56
 }
57
+
58
+#endif // DIRECT_PIN_CONTROL

+ 6
- 1
Marlin/src/gcode/control/M42.cpp View File

@@ -20,9 +20,12 @@
20 20
  *
21 21
  */
22 22
 
23
+#include "../../inc/MarlinConfig.h"
24
+
25
+#if ENABLED(DIRECT_PIN_CONTROL)
26
+
23 27
 #include "../gcode.h"
24 28
 #include "../../MarlinCore.h" // for pin_is_protected
25
-#include "../../inc/MarlinConfig.h"
26 29
 
27 30
 #if HAS_FAN
28 31
   #include "../../module/temperature.h"
@@ -96,3 +99,5 @@ void GcodeSuite::M42() {
96 99
   extDigitalWrite(pin, pin_status);
97 100
   analogWrite(pin, pin_status);
98 101
 }
102
+
103
+#endif // DIRECT_PIN_CONTROL

+ 7
- 2
Marlin/src/gcode/gcode.cpp View File

@@ -445,7 +445,10 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
445 445
       #endif // SDSUPPORT
446 446
 
447 447
       case 31: M31(); break;                                      // M31: Report time since the start of SD print or last M109
448
-      case 42: M42(); break;                                      // M42: Change pin state
448
+
449
+      #if ENABLED(DIRECT_PIN_CONTROL)
450
+        case 42: M42(); break;                                    // M42: Change pin state
451
+      #endif
449 452
 
450 453
       #if ENABLED(PINS_DEBUGGING)
451 454
         case 43: M43(); break;                                    // M43: Read pin state
@@ -620,7 +623,9 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
620 623
         case 221: M221(); break;                                  // M221: Set Flow Percentage
621 624
       #endif
622 625
 
623
-      case 226: M226(); break;                                    // M226: Wait until a pin reaches a state
626
+      #if ENABLED(DIRECT_PIN_CONTROL)
627
+        case 226: M226(); break;                                  // M226: Wait until a pin reaches a state
628
+      #endif
624 629
 
625 630
       #if HAS_SERVOS
626 631
         case 280: M280(); break;                                  // M280: Set servo position absolute

+ 4
- 5
Marlin/src/gcode/gcode.h View File

@@ -109,7 +109,7 @@
109 109
  *        The '#' is necessary when calling from within sd files, as it stops buffer prereading
110 110
  * M33  - Get the longname version of a path. (Requires LONG_FILENAME_HOST_SUPPORT)
111 111
  * M34  - Set SD Card sorting options. (Requires SDCARD_SORT_ALPHA)
112
- * M42  - Change pin status via gcode: M42 P<pin> S<value>. LED pin assumed if P is omitted.
112
+ * M42  - Change pin status via gcode: M42 P<pin> S<value>. LED pin assumed if P is omitted. (Requires DIRECT_PIN_CONTROL)
113 113
  * M43  - Display pin status, watch pins for changes, watch endstops & toggle LED, Z servo probe test, toggle pins
114 114
  * M48  - Measure Z Probe repeatability: M48 P<points> X<pos> Y<pos> V<level> E<engage> L<legs> S<chizoid>. (Requires Z_MIN_PROBE_REPEATABILITY_TEST)
115 115
  * M73  - Set the progress percentage. (Requires LCD_SET_PROGRESS_MANUALLY)
@@ -183,7 +183,7 @@
183 183
  * M220 - Set Feedrate Percentage: "M220 S<percent>" (i.e., "FR" on the LCD)
184 184
  *        Use "M220 B" to back up the Feedrate Percentage and "M220 R" to restore it. (Requires PRUSA_MMU2)
185 185
  * M221 - Set Flow Percentage: "M221 S<percent>"
186
- * M226 - Wait until a pin is in a given state: "M226 P<pin> S<state>"
186
+ * M226 - Wait until a pin is in a given state: "M226 P<pin> S<state>" (Requires DIRECT_PIN_CONTROL)
187 187
  * M240 - Trigger a camera to take a photograph. (Requires PHOTO_GCODE)
188 188
  * M250 - Set LCD contrast: "M250 C<contrast>" (0-63). (Requires LCD support)
189 189
  * M260 - i2c Send Data (Requires EXPERIMENTAL_I2CBUS)
@@ -544,8 +544,7 @@ private:
544 544
     #endif
545 545
   #endif
546 546
 
547
-  static void M42();
548
-
547
+  TERN_(DIRECT_PIN_CONTROL, static void M42());
549 548
   TERN_(PINS_DEBUGGING, static void M43());
550 549
 
551 550
   TERN_(Z_MIN_PROBE_REPEATABILITY_TEST, static void M48());
@@ -673,7 +672,7 @@ private:
673 672
     static void M221();
674 673
   #endif
675 674
 
676
-  static void M226();
675
+  TERN_(DIRECT_PIN_CONTROL, static void M226());
677 676
 
678 677
   TERN_(PHOTO_GCODE, static void M240());
679 678
 

+ 21
- 11
Marlin/src/inc/MarlinConfig.h View File

@@ -27,21 +27,31 @@
27 27
 
28 28
 #include "MarlinConfigPre.h"
29 29
 
30
-#include "../HAL/HAL.h"
30
+#ifndef __MARLIN_DEPS__
31
+  #include "../HAL/HAL.h"
32
+#endif
31 33
 
32 34
 #include "../pins/pins.h"
33
-#include HAL_PATH(../HAL, timers.h)
34
-#include HAL_PATH(../HAL, spi_pins.h)
35
+
36
+#ifndef __MARLIN_DEPS__
37
+  #include HAL_PATH(../HAL, timers.h)
38
+  #include HAL_PATH(../HAL, spi_pins.h)
39
+#endif
35 40
 
36 41
 #include "Conditionals_post.h"
37
-#include HAL_PATH(../HAL, inc/Conditionals_post.h)
38 42
 
39
-#include "../core/types.h"  // Ahead of sanity-checks
43
+#ifndef __MARLIN_DEPS__
44
+
45
+  #include HAL_PATH(../HAL, inc/Conditionals_post.h)
46
+
47
+  #include "../core/types.h"  // Ahead of sanity-checks
48
+
49
+  #include "SanityCheck.h"
50
+  #include HAL_PATH(../HAL, inc/SanityCheck.h)
40 51
 
41
-#include "SanityCheck.h"
42
-#include HAL_PATH(../HAL, inc/SanityCheck.h)
52
+  // Include all core headers
53
+  #include "../core/language.h"
54
+  #include "../core/utility.h"
55
+  #include "../core/serial.h"
43 56
 
44
-// Include all core headers
45
-#include "../core/language.h"
46
-#include "../core/utility.h"
47
-#include "../core/serial.h"
57
+#endif

+ 11
- 3
Marlin/src/inc/MarlinConfigPre.h View File

@@ -30,7 +30,9 @@
30 30
 //
31 31
 #include <stdint.h>
32 32
 
33
-#include "../HAL/platforms.h"
33
+#ifndef __MARLIN_DEPS__
34
+  #include "../HAL/platforms.h"
35
+#endif
34 36
 
35 37
 #include "../core/boards.h"
36 38
 #include "../core/macros.h"
@@ -45,10 +47,16 @@
45 47
 #include "Version.h"
46 48
 
47 49
 #include "Conditionals_LCD.h"
48
-#include HAL_PATH(../HAL, inc/Conditionals_LCD.h)
50
+
51
+#ifndef __MARLIN_DEPS__
52
+  #include HAL_PATH(../HAL, inc/Conditionals_LCD.h)
53
+#endif
49 54
 
50 55
 #include "../core/drivers.h"
51 56
 #include "../../Configuration_adv.h"
52 57
 
53 58
 #include "Conditionals_adv.h"
54
-#include HAL_PATH(../HAL, inc/Conditionals_adv.h)
59
+
60
+#ifndef __MARLIN_DEPS__
61
+  #include HAL_PATH(../HAL, inc/Conditionals_adv.h)
62
+#endif

+ 1
- 1
Marlin/src/pins/pins.h View File

@@ -52,7 +52,7 @@
52 52
 #define HAS_FREE_AUX2_PINS !(BOTH(ULTRA_LCD, NEWPANEL) && ANY(PANEL_ONE, VIKI2, miniVIKI, MINIPANEL, REPRAPWORLD_KEYPAD))
53 53
 
54 54
 // Test the target within the included pins file
55
-#ifdef __MARLIN_PREBUILD__
55
+#ifdef __MARLIN_DEPS__
56 56
   #define NOT_TARGET(V...) 0
57 57
 #else
58 58
   #define NOT_TARGET(V...) NONE(V)

+ 6
- 41
buildroot/share/PlatformIO/scripts/common-dependencies.h View File

@@ -19,7 +19,6 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
-#pragma once
23 22
 
24 23
 /**
25 24
  * The purpose of this file is just include Marlin Configuration files,
@@ -27,44 +26,9 @@
27 26
  * Used by common-dependencies.py
28 27
  */
29 28
 
30
-#include <stdint.h>
29
+#define NUM_SERIAL 1 // Normally provided by HAL/HAL.h
31 30
 
32
-// Include platform headers
33
-//#include "../../../../Marlin/src/HAL/platforms.h"
34
-
35
-#include "../../../../Marlin/src/core/boards.h"
36
-#include "../../../../Marlin/src/core/macros.h"
37
-#include "../../../../Marlin/Configuration.h"
38
-
39
-#include "../../../../Marlin/Version.h"
40
-
41
-#include "../../../../Marlin/src/inc/Conditionals_LCD.h"
42
-
43
-#ifdef HAL_PATH
44
-  #include HAL_PATH(../../../../Marlin/src/HAL, inc/Conditionals_LCD.h)
45
-#endif
46
-
47
-#include "../../../../Marlin/src/core/drivers.h"
48
-#include "../../../../Marlin/Configuration_adv.h"
49
-
50
-#include "../../../../Marlin/src/inc/Conditionals_adv.h"
51
-
52
-#ifdef HAL_PATH
53
-  #include HAL_PATH(../../../../Marlin/src/HAL, inc/Conditionals_adv.h)
54
-#endif
55
-
56
-//#include "../../../../Marlin/src/pins/pins.h"
57
-
58
-#ifdef HAL_PATH
59
-  #include HAL_PATH(../../../../Marlin/src/HAL, timers.h)
60
-  #include HAL_PATH(../../../../Marlin/src/HAL, spi_pins.h)
61
-#endif
62
-
63
-#include "../../../../Marlin/src/inc/Conditionals_post.h"
64
-
65
-#ifdef HAL_PATH
66
-  #include HAL_PATH(../../../../Marlin/src/HAL, inc/Conditionals_post.h)
67
-#endif
31
+#include "../../../../Marlin/src/inc/MarlinConfig.h"
68 32
 
69 33
 //
70 34
 // Conditionals only used for [features]
@@ -89,6 +53,10 @@
89 53
   #define HAS_EXTRUDERS
90 54
 #endif
91 55
 
56
+#if ENABLED(DUET_SMART_EFFECTOR) && PIN_EXISTS(SMART_EFFECTOR_MOD)
57
+  #define HAS_SMART_EFF_MOD
58
+#endif
59
+
92 60
 #if HAS_LCD_MENU
93 61
   #if ENABLED(BACKLASH_GCODE)
94 62
     #define HAS_MENU_BACKLASH
@@ -145,6 +113,3 @@
145 113
     #define HAS_MENU_UBL
146 114
   #endif
147 115
 #endif
148
-
149
-// Include pins for the current board. Platform tests will be skipped. No HAL-defined pins.
150
-#include "../../../../Marlin/src/pins/pins.h"

+ 7
- 1
buildroot/share/PlatformIO/scripts/common-dependencies.py View File

@@ -39,6 +39,12 @@ def parse_pkg_uri(spec):
39 39
 FEATURE_CONFIG = {}
40 40
 
41 41
 def add_to_feat_cnf(feature, flines):
42
+
43
+	try:
44
+		feat = FEATURE_CONFIG[feature]
45
+	except:
46
+		FEATURE_CONFIG[feature] = {}
47
+
42 48
 	feat = FEATURE_CONFIG[feature]
43 49
 	atoms = re.sub(',\\s*', '\n', flines).strip().split('\n')
44 50
 	for dep in atoms:
@@ -238,7 +244,7 @@ def load_marlin_features():
238 244
 		else:
239 245
 			cmd += ['-D' + s]
240 246
 
241
-	cmd += ['-D__MARLIN_PREBUILD__ -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h']
247
+	cmd += ['-D__MARLIN_DEPS__ -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h']
242 248
 	cmd = ' '.join(cmd)
243 249
 	blab(cmd)
244 250
 	define_list = subprocess.check_output(cmd, shell=True).splitlines()

+ 37
- 13
platformio.ini View File

@@ -27,6 +27,7 @@ include_dir  = Marlin
27 27
 [common]
28 28
 default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
29 29
   -<src/lcd/HD44780> -<src/lcd/TFTGLCD> -<src/lcd/dwin> -<src/lcd/dogm> -<src/lcd/tft>
30
+  -<src/HAL/STM32/tft> -<src/HAL/STM32F1/tft>
30 31
   -<src/lcd/menu>
31 32
   -<src/lcd/menu/game/game.cpp> -<src/lcd/menu/game/brickout.cpp> -<src/lcd/menu/game/invaders.cpp>
32 33
   -<src/lcd/menu/game/maze.cpp> -<src/lcd/menu/game/snake.cpp>
@@ -53,10 +54,13 @@ default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
53 54
   -<src/lcd/extui/example.cpp>
54 55
   -<src/lcd/extui/malyan_lcd.cpp>
55 56
   -<src/lcd/extui/lib/ftdi_eve_touch_ui>
56
-  -<src/lcd/extui/anycubic_chiron_lcd.cpp>
57
+  -<src/lcd/extui/anycubic_chiron_lcd.cpp> -<src/lcd/extui/lib/anycubic_chiron>
57 58
   -<src/lcd/extui/anycubic_i3mega_lcd.cpp> -<src/lcd/extui/lib/anycubic_i3mega>
58 59
   -<src/lcd/lcdprint.cpp>
60
+  -<src/lcd/touch/touch_buttons.cpp>
59 61
   -<src/sd/usb_flashdrive>
62
+  -<src/HAL/shared/backtrace>
63
+  -<src/feature/babystep.cpp>
60 64
   -<src/feature/backlash.cpp>
61 65
   -<src/feature/baricuda.cpp> -<src/gcode/feature/baricuda>
62 66
   -<src/feature/bedlevel/abl> -<src/gcode/bedlevel/abl>
@@ -65,7 +69,7 @@ default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
65 69
   -<src/feature/binary_stream.cpp> -<src/libs/heatshrink>
66 70
   -<src/feature/bltouch.cpp>
67 71
   -<src/feature/cancel_object.cpp> -<src/gcode/feature/cancel>
68
-  -<src/feature/caselight> -<src/gcode/feature/caselight>
72
+  -<src/feature/caselight.cpp> -<src/gcode/feature/caselight>
69 73
   -<src/feature/closedloop.cpp>
70 74
   -<src/feature/controllerfan.cpp> -<src/gcode/feature/controllerfan>
71 75
   -<src/feature/dac> -<src/feature/digipot>
@@ -80,6 +84,7 @@ default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
80 84
   -<src/feature/joystick.cpp>
81 85
   -<src/feature/leds/blinkm.cpp>
82 86
   -<src/feature/leds/leds.cpp>
87
+  -<src/feature/leds/neopixel.cpp>
83 88
   -<src/feature/leds/pca9533.cpp>
84 89
   -<src/feature/leds/pca9632.cpp>
85 90
   -<src/feature/leds/printer_event_leds.cpp>
@@ -95,7 +100,7 @@ default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
95 100
   -<src/feature/probe_temp_comp.cpp>
96 101
   -<src/feature/runout.cpp> -<src/gcode/feature/runout>
97 102
   -<src/feature/snmm.cpp>
98
-  -<src/feature/solenoid.cpp>
103
+  -<src/feature/solenoid.cpp> -<src/gcode/control/M380_M381.cpp>
99 104
   -<src/feature/spindle_laser.cpp> -<src/gcode/control/M3-M5.cpp>
100 105
   -<src/feature/tmc_util.cpp> -<src/module/stepper/trinamic.cpp>
101 106
   -<src/feature/twibus.cpp>
@@ -106,7 +111,7 @@ default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
106 111
   -<src/gcode/bedlevel/M420.cpp>
107 112
   -<src/gcode/calibrate/G33.cpp>
108 113
   -<src/gcode/calibrate/G34_M422.cpp>
109
-  -<src/gcode/calibrate/G76_M871.cpp>
114
+  -<src/gcode/calibrate/G76_M192_M871.cpp>
110 115
   -<src/gcode/calibrate/G425.cpp>
111 116
   -<src/gcode/calibrate/M12.cpp>
112 117
   -<src/gcode/calibrate/M48.cpp>
@@ -114,14 +119,19 @@ default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
114 119
   -<src/gcode/calibrate/M425.cpp>
115 120
   -<src/gcode/calibrate/M666.cpp>
116 121
   -<src/gcode/calibrate/M852.cpp>
122
+  -<src/gcode/control/M42.cpp> -<src/gcode/control/M226.cpp>
117 123
   -<src/gcode/config/M43.cpp>
118 124
   -<src/gcode/config/M217.cpp>
119 125
   -<src/gcode/config/M218.cpp>
120 126
   -<src/gcode/config/M221.cpp>
121 127
   -<src/gcode/config/M281.cpp>
128
+  -<src/gcode/config/M301.cpp>
122 129
   -<src/gcode/config/M302.cpp>
130
+  -<src/gcode/config/M304.cpp>
123 131
   -<src/gcode/config/M305.cpp>
124 132
   -<src/gcode/config/M540.cpp>
133
+  -<src/gcode/config/M575.cpp>
134
+  -<src/gcode/config/M672.cpp>
125 135
   -<src/gcode/control/M7-M9.cpp>
126 136
   -<src/gcode/control/M211.cpp>
127 137
   -<src/gcode/control/M605.cpp>
@@ -169,8 +179,10 @@ default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
169 179
   -<src/gcode/scara>
170 180
   -<src/gcode/sd>
171 181
   -<src/gcode/temp/M104_M109.cpp>
182
+  -<src/gcode/temp/M155.cpp>
172 183
   -<src/gcode/units/G20_G21.cpp>
173 184
   -<src/gcode/units/M149.cpp>
185
+  -<src/libs/BL24CXX.cpp> -<src/libs/W25Qxx.cpp>
174 186
   -<src/libs/L64XX> -<src/module/stepper/L64xx.cpp>
175 187
   -<src/libs/hex_print.cpp>
176 188
   -<src/libs/least_squares_fit.cpp>
@@ -214,9 +226,13 @@ HAS_WIRED_LCD           = src_filter=+<src/lcd/lcdprint.cpp>
214 226
 HAS_MARLINUI_HD44780    = src_filter=+<src/lcd/HD44780>
215 227
 HAS_MARLINUI_U8GLIB     = U8glib-HAL@~0.4.1
216 228
                           src_filter=+<src/lcd/dogm>
229
+HAS_(FSMC|SPI)_TFT      = src_filter=+<src/HAL/STM32/tft> +<src/HAL/STM32F1/tft>
230
+HAS_FSMC_TFT            = src_filter=+<src/HAL/STM32/tft/tft_fsmc.cpp> +<src/HAL/STM32F1/tft/tft_fsmc.cpp>
231
+HAS_SPI_TFT             = src_filter=+<src/HAL/STM32/tft/tft_spi.cpp> +<src/HAL/STM32F1/tft/tft_spi.cpp>
217 232
 HAS_GRAPHICAL_TFT       = src_filter=+<src/lcd/tft>
218 233
 DWIN_CREALITY_LCD       = src_filter=+<src/lcd/dwin>
219 234
 IS_TFTGLCD_PANEL        = src_filter=+<src/lcd/TFTGLCD>
235
+HAS_TOUCH_XPT2046       = src_filter=+<src/lcd/touch/touch_buttons.cpp>
220 236
 HAS_LCD_MENU            = src_filter=+<src/lcd/menu>
221 237
 HAS_GAMES               = src_filter=+<src/lcd/menu/game/game.cpp>
222 238
 MARLIN_BRICKOUT         = src_filter=+<src/lcd/menu/game/brickout.cpp>
@@ -242,7 +258,7 @@ HAS_MENU_TEMPERATURE    = src_filter=+<src/lcd/menu/menu_temperature.cpp>
242 258
 HAS_MENU_TMC            = src_filter=+<src/lcd/menu/menu_tmc.cpp>
243 259
 HAS_MENU_TOUCH_SCREEN   = src_filter=+<src/lcd/menu/menu_touch_screen.cpp>
244 260
 HAS_MENU_UBL            = src_filter=+<src/lcd/menu/menu_ubl.cpp>
245
-ANYCUBIC_LCD_CHIRON     = src_filter=+<src/lcd/extui/anycubic_chiron_lcd.cpp>
261
+ANYCUBIC_LCD_CHIRON     = src_filter=+<src/lcd/extui/anycubic_chiron_lcd.cpp> +<src/lcd/extui/lib/anycubic_chiron>
246 262
 ANYCUBIC_LCD_I3MEGA     = src_filter=+<src/lcd/extui/anycubic_i3mega_lcd.cpp> +<src/lcd/extui/lib/anycubic_i3mega>
247 263
 HAS_DGUS_LCD            = src_filter=+<src/lcd/extui/lib/dgus> +<src/lcd/extui/dgus_lcd.cpp>
248 264
 TOUCH_UI_FTDI_EVE       = src_filter=+<src/lcd/extui/lib/ftdi_eve_touch_ui>
@@ -258,13 +274,15 @@ BARICUDA                = src_filter=+<src/feature/baricuda.cpp> +<src/gcode/fea
258 274
 BINARY_FILE_TRANSFER    = src_filter=+<src/feature/binary_stream.cpp> +<src/libs/heatshrink>
259 275
 BLTOUCH                 = src_filter=+<src/feature/bltouch.cpp>
260 276
 CANCEL_OBJECTS          = src_filter=+<src/feature/cancel_object.cpp> +<src/gcode/feature/cancel>
261
-CASE_LIGHT_ENABLE       = src_filter=+<src/feature/caselight> +<src/gcode/feature/caselight>
277
+CASE_LIGHT_ENABLE       = src_filter=+<src/feature/caselight.cpp> +<src/gcode/feature/caselight>
262 278
 EXTERNAL_CLOSED_LOOP_CONTROLLER = src_filter=+<src/feature/closedloop.cpp> +<src/gcode/calibrate/M12.cpp>
263 279
 USE_CONTROLLER_FAN      = src_filter=+<src/feature/controllerfan.cpp>
264 280
 DAC_STEPPER_CURRENT     = src_filter=+<src/feature/dac>
265 281
 DIRECT_STEPPING         = src_filter=+<src/feature/direct_stepping.cpp> +<src/gcode/motion/G6.cpp>
266 282
 EMERGENCY_PARSER        = src_filter=+<src/feature/e_parser.cpp> -<src/gcode/control/M108_*.cpp>
267 283
 I2C_POSITION_ENCODERS   = src_filter=+<src/feature/encoder_i2c.cpp>
284
+IIC_BL24CXX_EEPROM      = src_filter=+<src/libs/BL24CXX.cpp>
285
+HAS_SPI_FLASH           = src_filter=+<src/libs/W25Qxx.cpp>
268 286
 HAS_FANMUX              = src_filter=+<src/feature/fanmux.cpp>
269 287
 FILAMENT_WIDTH_SENSOR   = src_filter=+<src/feature/filwidth.cpp> +<src/gcode/feature/filwidth>
270 288
 FWRETRACT               = src_filter=+<src/feature/fwretract.cpp> +<src/gcode/feature/fwretract>
@@ -285,10 +303,10 @@ ADVANCED_PAUSE_FEATURE  = src_filter=+<src/feature/pause.cpp> +<src/gcode/featur
285 303
 AUTO_POWER_CONTROL      = src_filter=+<src/feature/power.cpp>
286 304
 HAS_POWER_MONITOR       = src_filter=+<src/feature/power_monitor.cpp> +<src/gcode/feature/power_monitor>
287 305
 POWER_LOSS_RECOVERY     = src_filter=+<src/feature/powerloss.cpp> +<src/gcode/feature/powerloss>
288
-PROBE_TEMP_COMPENSATION = src_filter=+<src/feature/probe_temp_comp.cpp> +<src/gcode/calibrate/G76_M871.cpp>
306
+PROBE_TEMP_COMPENSATION = src_filter=+<src/feature/probe_temp_comp.cpp> +<src/gcode/calibrate/G76_M192_M871.cpp>
289 307
 HAS_FILAMENT_SENSOR     = src_filter=+<src/feature/runout.cpp> +<src/gcode/feature/runout>
290 308
 MK2_MULTIPLEXER         = src_filter=+<src/feature/snmm.cpp>
291
-EXT_SOLENOID|MANUAL_SOLENOID_CONTROL = src_filter=+<src/feature/solenoid.cpp>
309
+EXT_SOLENOID|MANUAL_SOLENOID_CONTROL = src_filter=+<src/feature/solenoid.cpp> +<src/gcode/control/M380_M381.cpp>
292 310
 HAS_CUTTER              = src_filter=+<src/feature/spindle_laser.cpp> +<src/gcode/control/M3-M5.cpp>
293 311
 EXPERIMENTAL_I2CBUS     = src_filter=+<src/feature/twibus.cpp> +<src/gcode/feature/i2c>
294 312
 Z_STEPPER_AUTO_ALIGN    = src_filter=+<src/feature/z_stepper_align.cpp> +<src/gcode/calibrate/G34_M422.cpp>
@@ -304,14 +322,19 @@ BACKLASH_GCODE          = src_filter=+<src/gcode/calibrate/M425.cpp>
304 322
 IS_KINEMATIC            = src_filter=+<src/gcode/calibrate/M665.cpp>
305 323
 HAS_EXTRA_ENDSTOPS      = src_filter=+<src/gcode/calibrate/M666.cpp>
306 324
 SKEW_CORRECTION_GCODE   = src_filter=+<src/gcode/calibrate/M852.cpp>
307
-PINS_DEBUGGING          = src_filter=-<src/gcode/config/M43.cpp>
325
+DIRECT_PIN_CONTROL      = src_filter=+<src/gcode/control/M42.cpp> +<src/gcode/control/M226.cpp>
326
+PINS_DEBUGGING          = src_filter=+<src/gcode/config/M43.cpp>
308 327
 NO_VOLUMETRICS          = src_filter=-<src/gcode/config/M200-M205.cpp>
309 328
 HAS_MULTI_EXTRUDER      = src_filter=+<src/gcode/config/M217.cpp>
310 329
 HAS_HOTEND_OFFSET       = src_filter=+<src/gcode/config/M218.cpp>
311 330
 EDITABLE_SERVO_ANGLES   = src_filter=+<src/gcode/config/M281.cpp>
331
+PIDTEMP                 = src_filter=+<src/gcode/config/M301.cpp>
312 332
 PREVENT_COLD_EXTRUSION  = src_filter=+<src/gcode/config/M302.cpp>
333
+PIDTEMPBED              = src_filter=+<src/gcode/config/M304.cpp>
313 334
 HAS_USER_THERMISTORS    = src_filter=+<src/gcode/config/M305.cpp>
314 335
 SD_ABORT_ON_ENDSTOP_HIT = src_filter=+<src/gcode/config/M540.cpp>
336
+BAUD_RATE_GCODE         = src_filter=+<src/gcode/config/M575.cpp>
337
+HAS_SMART_EFF_MOD       = src_filter=+<src/gcode/config/M672.cpp>
315 338
 COOLANT_CONTROL         = src_filter=+<src/gcode/control/M7-M9.cpp>
316 339
 HAS_SOFTWARE_ENDSTOPS   = src_filter=+<src/gcode/control/M211.cpp>
317 340
 HAS_DUPLICATION_MODE    = src_filter=+<src/gcode/control/M605.cpp>
@@ -336,12 +359,13 @@ LCD_SET_PROGRESS_MANUALLY = src_filter=+<src/gcode/lcd/M73.cpp>
336 359
 TOUCH_SCREEN_CALIBRATION = src_filter=+<src/gcode/lcd/M995.cpp>
337 360
 ARC_SUPPORT             = src_filter=+<src/gcode/motion/G2_G3.cpp>
338 361
 GCODE_MOTION_MODES      = src_filter=+<src/gcode/motion/G80.cpp>
339
-BABYSTEPPING            = src_filter=+<src/gcode/motion/M290.cpp>
362
+BABYSTEPPING            = src_filter=+<src/gcode/motion/M290.cpp> +<src/feature/babystep.cpp>
340 363
 Z_PROBE_SLED            = src_filter=+<src/gcode/probe/G31_G32.cpp>
341 364
 G38_PROBE_TARGET        = src_filter=+<src/gcode/probe/G38.cpp>
342 365
 MAGNETIC_PARKING_EXTRUDER = src_filter=+<src/gcode/probe/M951.cpp>
343 366
 SDSUPPORT               = src_filter=+<src/gcode/sd>
344 367
 HAS_EXTRUDERS           = src_filter=+<src/gcode/temp/M104_M109.cpp> +<src/gcode/config/M221.cpp>
368
+AUTO_REPORT_TEMPERATURES = src_filter=+<src/gcode/temp/M155.cpp>
345 369
 INCH_MODE_SUPPORT       = src_filter=+<src/gcode/units/G20_G21.cpp>
346 370
 TEMPERATURE_UNITS_SUPPORT = src_filter=+<src/gcode/units/M149.cpp>
347 371
 NEED_HEX_PRINT          = src_filter=+<src/libs/hex_print.cpp>
@@ -559,7 +583,7 @@ extends       = env:at90usb1286_cdc
559 583
 [env:DUE]
560 584
 platform      = atmelsam
561 585
 board         = due
562
-src_filter    = ${common.default_src_filter} +<src/HAL/DUE>
586
+src_filter    = ${common.default_src_filter} +<src/HAL/DUE> +<src/HAL/shared/backtrace>
563 587
 
564 588
 [env:DUE_USB]
565 589
 platform      = atmelsam
@@ -635,7 +659,7 @@ lib_ldf_mode      = off
635 659
 lib_compat_mode   = strict
636 660
 extra_scripts     = ${common.extra_scripts}
637 661
   Marlin/src/HAL/LPC1768/upload_extra_script.py
638
-src_filter        = ${common.default_src_filter} +<src/HAL/LPC1768>
662
+src_filter        = ${common.default_src_filter} +<src/HAL/LPC1768> +<src/HAL/shared/backtrace>
639 663
 lib_deps          = ${common.lib_deps}
640 664
   Servo
641 665
 custom_marlin.USES_LIQUIDCRYSTAL = LiquidCrystal@1.0.0
@@ -674,7 +698,7 @@ build_flags   = ${common.build_flags}
674 698
   -DUSBCON -DUSBD_USE_CDC
675 699
   -DTIM_IRQ_PRIO=13
676 700
 build_unflags = -std=gnu++11
677
-src_filter    = ${common.default_src_filter} +<src/HAL/STM32>
701
+src_filter    = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/shared/backtrace>
678 702
 
679 703
 #
680 704
 # HAL/STM32F1 Common Environment values

Loading…
Cancel
Save