Browse Source

Update SD card connection / sharing options (#14325)

Andy Shaw 5 years ago
parent
commit
064177154c
100 changed files with 1493 additions and 853 deletions
  1. 16
    8
      Marlin/Configuration_adv.h
  2. 0
    8
      Marlin/src/HAL/HAL_LPC1768/SanityCheck.h
  3. 4
    4
      Marlin/src/HAL/HAL_LPC1768/main.cpp
  4. 1
    1
      Marlin/src/Marlin.cpp
  5. 11
    2
      Marlin/src/core/drivers.h
  6. 15
    0
      Marlin/src/inc/Conditionals_post.h
  7. 6
    0
      Marlin/src/inc/SanityCheck.h
  8. 6
    4
      Marlin/src/lcd/ultralcd.cpp
  9. 8
    12
      Marlin/src/pins/pins_AZSMZ_MINI.h
  10. 17
    24
      Marlin/src/pins/pins_AZTEEG_X5_MINI.h
  11. 18
    28
      Marlin/src/pins/pins_BIGTREE_SKR_V1.3.h
  12. 18
    27
      Marlin/src/pins/pins_BIQU_SKR_V1.1.h
  13. 9
    19
      Marlin/src/pins/pins_COHESION3D_REMIX.h
  14. 11
    25
      Marlin/src/pins/pins_MKS_SBASE.h
  15. 9
    19
      Marlin/src/pins/pins_RAMPS_RE_ARM.h
  16. 16
    8
      config/default/Configuration_adv.h
  17. 16
    8
      config/examples/3DFabXYZ/Migbot/Configuration_adv.h
  18. 16
    8
      config/examples/AlephObjects/TAZ4/Configuration_adv.h
  19. 16
    8
      config/examples/AliExpress/UM2pExt/Configuration_adv.h
  20. 16
    8
      config/examples/Anet/A2/Configuration_adv.h
  21. 16
    8
      config/examples/Anet/A2plus/Configuration_adv.h
  22. 16
    8
      config/examples/Anet/A6/Configuration_adv.h
  23. 16
    8
      config/examples/Anet/A8/Configuration_adv.h
  24. 16
    8
      config/examples/Anet/A8plus/Configuration_adv.h
  25. 16
    8
      config/examples/Anet/E16/Configuration_adv.h
  26. 16
    8
      config/examples/AnyCubic/i3/Configuration_adv.h
  27. 16
    8
      config/examples/ArmEd/Configuration_adv.h
  28. 16
    8
      config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
  29. 16
    8
      config/examples/BIBO/TouchX/default/Configuration_adv.h
  30. 16
    8
      config/examples/BQ/Hephestos/Configuration_adv.h
  31. 16
    8
      config/examples/BQ/Hephestos_2/Configuration_adv.h
  32. 16
    8
      config/examples/BQ/WITBOX/Configuration_adv.h
  33. 16
    8
      config/examples/Cartesio/Configuration_adv.h
  34. 16
    8
      config/examples/Creality/CR-10/Configuration_adv.h
  35. 16
    8
      config/examples/Creality/CR-10S/Configuration_adv.h
  36. 16
    8
      config/examples/Creality/CR-10_5S/Configuration_adv.h
  37. 16
    8
      config/examples/Creality/CR-10mini/Configuration_adv.h
  38. 16
    8
      config/examples/Creality/CR-8/Configuration_adv.h
  39. 16
    8
      config/examples/Creality/Ender-2/Configuration_adv.h
  40. 16
    8
      config/examples/Creality/Ender-3/Configuration_adv.h
  41. 16
    8
      config/examples/Creality/Ender-4/Configuration_adv.h
  42. 16
    8
      config/examples/Dagoma/Disco Ultimate/Configuration_adv.h
  43. 16
    8
      config/examples/EVNOVO (Artillery)/Sidewinder X1/Configuration_adv.h
  44. 16
    8
      config/examples/Einstart-S/Configuration_adv.h
  45. 16
    8
      config/examples/Felix/Configuration_adv.h
  46. 16
    8
      config/examples/FlashForge/CreatorPro/Configuration_adv.h
  47. 16
    8
      config/examples/FolgerTech/i3-2020/Configuration_adv.h
  48. 16
    8
      config/examples/Formbot/Raptor/Configuration_adv.h
  49. 16
    8
      config/examples/Formbot/T_Rex_2+/Configuration_adv.h
  50. 16
    8
      config/examples/Formbot/T_Rex_3/Configuration_adv.h
  51. 16
    8
      config/examples/Fysetc/AIO_II/Configuration_adv.h
  52. 16
    8
      config/examples/Fysetc/CHEETAH/Configuration_adv.h
  53. 16
    8
      config/examples/Fysetc/F6_13/Configuration_adv.h
  54. 16
    8
      config/examples/Geeetech/A10/Configuration_adv.h
  55. 16
    8
      config/examples/Geeetech/A10M/Configuration_adv.h
  56. 16
    8
      config/examples/Geeetech/A20M/Configuration_adv.h
  57. 16
    8
      config/examples/Geeetech/MeCreator2/Configuration_adv.h
  58. 16
    8
      config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h
  59. 16
    8
      config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h
  60. 16
    8
      config/examples/Infitary/i3-M508/Configuration_adv.h
  61. 16
    8
      config/examples/JGAurora/A1/Configuration_adv.h
  62. 16
    8
      config/examples/JGAurora/A5/Configuration_adv.h
  63. 16
    8
      config/examples/JGAurora/A5S/Configuration_adv.h
  64. 16
    8
      config/examples/MakerParts/Configuration_adv.h
  65. 16
    8
      config/examples/Malyan/M150/Configuration_adv.h
  66. 16
    8
      config/examples/Malyan/M200/Configuration_adv.h
  67. 16
    8
      config/examples/Micromake/C1/enhanced/Configuration_adv.h
  68. 16
    8
      config/examples/Mks/Robin/Configuration_adv.h
  69. 16
    8
      config/examples/Mks/Sbase/Configuration_adv.h
  70. 16
    8
      config/examples/RapideLite/RL200/Configuration_adv.h
  71. 16
    8
      config/examples/RigidBot/Configuration_adv.h
  72. 16
    8
      config/examples/SCARA/Configuration_adv.h
  73. 16
    8
      config/examples/STM32/Black_STM32F407VET6/Configuration_adv.h
  74. 16
    8
      config/examples/Sanguinololu/Configuration_adv.h
  75. 16
    8
      config/examples/Tevo/Tarantula Pro/Configuration_adv.h
  76. 16
    8
      config/examples/TheBorg/Configuration_adv.h
  77. 16
    8
      config/examples/TinyBoy2/Configuration_adv.h
  78. 16
    8
      config/examples/Tronxy/X3A/Configuration_adv.h
  79. 16
    8
      config/examples/Tronxy/X5S-2E/Configuration_adv.h
  80. 16
    8
      config/examples/UltiMachine/Archim1/Configuration_adv.h
  81. 16
    8
      config/examples/UltiMachine/Archim2/Configuration_adv.h
  82. 16
    8
      config/examples/VORONDesign/Configuration_adv.h
  83. 16
    8
      config/examples/Velleman/K8200/Configuration_adv.h
  84. 16
    8
      config/examples/Velleman/K8400/Configuration_adv.h
  85. 16
    8
      config/examples/WASP/PowerWASP/Configuration_adv.h
  86. 16
    8
      config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  87. 16
    8
      config/examples/delta/Anycubic/Kossel/Configuration_adv.h
  88. 16
    8
      config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  89. 16
    8
      config/examples/delta/FLSUN/kossel/Configuration_adv.h
  90. 16
    8
      config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  91. 16
    8
      config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h
  92. 16
    8
      config/examples/delta/MKS/SBASE/Configuration_adv.h
  93. 16
    8
      config/examples/delta/Tevo Little Monster/Configuration_adv.h
  94. 16
    8
      config/examples/delta/generic/Configuration_adv.h
  95. 16
    8
      config/examples/delta/kossel_mini/Configuration_adv.h
  96. 16
    8
      config/examples/delta/kossel_xl/Configuration_adv.h
  97. 16
    8
      config/examples/gCreate/gMax1.5+/Configuration_adv.h
  98. 16
    8
      config/examples/makibox/Configuration_adv.h
  99. 16
    8
      config/examples/tvrrug/Round2/Configuration_adv.h
  100. 0
    0
      config/examples/wt150/Configuration_adv.h

+ 16
- 8
Marlin/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 0
- 8
Marlin/src/HAL/HAL_LPC1768/SanityCheck.h View File

@@ -69,11 +69,3 @@
69 69
 #if IS_RE_ARM_BOARD && ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) && HAS_DRIVER(TMC2130) && DISABLED(TMC_USE_SW_SPI)
70 70
   #error "Re-ARM with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER and TMC2130 require TMC_USE_SW_SPI"
71 71
 #endif
72
-
73
-#if 1 < (ENABLED(LPC_SD_CUSTOM_CABLE) + ENABLED(LPC_SD_LCD) + ENABLED(LPC_SD_ONBOARD))
74
-  #error "Enable only one of LPC_SD_CUSTOM_CABLE, LPC_SD_LCD, or LPC_SD_ONBOARD."
75
-#endif
76
-
77
-#if 1 < (ENABLED(USB_SD_DISABLED) + ENABLED(USB_SD_ONBOARD))
78
-  #error "Enable only one of USB_SD_DISABLED or USB_SD_ONBOARD."
79
-#endif

+ 4
- 4
Marlin/src/HAL/HAL_LPC1768/main.cpp View File

@@ -81,8 +81,8 @@ void HAL_init() {
81 81
     OUT_WRITE(SS_PIN, HIGH);
82 82
   #endif
83 83
 
84
-  #if defined(ONBOARD_SD_CS) && ONBOARD_SD_CS > -1
85
-    OUT_WRITE(ONBOARD_SD_CS, HIGH);
84
+  #if PIN_EXISTS(ONBOARD_SD_CS) && ONBOARD_SD_CS_PIN != SS_PIN
85
+    OUT_WRITE(ONBOARD_SD_CS_PIN, HIGH);
86 86
   #endif
87 87
 
88 88
   USB_Init();                               // USB Initialization
@@ -90,7 +90,7 @@ void HAL_init() {
90 90
   delay(1000);                              // Give OS time to notice
91 91
   USB_Connect(TRUE);
92 92
 
93
-  #if DISABLED(USB_SD_DISABLED)
93
+  #if !BOTH(SHARED_SD_CARD, INIT_SDCARD_ON_BOOT) && DISABLED(NO_SD_HOST_DRIVE)
94 94
     MSC_SD_Init(0);                         // Enable USB SD card access
95 95
   #endif
96 96
 
@@ -117,7 +117,7 @@ void HAL_init() {
117 117
 
118 118
 // HAL idle task
119 119
 void HAL_idletask(void) {
120
-  #if BOTH(SDSUPPORT, SHARED_SD_CARD)
120
+  #if ENABLED(SHARED_SD_CARD)
121 121
     // If Marlin is using the SD card we need to lock it to prevent access from
122 122
     // a PC via USB.
123 123
     // Other HALs use IS_SD_PRINTING() and IS_SD_FILE_OPEN() to check for access but

+ 1
- 1
Marlin/src/Marlin.cpp View File

@@ -1098,7 +1098,7 @@ void setup() {
1098 1098
     init_closedloop();
1099 1099
   #endif
1100 1100
 
1101
-  #if ENABLED(SDSUPPORT) && DISABLED(ULTRA_LCD)
1101
+  #if ENABLED(INIT_SDCARD_ON_BOOT) && DISABLED(ULTRA_LCD)
1102 1102
     card.beginautostart();
1103 1103
   #endif
1104 1104
 

+ 11
- 2
Marlin/src/core/drivers.h View File

@@ -48,8 +48,8 @@
48 48
 #define _TMC5160            5160
49 49
 #define _TMC5160_STANDALONE 5161
50 50
 
51
-#define _ACTUAL(V) _CAT(_, V)
52
-#define _AXIS_DRIVER_TYPE(A,T) (defined(A##_DRIVER_TYPE) && _ACTUAL(A##_DRIVER_TYPE) == _CAT(_, T))
51
+#define _DRIVER_ID(V) _CAT(_, V)
52
+#define _AXIS_DRIVER_TYPE(A,T) (_DRIVER_ID(A##_DRIVER_TYPE) == _CAT(_, T))
53 53
 
54 54
 #define AXIS_DRIVER_TYPE_X(T) _AXIS_DRIVER_TYPE(X,T)
55 55
 #define AXIS_DRIVER_TYPE_Y(T) _AXIS_DRIVER_TYPE(Y,T)
@@ -116,3 +116,12 @@
116 116
                                    || AXIS_DRIVER_TYPE(A,TMC2209) \
117 117
                                    || AXIS_DRIVER_TYPE(A,TMC5130) \
118 118
                                    || AXIS_DRIVER_TYPE(A,TMC5160) )
119
+
120
+//
121
+// Stretching 'drivers.h' to include LPC SD options
122
+//
123
+#define _SDCARD_LCD          1
124
+#define _SDCARD_ONBOARD      2
125
+#define _SDCARD_CUSTOM_CABLE 3
126
+#define _SDCARD_ID(V) _CAT(_SDCARD_, V)
127
+#define SD_CONNECTION_IS(V) (_SDCARD_ID(SDCARD_CONNECTION) == _SDCARD_ID(V))

+ 15
- 0
Marlin/src/inc/Conditionals_post.h View File

@@ -1727,3 +1727,18 @@
1727 1727
     #define LCD_HEIGHT 2
1728 1728
   #endif
1729 1729
 #endif
1730
+
1731
+//
1732
+// The external SD card is not used. Hardware SPI is used to access the card.
1733
+// When sharing the SD card with a PC we want the menu options to
1734
+// mount/unmount the card and refresh it. So we disable card detect.
1735
+//
1736
+#if ENABLED(SDSUPPORT)
1737
+  #if SD_CONNECTION_IS(ONBOARD) && DISABLED(NO_SD_HOST_DRIVE)
1738
+    #undef SD_DETECT_PIN
1739
+    #define SHARED_SD_CARD
1740
+  #endif
1741
+  #if DISABLED(SHARED_SD_CARD)
1742
+    #define INIT_SDCARD_ON_BOOT
1743
+  #endif
1744
+#endif

+ 6
- 0
Marlin/src/inc/SanityCheck.h View File

@@ -362,6 +362,12 @@
362 362
   #error "MENU_ITEM_CASE_LIGHT is now CASE_LIGHT_MENU. Please update your configuration."
363 363
 #elif defined(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
364 364
   #error "ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED is now SD_ABORT_ON_ENDSTOP_HIT. Please update your Configuration_adv.h."
365
+#elif defined(LPC_SD_LCD) || defined(LPC_SD_ONBOARD) || defined(LPC_SD_CUSTOM_CABLE)
366
+  #error "LPC_SD_(LCD|ONBOARD|CUSTOM_CABLE) are now SDCARD_CONNECTION. Please update your Configuration_adv.h."
367
+#elif defined(USB_SD_DISABLED)
368
+  #error "USB_SD_DISABLED is now NO_SD_HOST_DRIVE. Please update your Configuration_adv.h."
369
+#elif defined(USB_SD_ONBOARD)
370
+  #error "USB_SD_ONBOARD is obsolete. Disable NO_SD_HOST_DRIVE instead."
365 371
 #endif
366 372
 
367 373
 #define BOARD_MKS_13     -47

+ 6
- 4
Marlin/src/lcd/ultralcd.cpp View File

@@ -104,7 +104,7 @@
104 104
   #endif
105 105
 #endif
106 106
 
107
-#if ENABLED(SDSUPPORT)
107
+#if ENABLED(INIT_SDCARD_ON_BOOT)
108 108
   uint8_t lcd_sd_status;
109 109
 #endif
110 110
 
@@ -319,7 +319,9 @@ void MarlinUI::init() {
319 319
     #if PIN_EXISTS(SD_DETECT)
320 320
       SET_INPUT_PULLUP(SD_DETECT_PIN);
321 321
     #endif
322
-    lcd_sd_status = 2; // UNKNOWN
322
+    #if ENABLED(INIT_SDCARD_ON_BOOT)
323
+      lcd_sd_status = 2; // UNKNOWN
324
+    #endif
323 325
   #endif
324 326
 
325 327
   #if HAS_ENCODER_ACTION && HAS_SLOW_BUTTONS
@@ -770,7 +772,7 @@ void MarlinUI::update() {
770 772
 
771 773
   #endif // HAS_LCD_MENU
772 774
 
773
-  #if ENABLED(SDSUPPORT)
775
+  #if ENABLED(INIT_SDCARD_ON_BOOT)
774 776
 
775 777
     const uint8_t sd_status = (uint8_t)IS_SD_INSERTED();
776 778
     if (sd_status != lcd_sd_status && detected()) {
@@ -811,7 +813,7 @@ void MarlinUI::update() {
811 813
       #endif
812 814
     }
813 815
 
814
-  #endif // SDSUPPORT
816
+  #endif // INIT_SDCARD_ON_BOOT
815 817
 
816 818
   if (ELAPSED(ms, next_lcd_update_ms)
817 819
     #if HAS_GRAPHICAL_LCD

+ 8
- 12
Marlin/src/pins/pins_AZSMZ_MINI.h View File

@@ -86,7 +86,7 @@
86 86
 #define FAN1_PIN           P0_26
87 87
 
88 88
 #define LCD_SDSS           P0_16   // LCD SD chip select
89
-#define ONBOARD_SD_CS      P0_06   // On board SD chip select
89
+#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
90 90
 
91 91
 #if ENABLED(AZSMZ_12864)
92 92
   #define BEEPER_PIN       P1_30
@@ -95,28 +95,24 @@
95 95
   #define BTN_EN1          P4_28
96 96
   #define BTN_EN2          P1_27
97 97
   #define BTN_ENC          P3_26
98
-  #if DISABLED(LPC_SD_ONBOARD)
99
-    #define LPC_SD_LCD
98
+  #ifndef SDCARD_CONNECTION
99
+    #define SDCARD_CONNECTION LCD
100 100
   #endif
101 101
 #endif
102 102
 
103
-#if ENABLED(LPC_SD_LCD)
103
+#if SD_CONNECTION_IS(LCD)
104 104
   #define SCK_PIN          P0_15
105 105
   #define MISO_PIN         P0_17
106 106
   #define MOSI_PIN         P0_18
107 107
   #define SS_PIN           LCD_SDSS
108 108
   #define SD_DETECT_PIN    P3_25
109
-#elif ENABLED(LPC_SD_ONBOARD)
110
-  #if ENABLED(USB_SD_ONBOARD)
111
-    // When sharing the SD card with a PC we want the menu options to
112
-    // mount/unmount the card and refresh it. So we disable card detect.
113
-    #define SHARED_SD_CARD
114
-    #undef SD_DETECT_PIN
115
-  #endif
109
+#elif SD_CONNECTION_IS(ONBOARD)
116 110
   #define SCK_PIN          P0_07
117 111
   #define MISO_PIN         P0_08
118 112
   #define MOSI_PIN         P0_09
119
-  #define SS_PIN           ONBOARD_SD_CS
113
+  #define SS_PIN           ONBOARD_SD_CS_PIN
114
+#elif SD_CONNECTION_IS(CUSTOM_CABLE)
115
+  #error "No custom SD drive cable defined for this board."
120 116
 #endif
121 117
 
122 118
 //

+ 17
- 24
Marlin/src/pins/pins_AZTEEG_X5_MINI.h View File

@@ -189,30 +189,23 @@
189 189
 //
190 190
 // SD Support
191 191
 //
192
-#if !ANY(LPC_SD_LCD, LPC_SD_ONBOARD, LPC_SD_CUSTOM_CABLE)
193
-  #define LPC_SD_ONBOARD
192
+#ifndef SDCARD_CONNECTION
193
+  #define SDCARD_CONNECTION ONBOARD
194 194
 #endif
195 195
 
196
-#if ENABLED(LPC_SD_LCD)
197
-
198
-  #define SCK_PIN            P0_15
199
-  #define MISO_PIN           P0_17
200
-  #define MOSI_PIN           P0_18
201
-  #define SS_PIN             P1_23   // Chip select for SD card used by Marlin
202
-  #define ONBOARD_SD_CS      P0_06   // Chip select for "System" SD card
203
-
204
-#elif ENABLED(LPC_SD_ONBOARD)
205
-
206
-  #if ENABLED(USB_SD_ONBOARD)
207
-    // When sharing the SD card with a PC we want the menu options to
208
-    // mount/unmount the card and refresh it. So we disable card detect.
209
-    #define SHARED_SD_CARD
210
-    #undef SD_DETECT_PIN // there is also no detect pin for the onboard card
211
-  #endif
212
-  #define SCK_PIN            P0_07
213
-  #define MISO_PIN           P0_08
214
-  #define MOSI_PIN           P0_09
215
-  #define SS_PIN             P0_06   // Chip select for SD card used by Marlin
216
-  #define ONBOARD_SD_CS      P0_06   // Chip select for "System" SD card
217
-
196
+#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
197
+
198
+#if SD_CONNECTION_IS(LCD)
199
+  #define SCK_PIN          P0_15
200
+  #define MISO_PIN         P0_17
201
+  #define MOSI_PIN         P0_18
202
+  #define SS_PIN           P1_23
203
+#elif SD_CONNECTION_IS(ONBOARD)
204
+  #undef SD_DETECT_PIN
205
+  #define SCK_PIN          P0_07
206
+  #define MISO_PIN         P0_08
207
+  #define MOSI_PIN         P0_09
208
+  #define SS_PIN           ONBOARD_SD_CS_PIN
209
+#elif SD_CONNECTION_IS(CUSTOM_CABLE)
210
+  #error "No custom SD drive cable defined for this board."
218 211
 #endif

+ 18
- 28
Marlin/src/pins/pins_BIGTREE_SKR_V1.3.h View File

@@ -255,42 +255,32 @@
255 255
 // SD Support
256 256
 //
257 257
 
258
-#if !ANY(LPC_SD_LCD, LPC_SD_ONBOARD, LPC_SD_CUSTOM_CABLE)
259
-  #undef USB_SD_DISABLED
260
-  #define USB_SD_ONBOARD
261
-  #define LPC_SD_LCD
258
+#ifndef SDCARD_CONNECTION
259
+  #define SDCARD_CONNECTION LCD
262 260
 #endif
263 261
 
264
-#if ENABLED(LPC_SD_LCD)
262
+#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
265 263
 
264
+#if SD_CONNECTION_IS(LCD)
266 265
   #define SCK_PIN          P0_15
267 266
   #define MISO_PIN         P0_17
268 267
   #define MOSI_PIN         P0_18
269
-  #define SS_PIN           P0_16   // Chip select for SD card used by Marlin
270
-  #define ONBOARD_SD_CS    P0_06   // Chip select for "System" SD card
271
-
272
-#elif ENABLED(LPC_SD_ONBOARD)
273
-
274
-  #if ENABLED(USB_SD_ONBOARD)
275
-    // When sharing the SD card with a PC we want the menu options to
276
-    // mount/unmount the card and refresh it. So we disable card detect.
277
-    #define SHARED_SD_CARD
278
-    #undef SD_DETECT_PIN
279
-    //#define SD_DETECT_PIN  P0_27   // (57) open-drain
280
-  #endif
281
-
268
+  #define SS_PIN           P0_16
269
+#elif SD_CONNECTION_IS(ONBOARD)
270
+  #undef SD_DETECT_PIN
271
+  #define SD_DETECT_PIN    P0_27
282 272
   #define SCK_PIN          P0_07
283 273
   #define MISO_PIN         P0_08
284 274
   #define MOSI_PIN         P0_09
285
-  #define SS_PIN           P0_06   // Chip select for SD card used by Marlin
286
-  #define ONBOARD_SD_CS    P0_06   // Chip select for "System" SD card
287
-
275
+  #define SS_PIN           ONBOARD_SD_CS_PIN
276
+#elif SD_CONNECTION_IS(CUSTOM_CABLE)
277
+  #error "No custom SD drive cable defined for this board."
288 278
 #endif
289 279
 
290
- /**
291
-  * Special pins
292
-  *   P1_30  (37) (NOT 5V tolerant)
293
-  *   P1_31  (49) (NOT 5V tolerant)
294
-  *   P0_27  (57) (Open collector)
295
-  *   P0_28  (58) (Open collector)
296
-  */
280
+/**
281
+ * Special pins
282
+ *   P1_30  (37) (NOT 5V tolerant)
283
+ *   P1_31  (49) (NOT 5V tolerant)
284
+ *   P0_27  (57) (Open collector)
285
+ *   P0_28  (58) (Open collector)
286
+ */

+ 18
- 27
Marlin/src/pins/pins_BIQU_SKR_V1.1.h View File

@@ -118,39 +118,30 @@
118 118
 // MKS_MINI_12864 strongly prefers the SD card on the display and
119 119
 // requires jumpers on the SKR V1.1 board as documented here:
120 120
 // https://www.facebook.com/groups/505736576548648/permalink/630639874058317/
121
-#if !ANY(LPC_SD_LCD, LPC_SD_ONBOARD, LPC_SD_CUSTOM_CABLE)
121
+#ifndef SDCARD_CONNECTION
122 122
   #if ENABLED(MKS_MINI_12864)
123
-    #define LPC_SD_LCD
124
-    #undef USB_SD_DISABLED
125
-    #define USB_SD_ONBOARD
123
+    #define SDCARD_CONNECTION LCD
126 124
   #else
127
-    #define USB_SD_ONBOARD
128
-    #define LPC_SD_ONBOARD
125
+    #define SDCARD_CONNECTION ONBOARD
129 126
   #endif
130 127
 #endif
131 128
 
132
-#if ENABLED(LPC_SD_LCD)
129
+#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
133 130
 
131
+#if SD_CONNECTION_IS(LCD)
134 132
   #define SCK_PIN          P0_15
135 133
   #define MISO_PIN         P0_17
136 134
   #define MOSI_PIN         P0_18
137
-  #define SS_PIN           P1_23   // Chip select for SD card used by Marlin
138
-  #define ONBOARD_SD_CS    P0_06   // Chip select for "System" SD card
139
-
140
-#elif ENABLED(LPC_SD_ONBOARD)
141
-
142
-  #if ENABLED(USB_SD_ONBOARD)
143
-    // When sharing the SD card with a PC we want the menu options to
144
-    // mount/unmount the card and refresh it. So we disable card detect.
145
-    #define SHARED_SD_CARD
146
-    #undef SD_DETECT_PIN // there is also no detect pin for the onboard card
147
-  #endif
135
+  #define SS_PIN           P1_23
136
+#elif SD_CONNECTION_IS(ONBOARD)
137
+  #undef SD_DETECT_PIN
138
+  #define SD_DETECT_PIN    P0_27
148 139
   #define SCK_PIN          P0_07
149 140
   #define MISO_PIN         P0_08
150 141
   #define MOSI_PIN         P0_09
151
-  #define SS_PIN           P0_06   // Chip select for SD card used by Marlin
152
-  #define ONBOARD_SD_CS    P0_06   // Chip select for "System" SD card
153
-
142
+  #define SS_PIN           ONBOARD_SD_CS_PIN
143
+#elif SD_CONNECTION_IS(CUSTOM_CABLE)
144
+  #error "No custom SD drive cable defined for this board."
154 145
 #endif
155 146
 
156 147
 // Trinamic driver support
@@ -232,11 +223,11 @@
232 223
     // EXAMPLES
233 224
 
234 225
     // Example 1: No LCD attached or a TFT style display using the AUX header RX/TX pins.
235
-    //            LPC_SD_LCD must not be enabled. Nothing should be connected to EXP1/EXP2.
226
+    //            SDCARD_CONNECTION must not be 'LCD'. Nothing should be connected to EXP1/EXP2.
236 227
     //#define SKR_USE_LCD_PINS_FOR_CS
237 228
     #if ENABLED(SKR_USE_LCD_PINS_FOR_CS)
238
-      #if ENABLED(LPC_SD_LCD)
239
-        #error "LPC_SD_LCD must not be enabled with SKR_USE_LCD_PINS_FOR_CS."
229
+      #if SD_CONNECTION_IS(LCD)
230
+        #error "SDCARD_CONNECTION must not be 'LCD' with SKR_USE_LCD_PINS_FOR_CS."
240 231
       #endif
241 232
       #define X_CS_PIN      P1_23
242 233
       #define Y_CS_PIN      P3_26
@@ -247,11 +238,11 @@
247 238
 
248 239
     // Example 2: A REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
249 240
     //            The SD card reader attached to the LCD (if present) can't be used because
250
-    //            the pins will be in use. So LPC_SD_LCD must not be defined.
241
+    //            the pins will be in use. So SDCARD_CONNECTION must not be 'LCD'.
251 242
     //#define SKR_USE_LCD_SD_CARD_PINS_FOR_CS
252 243
     #if ENABLED(SKR_USE_LCD_SD_CARD_PINS_FOR_CS)
253
-      #if ENABLED(LPC_SD_LCD)
254
-        #error "LPC_SD_LCD must not be enabled with SKR_USE_LCD_SD_CARD_PINS_FOR_CS."
244
+      #if SD_CONNECTION_IS(LCD)
245
+        #error "SDCARD_CONNECTION must not be 'LCD' with SKR_USE_LCD_SD_CARD_PINS_FOR_CS."
255 246
       #endif
256 247
       #define X_CS_PIN      P0_02
257 248
       #define Y_CS_PIN      P0_03

+ 9
- 19
Marlin/src/pins/pins_COHESION3D_REMIX.h View File

@@ -213,35 +213,25 @@
213 213
 //
214 214
 // SD Support
215 215
 //
216
-#if NONE(LPC_SD_LCD, LPC_SD_ONBOARD, LPC_SD_CUSTOM_CABLE)
217
-  #undef USB_SD_DISABLED
218
-  #define USB_SD_ONBOARD
219
-  #define LPC_SD_ONBOARD
216
+#ifndef SDCARD_CONNECTION
217
+  #define SDCARD_CONNECTION ONBOARD
220 218
 #endif
221 219
 
222
-#if ENABLED(LPC_SD_LCD)
220
+#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
223 221
 
222
+#if SD_CONNECTION_IS(LCD)
224 223
   #define SCK_PIN          P0_07   // (52)  system defined J3-9 & AUX-3
225 224
   #define MISO_PIN         P0_08   // (50)  system defined J3-10 & AUX-3
226 225
   #define MOSI_PIN         P0_09   // (51)  system defined J3-10 & AUX-3
227 226
   #define SS_PIN           P1_23   // (53)  system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
228
-  #define ONBOARD_SD_CS    P0_06   // Chip select for "System" SD card
229
-
230
-#elif ENABLED(LPC_SD_ONBOARD)
231
-
232
-  #if ENABLED(USB_SD_ONBOARD)
233
-    // When sharing the SD card with a PC the LCD menu options are
234
-    // needed to mount/unmount and refresh SD. So disable SD detect.
235
-    #define SHARED_SD_CARD
236
-    #undef SD_DETECT_PIN   // No SD detect pin for the onboard card
237
-  #endif
238
-
227
+#elif SD_CONNECTION_IS(ONBOARD)
228
+  #undef SD_DETECT_PIN
239 229
   #define SCK_PIN          P0_07
240 230
   #define MISO_PIN         P0_08
241 231
   #define MOSI_PIN         P0_09
242
-  #define SS_PIN           P0_06   // Chip select for SD card used by Marlin
243
-  #define ONBOARD_SD_CS    P0_06   // Chip select for "System" SD card
244
-
232
+  #define SS_PIN           ONBOARD_SD_CS_PIN
233
+#elif SD_CONNECTION_IS(CUSTOM_CABLE)
234
+  #error "No custom SD drive cable defined for this board."
245 235
 #endif
246 236
 
247 237
 //

+ 11
- 25
Marlin/src/pins/pins_MKS_SBASE.h View File

@@ -158,13 +158,13 @@
158 158
 #define ENET_TXD0          P1_00   // J12-11
159 159
 #define ENET_TXD1          P1_01   // J12-12
160 160
 
161
-#if !ANY(LPC_SD_LCD, LPC_SD_ONBOARD, LPC_SD_CUSTOM_CABLE)
162
-  #undef USB_SD_DISABLED
163
-  #define USB_SD_ONBOARD
164
-  #define LPC_SD_ONBOARD
161
+#ifndef SDARD_CONNECTION
162
+  #define SDCARD_CONNECTION ONBOARD
165 163
 #endif
166 164
 
167
-#if ENABLED(LPC_SD_CUSTOM_CABLE)
165
+#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
166
+
167
+#if SD_CONNECTION_IS(CUSTOM_CABLE)
168 168
 
169 169
   /**
170 170
    * A custom cable is needed. See the README file in the
@@ -182,37 +182,23 @@
182 182
   #define SCK_PIN          P1_22   // J8-2 (moved from EXP2 P0.7)
183 183
   #define MISO_PIN         P1_23   // J8-3 (moved from EXP2 P0.8)
184 184
   #define MOSI_PIN         P2_12   // J8-4 (moved from EXP2 P0.9)
185
-  #define SS_PIN           P0_28   // Chip select for SD card used by Marlin
186
-  #define ONBOARD_SD_CS    P0_06   // Chip select for "System" SD card
185
+  #define SS_PIN           P0_28
187 186
   #define LPC_SOFTWARE_SPI  // With a custom cable we need software SPI because the
188 187
                             // selected pins are not on a hardware SPI controller
189
-#elif ENABLED(LPC_SD_LCD)
190
-
188
+#elif SD_CONNECTION_IS(LCD)
191 189
   // use standard cable and header, SPI and SD detect sre shared with on-board SD card
192 190
   // hardware SPI is used for both SD cards. The detect pin is shred between the
193 191
   // LCD and onboard SD readers so we disable it.
194 192
   #define SCK_PIN          P0_07
195 193
   #define MISO_PIN         P0_08
196 194
   #define MOSI_PIN         P0_09
197
-  #define SS_PIN           P0_28   // Chip select for SD card used by Marlin
198
-  #define ONBOARD_SD_CS    P0_06   // Chip select for "System" SD card
199
-
200
-#elif ENABLED(LPC_SD_ONBOARD)
201
-
202
-  // The external SD card is not used. Hardware SPI is used to access the card.
203
-  #if ENABLED(USB_SD_ONBOARD)
204
-    // When sharing the SD card with a PC we want the menu options to
205
-    // mount/unmount the card and refresh it. So we disable card detect.
206
-    #define SHARED_SD_CARD
207
-  #else
208
-    #define SD_DETECT_PIN  P0_27
209
-  #endif
195
+  #define SS_PIN           P0_28
196
+#elif SD_CONNECTION_IS(ONBOARD)
197
+  #define SD_DETECT_PIN    P0_27
210 198
   #define SCK_PIN          P0_07
211 199
   #define MISO_PIN         P0_08
212 200
   #define MOSI_PIN         P0_09
213
-  #define SS_PIN           P0_06   // Chip select for SD card used by Marlin
214
-  #define ONBOARD_SD_CS    P0_06   // Chip select for "System" SD card
215
-
201
+  #define SS_PIN           ONBOARD_SD_CS_PIN
216 202
 #endif
217 203
 
218 204
 /**

+ 9
- 19
Marlin/src/pins/pins_RAMPS_RE_ARM.h View File

@@ -413,35 +413,25 @@
413 413
 //
414 414
 // SD Support
415 415
 //
416
-#if !ANY(LPC_SD_LCD, LPC_SD_ONBOARD, LPC_SD_CUSTOM_CABLE)
417
-  #undef USB_SD_DISABLED
418
-  #define USB_SD_ONBOARD
419
-  #define LPC_SD_ONBOARD
416
+#ifndef SDCARD_CONNECTION
417
+  #define SDCARD_CONNECTION ONBOARD
420 418
 #endif
421 419
 
422
-#if ENABLED(LPC_SD_LCD)
420
+#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
423 421
 
422
+#if SD_CONNECTION_IS(LCD)
424 423
   #define SCK_PIN          P0_15   // (52)  system defined J3-9 & AUX-3
425 424
   #define MISO_PIN         P0_17   // (50)  system defined J3-10 & AUX-3
426 425
   #define MOSI_PIN         P0_18   // (51)  system defined J3-10 & AUX-3
427 426
   #define SS_PIN           P1_23   // (53)  system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
428
-  #define ONBOARD_SD_CS    P0_06   // Chip select for "System" SD card
429
-
430
-#elif ENABLED(LPC_SD_ONBOARD)
431
-
432
-  #if ENABLED(USB_SD_ONBOARD)
433
-    // When sharing the SD card with a PC we want the menu options to
434
-    // mount/unmount the card and refresh it. So we disable card detect.
435
-    #define SHARED_SD_CARD
436
-    #undef SD_DETECT_PIN // there is also no detect pin for the onboard card
437
-  #endif
438
-
427
+#elif SD_CONNECTION_IS(ONBOARD)
428
+  #undef SD_DETECT_PIN
439 429
   #define SCK_PIN          P0_07
440 430
   #define MISO_PIN         P0_08
441 431
   #define MOSI_PIN         P0_09
442
-  #define SS_PIN           P0_06   // Chip select for SD card used by Marlin
443
-  #define ONBOARD_SD_CS    P0_06   // Chip select for "System" SD card
444
-
432
+  #define SS_PIN           ONBOARD_SD_CS_PIN
433
+#elif SD_CONNECTION_IS(CUSTOM_CABLE)
434
+  #error "No custom SD drive cable defined for this board."
445 435
 #endif
446 436
 
447 437
 /**

+ 16
- 8
config/default/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/3DFabXYZ/Migbot/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/AlephObjects/TAZ4/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/AliExpress/UM2pExt/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Anet/A2/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Anet/A2plus/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Anet/A6/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Anet/A8/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Anet/A8plus/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Anet/E16/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/AnyCubic/i3/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/ArmEd/Configuration_adv.h View File

@@ -1038,20 +1038,28 @@
1038 1038
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1039 1039
   //#define BINARY_FILE_TRANSFER
1040 1040
 
1041
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1042 1041
   #ifdef TARGET_LPC1768
1043
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1044
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1045
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1046
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1047
-    #if ENABLED(LPC_SD_ONBOARD)
1048
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1049
-    #endif
1042
+    /**
1043
+     * Set this option to one of the following (or the board's defaults apply):
1044
+     *
1045
+     *           LCD - Use the SD drive in the external LCD controller.
1046
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1047
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1048
+     *
1049
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1050
+     */
1051
+    //#define SDCARD_CONNECTION LCD
1050 1052
   #endif
1051 1053
 
1052 1054
 #endif // SDSUPPORT
1053 1055
 
1054 1056
 /**
1057
+ * By default an onboard SD card reader may be shared as a USB mass-
1058
+ * storage device. This option hides the SD card from the host PC.
1059
+ */
1060
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1061
+
1062
+/**
1055 1063
  * Additional options for Graphical Displays
1056 1064
  *
1057 1065
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/BIBO/TouchX/cyclops/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/BIBO/TouchX/default/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/BQ/Hephestos/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/BQ/Hephestos_2/Configuration_adv.h View File

@@ -1042,20 +1042,28 @@
1042 1042
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1043 1043
   //#define BINARY_FILE_TRANSFER
1044 1044
 
1045
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1046 1045
   #ifdef TARGET_LPC1768
1047
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1048
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1049
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1050
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1051
-    #if ENABLED(LPC_SD_ONBOARD)
1052
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1053
-    #endif
1046
+    /**
1047
+     * Set this option to one of the following (or the board's defaults apply):
1048
+     *
1049
+     *           LCD - Use the SD drive in the external LCD controller.
1050
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1051
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1052
+     *
1053
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1054
+     */
1055
+    //#define SDCARD_CONNECTION LCD
1054 1056
   #endif
1055 1057
 
1056 1058
 #endif // SDSUPPORT
1057 1059
 
1058 1060
 /**
1061
+ * By default an onboard SD card reader may be shared as a USB mass-
1062
+ * storage device. This option hides the SD card from the host PC.
1063
+ */
1064
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1065
+
1066
+/**
1059 1067
  * Additional options for Graphical Displays
1060 1068
  *
1061 1069
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/BQ/WITBOX/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Cartesio/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Creality/CR-10/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Creality/CR-10S/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Creality/CR-10_5S/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Creality/CR-10mini/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Creality/CR-8/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Creality/Ender-2/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Creality/Ender-3/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Creality/Ender-4/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Dagoma/Disco Ultimate/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/EVNOVO (Artillery)/Sidewinder X1/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Einstart-S/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Felix/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/FlashForge/CreatorPro/Configuration_adv.h View File

@@ -1033,20 +1033,28 @@
1033 1033
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1034 1034
   //#define BINARY_FILE_TRANSFER
1035 1035
 
1036
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1037 1036
   #ifdef TARGET_LPC1768
1038
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1039
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1040
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1041
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1042
-    #if ENABLED(LPC_SD_ONBOARD)
1043
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1044
-    #endif
1037
+    /**
1038
+     * Set this option to one of the following (or the board's defaults apply):
1039
+     *
1040
+     *           LCD - Use the SD drive in the external LCD controller.
1041
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1042
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1043
+     *
1044
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1045
+     */
1046
+    //#define SDCARD_CONNECTION LCD
1045 1047
   #endif
1046 1048
 
1047 1049
 #endif // SDSUPPORT
1048 1050
 
1049 1051
 /**
1052
+ * By default an onboard SD card reader will be shared as a USB mass-
1053
+ * storage device. This option hides the SD card from the host PC.
1054
+ */
1055
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1056
+
1057
+/**
1050 1058
  * Additional options for Graphical Displays
1051 1059
  *
1052 1060
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/FolgerTech/i3-2020/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Formbot/Raptor/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Formbot/T_Rex_2+/Configuration_adv.h View File

@@ -1038,20 +1038,28 @@
1038 1038
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1039 1039
   //#define BINARY_FILE_TRANSFER
1040 1040
 
1041
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1042 1041
   #ifdef TARGET_LPC1768
1043
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1044
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1045
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1046
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1047
-    #if ENABLED(LPC_SD_ONBOARD)
1048
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1049
-    #endif
1042
+    /**
1043
+     * Set this option to one of the following (or the board's defaults apply):
1044
+     *
1045
+     *           LCD - Use the SD drive in the external LCD controller.
1046
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1047
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1048
+     *
1049
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1050
+     */
1051
+    //#define SDCARD_CONNECTION LCD
1050 1052
   #endif
1051 1053
 
1052 1054
 #endif // SDSUPPORT
1053 1055
 
1054 1056
 /**
1057
+ * By default an onboard SD card reader will be shared as a USB mass-
1058
+ * storage device. This option hides the SD card from the host PC.
1059
+ */
1060
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1061
+
1062
+/**
1055 1063
  * Additional options for Graphical Displays
1056 1064
  *
1057 1065
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Formbot/T_Rex_3/Configuration_adv.h View File

@@ -1038,20 +1038,28 @@
1038 1038
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1039 1039
   //#define BINARY_FILE_TRANSFER
1040 1040
 
1041
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1042 1041
   #ifdef TARGET_LPC1768
1043
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1044
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1045
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1046
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1047
-    #if ENABLED(LPC_SD_ONBOARD)
1048
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1049
-    #endif
1042
+    /**
1043
+     * Set this option to one of the following (or the board's defaults apply):
1044
+     *
1045
+     *           LCD - Use the SD drive in the external LCD controller.
1046
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1047
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1048
+     *
1049
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1050
+     */
1051
+    //#define SDCARD_CONNECTION LCD
1050 1052
   #endif
1051 1053
 
1052 1054
 #endif // SDSUPPORT
1053 1055
 
1054 1056
 /**
1057
+ * By default an onboard SD card reader will be shared as a USB mass-
1058
+ * storage device. This option hides the SD card from the host PC.
1059
+ */
1060
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1061
+
1062
+/**
1055 1063
  * Additional options for Graphical Displays
1056 1064
  *
1057 1065
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Fysetc/AIO_II/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Fysetc/CHEETAH/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Fysetc/F6_13/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader may be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Geeetech/A10/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Geeetech/A10M/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Geeetech/A20M/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Geeetech/MeCreator2/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Infitary/i3-M508/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/JGAurora/A1/Configuration_adv.h View File

@@ -1039,20 +1039,28 @@
1039 1039
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1040 1040
   //#define BINARY_FILE_TRANSFER
1041 1041
 
1042
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1043 1042
   #ifdef TARGET_LPC1768
1044
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1045
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1046
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1047
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1048
-    #if ENABLED(LPC_SD_ONBOARD)
1049
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1050
-    #endif
1043
+    /**
1044
+     * Set this option to one of the following (or the board's defaults apply):
1045
+     *
1046
+     *           LCD - Use the SD drive in the external LCD controller.
1047
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1048
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1049
+     *
1050
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1051
+     */
1052
+    //#define SDCARD_CONNECTION LCD
1051 1053
   #endif
1052 1054
 
1053 1055
 #endif // SDSUPPORT
1054 1056
 
1055 1057
 /**
1058
+ * By default an onboard SD card reader will be shared as a USB mass-
1059
+ * storage device. This option hides the SD card from the host PC.
1060
+ */
1061
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1062
+
1063
+/**
1056 1064
  * Additional options for Graphical Displays
1057 1065
  *
1058 1066
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/JGAurora/A5/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/JGAurora/A5S/Configuration_adv.h View File

@@ -1039,20 +1039,28 @@
1039 1039
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1040 1040
   //#define BINARY_FILE_TRANSFER
1041 1041
 
1042
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1043 1042
   #ifdef TARGET_LPC1768
1044
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1045
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1046
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1047
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1048
-    #if ENABLED(LPC_SD_ONBOARD)
1049
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1050
-    #endif
1043
+    /**
1044
+     * Set this option to one of the following (or the board's defaults apply):
1045
+     *
1046
+     *           LCD - Use the SD drive in the external LCD controller.
1047
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1048
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1049
+     *
1050
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1051
+     */
1052
+    //#define SDCARD_CONNECTION LCD
1051 1053
   #endif
1052 1054
 
1053 1055
 #endif // SDSUPPORT
1054 1056
 
1055 1057
 /**
1058
+ * By default an onboard SD card reader will be shared as a USB mass-
1059
+ * storage device. This option hides the SD card from the host PC.
1060
+ */
1061
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1062
+
1063
+/**
1056 1064
  * Additional options for Graphical Displays
1057 1065
  *
1058 1066
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/MakerParts/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Malyan/M150/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Malyan/M200/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Micromake/C1/enhanced/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Mks/Robin/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Mks/Sbase/Configuration_adv.h View File

@@ -1035,20 +1035,28 @@
1035 1035
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1036 1036
   //#define BINARY_FILE_TRANSFER
1037 1037
 
1038
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1039 1038
   #ifdef TARGET_LPC1768
1040
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1041
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1042
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1043
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1044
-    #if ENABLED(LPC_SD_ONBOARD)
1045
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1046
-    #endif
1039
+    /**
1040
+     * Set this option to one of the following (or the board's defaults apply):
1041
+     *
1042
+     *           LCD - Use the SD drive in the external LCD controller.
1043
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1044
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1045
+     *
1046
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1047
+     */
1048
+    //#define SDCARD_CONNECTION LCD
1047 1049
   #endif
1048 1050
 
1049 1051
 #endif // SDSUPPORT
1050 1052
 
1051 1053
 /**
1054
+ * By default an onboard SD card reader will be shared as a USB mass-
1055
+ * storage device. This option hides the SD card from the host PC.
1056
+ */
1057
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1058
+
1059
+/**
1052 1060
  * Additional options for Graphical Displays
1053 1061
  *
1054 1062
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/RapideLite/RL200/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/RigidBot/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/SCARA/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/STM32/Black_STM32F407VET6/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Sanguinololu/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Tevo/Tarantula Pro/Configuration_adv.h View File

@@ -1030,20 +1030,28 @@
1030 1030
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1031 1031
   //#define BINARY_FILE_TRANSFER
1032 1032
 
1033
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1034 1033
   #ifdef TARGET_LPC1768
1035
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1036
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1037
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1038
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1039
-    #if ENABLED(LPC_SD_ONBOARD)
1040
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1041
-    #endif
1034
+    /**
1035
+     * Set this option to one of the following (or the board's defaults apply):
1036
+     *
1037
+     *           LCD - Use the SD drive in the external LCD controller.
1038
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1039
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1040
+     *
1041
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1042
+     */
1043
+    //#define SDCARD_CONNECTION LCD
1042 1044
   #endif
1043 1045
 
1044 1046
 #endif // SDSUPPORT
1045 1047
 
1046 1048
 /**
1049
+ * By default an onboard SD card reader may be shared as a USB mass-
1050
+ * storage device. This option hides the SD card from the host PC.
1051
+ */
1052
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1053
+
1054
+/**
1047 1055
  * Additional options for Graphical Displays
1048 1056
  *
1049 1057
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/TheBorg/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/TinyBoy2/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Tronxy/X3A/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Tronxy/X5S-2E/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/UltiMachine/Archim1/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/UltiMachine/Archim2/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/VORONDesign/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Velleman/K8200/Configuration_adv.h View File

@@ -1047,20 +1047,28 @@
1047 1047
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1048 1048
   //#define BINARY_FILE_TRANSFER
1049 1049
 
1050
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1051 1050
   #ifdef TARGET_LPC1768
1052
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1053
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1054
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1055
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1056
-    #if ENABLED(LPC_SD_ONBOARD)
1057
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1058
-    #endif
1051
+    /**
1052
+     * Set this option to one of the following (or the board's defaults apply):
1053
+     *
1054
+     *           LCD - Use the SD drive in the external LCD controller.
1055
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1056
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1057
+     *
1058
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1059
+     */
1060
+    //#define SDCARD_CONNECTION LCD
1059 1061
   #endif
1060 1062
 
1061 1063
 #endif // SDSUPPORT
1062 1064
 
1063 1065
 /**
1066
+ * By default an onboard SD card reader will be shared as a USB mass-
1067
+ * storage device. This option hides the SD card from the host PC.
1068
+ */
1069
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1070
+
1071
+/**
1064 1072
  * Additional options for Graphical Displays
1065 1073
  *
1066 1074
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Velleman/K8400/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/WASP/PowerWASP/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/Wanhao/Duplicator 6/Configuration_adv.h View File

@@ -1036,20 +1036,28 @@
1036 1036
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1037 1037
   //#define BINARY_FILE_TRANSFER
1038 1038
 
1039
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1040 1039
   #ifdef TARGET_LPC1768
1041
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1042
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1044
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1045
-    #if ENABLED(LPC_SD_ONBOARD)
1046
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1047
-    #endif
1040
+    /**
1041
+     * Set this option to one of the following (or the board's defaults apply):
1042
+     *
1043
+     *           LCD - Use the SD drive in the external LCD controller.
1044
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1045
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1046
+     *
1047
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1048
+     */
1049
+    //#define SDCARD_CONNECTION LCD
1048 1050
   #endif
1049 1051
 
1050 1052
 #endif // SDSUPPORT
1051 1053
 
1052 1054
 /**
1055
+ * By default an onboard SD card reader will be shared as a USB mass-
1056
+ * storage device. This option hides the SD card from the host PC.
1057
+ */
1058
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1059
+
1060
+/**
1053 1061
  * Additional options for Graphical Displays
1054 1062
  *
1055 1063
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/delta/Anycubic/Kossel/Configuration_adv.h View File

@@ -1036,20 +1036,28 @@
1036 1036
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1037 1037
   //#define BINARY_FILE_TRANSFER
1038 1038
 
1039
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1040 1039
   #ifdef TARGET_LPC1768
1041
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1042
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1044
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1045
-    #if ENABLED(LPC_SD_ONBOARD)
1046
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1047
-    #endif
1040
+    /**
1041
+     * Set this option to one of the following (or the board's defaults apply):
1042
+     *
1043
+     *           LCD - Use the SD drive in the external LCD controller.
1044
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1045
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1046
+     *
1047
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1048
+     */
1049
+    //#define SDCARD_CONNECTION LCD
1048 1050
   #endif
1049 1051
 
1050 1052
 #endif // SDSUPPORT
1051 1053
 
1052 1054
 /**
1055
+ * By default an onboard SD card reader will be shared as a USB mass-
1056
+ * storage device. This option hides the SD card from the host PC.
1057
+ */
1058
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1059
+
1060
+/**
1053 1061
  * Additional options for Graphical Displays
1054 1062
  *
1055 1063
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h View File

@@ -1036,20 +1036,28 @@
1036 1036
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1037 1037
   //#define BINARY_FILE_TRANSFER
1038 1038
 
1039
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1040 1039
   #ifdef TARGET_LPC1768
1041
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1042
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1044
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1045
-    #if ENABLED(LPC_SD_ONBOARD)
1046
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1047
-    #endif
1040
+    /**
1041
+     * Set this option to one of the following (or the board's defaults apply):
1042
+     *
1043
+     *           LCD - Use the SD drive in the external LCD controller.
1044
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1045
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1046
+     *
1047
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1048
+     */
1049
+    //#define SDCARD_CONNECTION LCD
1048 1050
   #endif
1049 1051
 
1050 1052
 #endif // SDSUPPORT
1051 1053
 
1052 1054
 /**
1055
+ * By default an onboard SD card reader will be shared as a USB mass-
1056
+ * storage device. This option hides the SD card from the host PC.
1057
+ */
1058
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1059
+
1060
+/**
1053 1061
  * Additional options for Graphical Displays
1054 1062
  *
1055 1063
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/delta/FLSUN/kossel/Configuration_adv.h View File

@@ -1036,20 +1036,28 @@
1036 1036
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1037 1037
   //#define BINARY_FILE_TRANSFER
1038 1038
 
1039
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1040 1039
   #ifdef TARGET_LPC1768
1041
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1042
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1044
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1045
-    #if ENABLED(LPC_SD_ONBOARD)
1046
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1047
-    #endif
1040
+    /**
1041
+     * Set this option to one of the following (or the board's defaults apply):
1042
+     *
1043
+     *           LCD - Use the SD drive in the external LCD controller.
1044
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1045
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1046
+     *
1047
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1048
+     */
1049
+    //#define SDCARD_CONNECTION LCD
1048 1050
   #endif
1049 1051
 
1050 1052
 #endif // SDSUPPORT
1051 1053
 
1052 1054
 /**
1055
+ * By default an onboard SD card reader will be shared as a USB mass-
1056
+ * storage device. This option hides the SD card from the host PC.
1057
+ */
1058
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1059
+
1060
+/**
1053 1061
  * Additional options for Graphical Displays
1054 1062
  *
1055 1063
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h View File

@@ -1036,20 +1036,28 @@
1036 1036
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1037 1037
   //#define BINARY_FILE_TRANSFER
1038 1038
 
1039
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1040 1039
   #ifdef TARGET_LPC1768
1041
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1042
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1044
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1045
-    #if ENABLED(LPC_SD_ONBOARD)
1046
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1047
-    #endif
1040
+    /**
1041
+     * Set this option to one of the following (or the board's defaults apply):
1042
+     *
1043
+     *           LCD - Use the SD drive in the external LCD controller.
1044
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1045
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1046
+     *
1047
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1048
+     */
1049
+    //#define SDCARD_CONNECTION LCD
1048 1050
   #endif
1049 1051
 
1050 1052
 #endif // SDSUPPORT
1051 1053
 
1052 1054
 /**
1055
+ * By default an onboard SD card reader will be shared as a USB mass-
1056
+ * storage device. This option hides the SD card from the host PC.
1057
+ */
1058
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1059
+
1060
+/**
1053 1061
  * Additional options for Graphical Displays
1054 1062
  *
1055 1063
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h View File

@@ -1036,20 +1036,28 @@
1036 1036
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1037 1037
   //#define BINARY_FILE_TRANSFER
1038 1038
 
1039
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1040 1039
   #ifdef TARGET_LPC1768
1041
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1042
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1044
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1045
-    #if ENABLED(LPC_SD_ONBOARD)
1046
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1047
-    #endif
1040
+    /**
1041
+     * Set this option to one of the following (or the board's defaults apply):
1042
+     *
1043
+     *           LCD - Use the SD drive in the external LCD controller.
1044
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1045
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1046
+     *
1047
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1048
+     */
1049
+    //#define SDCARD_CONNECTION LCD
1048 1050
   #endif
1049 1051
 
1050 1052
 #endif // SDSUPPORT
1051 1053
 
1052 1054
 /**
1055
+ * By default an onboard SD card reader will be shared as a USB mass-
1056
+ * storage device. This option hides the SD card from the host PC.
1057
+ */
1058
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1059
+
1060
+/**
1053 1061
  * Additional options for Graphical Displays
1054 1062
  *
1055 1063
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/delta/MKS/SBASE/Configuration_adv.h View File

@@ -1036,20 +1036,28 @@
1036 1036
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1037 1037
   //#define BINARY_FILE_TRANSFER
1038 1038
 
1039
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1040 1039
   #ifdef TARGET_LPC1768
1041
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1042
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1044
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1045
-    #if ENABLED(LPC_SD_ONBOARD)
1046
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1047
-    #endif
1040
+    /**
1041
+     * Set this option to one of the following (or the board's defaults apply):
1042
+     *
1043
+     *           LCD - Use the SD drive in the external LCD controller.
1044
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1045
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1046
+     *
1047
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1048
+     */
1049
+    //#define SDCARD_CONNECTION LCD
1048 1050
   #endif
1049 1051
 
1050 1052
 #endif // SDSUPPORT
1051 1053
 
1052 1054
 /**
1055
+ * By default an onboard SD card reader will be shared as a USB mass-
1056
+ * storage device. This option hides the SD card from the host PC.
1057
+ */
1058
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1059
+
1060
+/**
1053 1061
  * Additional options for Graphical Displays
1054 1062
  *
1055 1063
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/delta/Tevo Little Monster/Configuration_adv.h View File

@@ -1036,20 +1036,28 @@
1036 1036
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1037 1037
   //#define BINARY_FILE_TRANSFER
1038 1038
 
1039
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1040 1039
   #ifdef TARGET_LPC1768
1041
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1042
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1044
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1045
-    #if ENABLED(LPC_SD_ONBOARD)
1046
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1047
-    #endif
1040
+    /**
1041
+     * Set this option to one of the following (or the board's defaults apply):
1042
+     *
1043
+     *           LCD - Use the SD drive in the external LCD controller.
1044
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1045
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1046
+     *
1047
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1048
+     */
1049
+    //#define SDCARD_CONNECTION LCD
1048 1050
   #endif
1049 1051
 
1050 1052
 #endif // SDSUPPORT
1051 1053
 
1052 1054
 /**
1055
+ * By default an onboard SD card reader will be shared as a USB mass-
1056
+ * storage device. This option hides the SD card from the host PC.
1057
+ */
1058
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1059
+
1060
+/**
1053 1061
  * Additional options for Graphical Displays
1054 1062
  *
1055 1063
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/delta/generic/Configuration_adv.h View File

@@ -1036,20 +1036,28 @@
1036 1036
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1037 1037
   //#define BINARY_FILE_TRANSFER
1038 1038
 
1039
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1040 1039
   #ifdef TARGET_LPC1768
1041
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1042
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1044
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1045
-    #if ENABLED(LPC_SD_ONBOARD)
1046
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1047
-    #endif
1040
+    /**
1041
+     * Set this option to one of the following (or the board's defaults apply):
1042
+     *
1043
+     *           LCD - Use the SD drive in the external LCD controller.
1044
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1045
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1046
+     *
1047
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1048
+     */
1049
+    //#define SDCARD_CONNECTION LCD
1048 1050
   #endif
1049 1051
 
1050 1052
 #endif // SDSUPPORT
1051 1053
 
1052 1054
 /**
1055
+ * By default an onboard SD card reader will be shared as a USB mass-
1056
+ * storage device. This option hides the SD card from the host PC.
1057
+ */
1058
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1059
+
1060
+/**
1053 1061
  * Additional options for Graphical Displays
1054 1062
  *
1055 1063
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/delta/kossel_mini/Configuration_adv.h View File

@@ -1036,20 +1036,28 @@
1036 1036
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1037 1037
   //#define BINARY_FILE_TRANSFER
1038 1038
 
1039
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1040 1039
   #ifdef TARGET_LPC1768
1041
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1042
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1044
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1045
-    #if ENABLED(LPC_SD_ONBOARD)
1046
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1047
-    #endif
1040
+    /**
1041
+     * Set this option to one of the following (or the board's defaults apply):
1042
+     *
1043
+     *           LCD - Use the SD drive in the external LCD controller.
1044
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1045
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1046
+     *
1047
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1048
+     */
1049
+    //#define SDCARD_CONNECTION LCD
1048 1050
   #endif
1049 1051
 
1050 1052
 #endif // SDSUPPORT
1051 1053
 
1052 1054
 /**
1055
+ * By default an onboard SD card reader will be shared as a USB mass-
1056
+ * storage device. This option hides the SD card from the host PC.
1057
+ */
1058
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1059
+
1060
+/**
1053 1061
  * Additional options for Graphical Displays
1054 1062
  *
1055 1063
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/delta/kossel_xl/Configuration_adv.h View File

@@ -1036,20 +1036,28 @@
1036 1036
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1037 1037
   //#define BINARY_FILE_TRANSFER
1038 1038
 
1039
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1040 1039
   #ifdef TARGET_LPC1768
1041
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1042
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1044
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1045
-    #if ENABLED(LPC_SD_ONBOARD)
1046
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1047
-    #endif
1040
+    /**
1041
+     * Set this option to one of the following (or the board's defaults apply):
1042
+     *
1043
+     *           LCD - Use the SD drive in the external LCD controller.
1044
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1045
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1046
+     *
1047
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1048
+     */
1049
+    //#define SDCARD_CONNECTION LCD
1048 1050
   #endif
1049 1051
 
1050 1052
 #endif // SDSUPPORT
1051 1053
 
1052 1054
 /**
1055
+ * By default an onboard SD card reader will be shared as a USB mass-
1056
+ * storage device. This option hides the SD card from the host PC.
1057
+ */
1058
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1059
+
1060
+/**
1053 1061
  * Additional options for Graphical Displays
1054 1062
  *
1055 1063
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/gCreate/gMax1.5+/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/makibox/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 16
- 8
config/examples/tvrrug/Round2/Configuration_adv.h View File

@@ -1034,20 +1034,28 @@
1034 1034
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
1035 1035
   //#define BINARY_FILE_TRANSFER
1036 1036
 
1037
-  // LPC-based boards have on-board SD Card options. Override here or defaults apply.
1038 1037
   #ifdef TARGET_LPC1768
1039
-    //#define LPC_SD_LCD          // Use the SD drive in the external LCD controller.
1040
-    //#define LPC_SD_ONBOARD      // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1041
-    //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file).
1042
-    //#define USB_SD_DISABLED     // Disable SD Card access over USB (for security).
1043
-    #if ENABLED(LPC_SD_ONBOARD)
1044
-      //#define USB_SD_ONBOARD    // Provide the onboard SD card to the host as a USB mass storage device.
1045
-    #endif
1038
+    /**
1039
+     * Set this option to one of the following (or the board's defaults apply):
1040
+     *
1041
+     *           LCD - Use the SD drive in the external LCD controller.
1042
+     *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
1043
+     *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
1044
+     *
1045
+     * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
1046
+     */
1047
+    //#define SDCARD_CONNECTION LCD
1046 1048
   #endif
1047 1049
 
1048 1050
 #endif // SDSUPPORT
1049 1051
 
1050 1052
 /**
1053
+ * By default an onboard SD card reader will be shared as a USB mass-
1054
+ * storage device. This option hides the SD card from the host PC.
1055
+ */
1056
+//#define NO_SD_HOST_DRIVE   // Disable SD Card access over USB (for security).
1057
+
1058
+/**
1051 1059
  * Additional options for Graphical Displays
1052 1060
  *
1053 1061
  * Use the optimizations here to improve printing performance,

+ 0
- 0
config/examples/wt150/Configuration_adv.h View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save