From 064177154ce7912293efa67c7e0dfcaa4a7301ec Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Wed, 26 Jun 2019 09:55:57 +0100 Subject: [PATCH] Update SD card connection / sharing options (#14325) --- Marlin/Configuration_adv.h | 24 ++++++---- Marlin/src/HAL/HAL_LPC1768/SanityCheck.h | 8 ---- Marlin/src/HAL/HAL_LPC1768/main.cpp | 8 ++-- Marlin/src/Marlin.cpp | 2 +- Marlin/src/core/drivers.h | 13 +++++- Marlin/src/inc/Conditionals_post.h | 15 ++++++ Marlin/src/inc/SanityCheck.h | 6 +++ Marlin/src/lcd/ultralcd.cpp | 10 ++-- Marlin/src/pins/pins_AZSMZ_MINI.h | 20 ++++---- Marlin/src/pins/pins_AZTEEG_X5_MINI.h | 39 +++++++--------- Marlin/src/pins/pins_BIGTREE_SKR_V1.3.h | 46 ++++++++----------- Marlin/src/pins/pins_BIQU_SKR_V1.1.h | 45 ++++++++---------- Marlin/src/pins/pins_COHESION3D_REMIX.h | 28 ++++------- Marlin/src/pins/pins_MKS_SBASE.h | 36 +++++---------- Marlin/src/pins/pins_RAMPS_RE_ARM.h | 28 ++++------- config/default/Configuration_adv.h | 24 ++++++---- .../3DFabXYZ/Migbot/Configuration_adv.h | 24 ++++++---- .../AlephObjects/TAZ4/Configuration_adv.h | 24 ++++++---- .../AliExpress/UM2pExt/Configuration_adv.h | 24 ++++++---- config/examples/Anet/A2/Configuration_adv.h | 24 ++++++---- .../examples/Anet/A2plus/Configuration_adv.h | 24 ++++++---- config/examples/Anet/A6/Configuration_adv.h | 24 ++++++---- config/examples/Anet/A8/Configuration_adv.h | 24 ++++++---- .../examples/Anet/A8plus/Configuration_adv.h | 24 ++++++---- config/examples/Anet/E16/Configuration_adv.h | 24 ++++++---- .../examples/AnyCubic/i3/Configuration_adv.h | 24 ++++++---- config/examples/ArmEd/Configuration_adv.h | 24 ++++++---- .../BIBO/TouchX/cyclops/Configuration_adv.h | 24 ++++++---- .../BIBO/TouchX/default/Configuration_adv.h | 24 ++++++---- .../examples/BQ/Hephestos/Configuration_adv.h | 24 ++++++---- .../BQ/Hephestos_2/Configuration_adv.h | 24 ++++++---- config/examples/BQ/WITBOX/Configuration_adv.h | 24 ++++++---- config/examples/Cartesio/Configuration_adv.h | 24 ++++++---- .../Creality/CR-10/Configuration_adv.h | 24 ++++++---- .../Creality/CR-10S/Configuration_adv.h | 24 ++++++---- .../Creality/CR-10_5S/Configuration_adv.h | 24 ++++++---- .../Creality/CR-10mini/Configuration_adv.h | 24 ++++++---- .../Creality/CR-8/Configuration_adv.h | 24 ++++++---- .../Creality/Ender-2/Configuration_adv.h | 24 ++++++---- .../Creality/Ender-3/Configuration_adv.h | 24 ++++++---- .../Creality/Ender-4/Configuration_adv.h | 24 ++++++---- .../Dagoma/Disco Ultimate/Configuration_adv.h | 24 ++++++---- .../Sidewinder X1/Configuration_adv.h | 24 ++++++---- .../examples/Einstart-S/Configuration_adv.h | 24 ++++++---- config/examples/Felix/Configuration_adv.h | 24 ++++++---- .../FlashForge/CreatorPro/Configuration_adv.h | 24 ++++++---- .../FolgerTech/i3-2020/Configuration_adv.h | 24 ++++++---- .../Formbot/Raptor/Configuration_adv.h | 24 ++++++---- .../Formbot/T_Rex_2+/Configuration_adv.h | 24 ++++++---- .../Formbot/T_Rex_3/Configuration_adv.h | 24 ++++++---- .../Fysetc/AIO_II/Configuration_adv.h | 24 ++++++---- .../Fysetc/CHEETAH/Configuration_adv.h | 24 ++++++---- .../examples/Fysetc/F6_13/Configuration_adv.h | 24 ++++++---- .../examples/Geeetech/A10/Configuration_adv.h | 24 ++++++---- .../Geeetech/A10M/Configuration_adv.h | 24 ++++++---- .../Geeetech/A20M/Configuration_adv.h | 24 ++++++---- .../Geeetech/MeCreator2/Configuration_adv.h | 24 ++++++---- .../Prusa i3 Pro C/Configuration_adv.h | 24 ++++++---- .../Prusa i3 Pro W/Configuration_adv.h | 24 ++++++---- .../Infitary/i3-M508/Configuration_adv.h | 24 ++++++---- .../examples/JGAurora/A1/Configuration_adv.h | 24 ++++++---- .../examples/JGAurora/A5/Configuration_adv.h | 24 ++++++---- .../examples/JGAurora/A5S/Configuration_adv.h | 24 ++++++---- .../examples/MakerParts/Configuration_adv.h | 24 ++++++---- .../examples/Malyan/M150/Configuration_adv.h | 24 ++++++---- .../examples/Malyan/M200/Configuration_adv.h | 24 ++++++---- .../Micromake/C1/enhanced/Configuration_adv.h | 24 ++++++---- config/examples/Mks/Robin/Configuration_adv.h | 24 ++++++---- config/examples/Mks/Sbase/Configuration_adv.h | 24 ++++++---- .../RapideLite/RL200/Configuration_adv.h | 24 ++++++---- config/examples/RigidBot/Configuration_adv.h | 24 ++++++---- config/examples/SCARA/Configuration_adv.h | 24 ++++++---- .../Black_STM32F407VET6/Configuration_adv.h | 24 ++++++---- .../examples/Sanguinololu/Configuration_adv.h | 24 ++++++---- .../Tevo/Tarantula Pro/Configuration_adv.h | 24 ++++++---- config/examples/TheBorg/Configuration_adv.h | 24 ++++++---- config/examples/TinyBoy2/Configuration_adv.h | 24 ++++++---- .../examples/Tronxy/X3A/Configuration_adv.h | 24 ++++++---- .../Tronxy/X5S-2E/Configuration_adv.h | 24 ++++++---- .../UltiMachine/Archim1/Configuration_adv.h | 24 ++++++---- .../UltiMachine/Archim2/Configuration_adv.h | 24 ++++++---- .../examples/VORONDesign/Configuration_adv.h | 24 ++++++---- .../Velleman/K8200/Configuration_adv.h | 24 ++++++---- .../Velleman/K8400/Configuration_adv.h | 24 ++++++---- .../WASP/PowerWASP/Configuration_adv.h | 24 ++++++---- .../Wanhao/Duplicator 6/Configuration_adv.h | 24 ++++++---- .../delta/Anycubic/Kossel/Configuration_adv.h | 24 ++++++---- .../FLSUN/auto_calibrate/Configuration_adv.h | 24 ++++++---- .../delta/FLSUN/kossel/Configuration_adv.h | 24 ++++++---- .../FLSUN/kossel_mini/Configuration_adv.h | 24 ++++++---- .../Geeetech/Rostock 301/Configuration_adv.h | 24 ++++++---- .../delta/MKS/SBASE/Configuration_adv.h | 24 ++++++---- .../Tevo Little Monster/Configuration_adv.h | 24 ++++++---- .../delta/generic/Configuration_adv.h | 24 ++++++---- .../delta/kossel_mini/Configuration_adv.h | 24 ++++++---- .../delta/kossel_xl/Configuration_adv.h | 24 ++++++---- .../gCreate/gMax1.5+/Configuration_adv.h | 24 ++++++---- config/examples/makibox/Configuration_adv.h | 24 ++++++---- .../tvrrug/Round2/Configuration_adv.h | 24 ++++++---- config/examples/wt150/Configuration_adv.h | 24 ++++++---- 100 files changed, 1508 insertions(+), 860 deletions(-) diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index 716ba4f650..aa56f17b7b 100644 --- a/Marlin/Configuration_adv.h +++ b/Marlin/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/Marlin/src/HAL/HAL_LPC1768/SanityCheck.h b/Marlin/src/HAL/HAL_LPC1768/SanityCheck.h index 2338b34ee3..c0ba833f25 100644 --- a/Marlin/src/HAL/HAL_LPC1768/SanityCheck.h +++ b/Marlin/src/HAL/HAL_LPC1768/SanityCheck.h @@ -69,11 +69,3 @@ #if IS_RE_ARM_BOARD && ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) && HAS_DRIVER(TMC2130) && DISABLED(TMC_USE_SW_SPI) #error "Re-ARM with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER and TMC2130 require TMC_USE_SW_SPI" #endif - -#if 1 < (ENABLED(LPC_SD_CUSTOM_CABLE) + ENABLED(LPC_SD_LCD) + ENABLED(LPC_SD_ONBOARD)) - #error "Enable only one of LPC_SD_CUSTOM_CABLE, LPC_SD_LCD, or LPC_SD_ONBOARD." -#endif - -#if 1 < (ENABLED(USB_SD_DISABLED) + ENABLED(USB_SD_ONBOARD)) - #error "Enable only one of USB_SD_DISABLED or USB_SD_ONBOARD." -#endif diff --git a/Marlin/src/HAL/HAL_LPC1768/main.cpp b/Marlin/src/HAL/HAL_LPC1768/main.cpp index 258e150e29..86e7b5f996 100644 --- a/Marlin/src/HAL/HAL_LPC1768/main.cpp +++ b/Marlin/src/HAL/HAL_LPC1768/main.cpp @@ -81,8 +81,8 @@ void HAL_init() { OUT_WRITE(SS_PIN, HIGH); #endif - #if defined(ONBOARD_SD_CS) && ONBOARD_SD_CS > -1 - OUT_WRITE(ONBOARD_SD_CS, HIGH); + #if PIN_EXISTS(ONBOARD_SD_CS) && ONBOARD_SD_CS_PIN != SS_PIN + OUT_WRITE(ONBOARD_SD_CS_PIN, HIGH); #endif USB_Init(); // USB Initialization @@ -90,7 +90,7 @@ void HAL_init() { delay(1000); // Give OS time to notice USB_Connect(TRUE); - #if DISABLED(USB_SD_DISABLED) + #if !BOTH(SHARED_SD_CARD, INIT_SDCARD_ON_BOOT) && DISABLED(NO_SD_HOST_DRIVE) MSC_SD_Init(0); // Enable USB SD card access #endif @@ -117,7 +117,7 @@ void HAL_init() { // HAL idle task void HAL_idletask(void) { - #if BOTH(SDSUPPORT, SHARED_SD_CARD) + #if ENABLED(SHARED_SD_CARD) // If Marlin is using the SD card we need to lock it to prevent access from // a PC via USB. // Other HALs use IS_SD_PRINTING() and IS_SD_FILE_OPEN() to check for access but diff --git a/Marlin/src/Marlin.cpp b/Marlin/src/Marlin.cpp index d94f0d183e..cc4ee1b705 100644 --- a/Marlin/src/Marlin.cpp +++ b/Marlin/src/Marlin.cpp @@ -1098,7 +1098,7 @@ void setup() { init_closedloop(); #endif - #if ENABLED(SDSUPPORT) && DISABLED(ULTRA_LCD) + #if ENABLED(INIT_SDCARD_ON_BOOT) && DISABLED(ULTRA_LCD) card.beginautostart(); #endif diff --git a/Marlin/src/core/drivers.h b/Marlin/src/core/drivers.h index 9eca0a7168..597d3904e1 100644 --- a/Marlin/src/core/drivers.h +++ b/Marlin/src/core/drivers.h @@ -48,8 +48,8 @@ #define _TMC5160 5160 #define _TMC5160_STANDALONE 5161 -#define _ACTUAL(V) _CAT(_, V) -#define _AXIS_DRIVER_TYPE(A,T) (defined(A##_DRIVER_TYPE) && _ACTUAL(A##_DRIVER_TYPE) == _CAT(_, T)) +#define _DRIVER_ID(V) _CAT(_, V) +#define _AXIS_DRIVER_TYPE(A,T) (_DRIVER_ID(A##_DRIVER_TYPE) == _CAT(_, T)) #define AXIS_DRIVER_TYPE_X(T) _AXIS_DRIVER_TYPE(X,T) #define AXIS_DRIVER_TYPE_Y(T) _AXIS_DRIVER_TYPE(Y,T) @@ -116,3 +116,12 @@ || AXIS_DRIVER_TYPE(A,TMC2209) \ || AXIS_DRIVER_TYPE(A,TMC5130) \ || AXIS_DRIVER_TYPE(A,TMC5160) ) + +// +// Stretching 'drivers.h' to include LPC SD options +// +#define _SDCARD_LCD 1 +#define _SDCARD_ONBOARD 2 +#define _SDCARD_CUSTOM_CABLE 3 +#define _SDCARD_ID(V) _CAT(_SDCARD_, V) +#define SD_CONNECTION_IS(V) (_SDCARD_ID(SDCARD_CONNECTION) == _SDCARD_ID(V)) diff --git a/Marlin/src/inc/Conditionals_post.h b/Marlin/src/inc/Conditionals_post.h index d5d0e89994..83d081d932 100644 --- a/Marlin/src/inc/Conditionals_post.h +++ b/Marlin/src/inc/Conditionals_post.h @@ -1727,3 +1727,18 @@ #define LCD_HEIGHT 2 #endif #endif + +// +// The external SD card is not used. Hardware SPI is used to access the card. +// When sharing the SD card with a PC we want the menu options to +// mount/unmount the card and refresh it. So we disable card detect. +// +#if ENABLED(SDSUPPORT) + #if SD_CONNECTION_IS(ONBOARD) && DISABLED(NO_SD_HOST_DRIVE) + #undef SD_DETECT_PIN + #define SHARED_SD_CARD + #endif + #if DISABLED(SHARED_SD_CARD) + #define INIT_SDCARD_ON_BOOT + #endif +#endif diff --git a/Marlin/src/inc/SanityCheck.h b/Marlin/src/inc/SanityCheck.h index 9fb9847658..a0a416e3e2 100644 --- a/Marlin/src/inc/SanityCheck.h +++ b/Marlin/src/inc/SanityCheck.h @@ -362,6 +362,12 @@ #error "MENU_ITEM_CASE_LIGHT is now CASE_LIGHT_MENU. Please update your configuration." #elif defined(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED) #error "ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED is now SD_ABORT_ON_ENDSTOP_HIT. Please update your Configuration_adv.h." +#elif defined(LPC_SD_LCD) || defined(LPC_SD_ONBOARD) || defined(LPC_SD_CUSTOM_CABLE) + #error "LPC_SD_(LCD|ONBOARD|CUSTOM_CABLE) are now SDCARD_CONNECTION. Please update your Configuration_adv.h." +#elif defined(USB_SD_DISABLED) + #error "USB_SD_DISABLED is now NO_SD_HOST_DRIVE. Please update your Configuration_adv.h." +#elif defined(USB_SD_ONBOARD) + #error "USB_SD_ONBOARD is obsolete. Disable NO_SD_HOST_DRIVE instead." #endif #define BOARD_MKS_13 -47 diff --git a/Marlin/src/lcd/ultralcd.cpp b/Marlin/src/lcd/ultralcd.cpp index 998541cc23..fd99db7882 100644 --- a/Marlin/src/lcd/ultralcd.cpp +++ b/Marlin/src/lcd/ultralcd.cpp @@ -104,7 +104,7 @@ #endif #endif -#if ENABLED(SDSUPPORT) +#if ENABLED(INIT_SDCARD_ON_BOOT) uint8_t lcd_sd_status; #endif @@ -319,7 +319,9 @@ void MarlinUI::init() { #if PIN_EXISTS(SD_DETECT) SET_INPUT_PULLUP(SD_DETECT_PIN); #endif - lcd_sd_status = 2; // UNKNOWN + #if ENABLED(INIT_SDCARD_ON_BOOT) + lcd_sd_status = 2; // UNKNOWN + #endif #endif #if HAS_ENCODER_ACTION && HAS_SLOW_BUTTONS @@ -770,7 +772,7 @@ void MarlinUI::update() { #endif // HAS_LCD_MENU - #if ENABLED(SDSUPPORT) + #if ENABLED(INIT_SDCARD_ON_BOOT) const uint8_t sd_status = (uint8_t)IS_SD_INSERTED(); if (sd_status != lcd_sd_status && detected()) { @@ -811,7 +813,7 @@ void MarlinUI::update() { #endif } - #endif // SDSUPPORT + #endif // INIT_SDCARD_ON_BOOT if (ELAPSED(ms, next_lcd_update_ms) #if HAS_GRAPHICAL_LCD diff --git a/Marlin/src/pins/pins_AZSMZ_MINI.h b/Marlin/src/pins/pins_AZSMZ_MINI.h index c254f2e984..adb79e2dd1 100644 --- a/Marlin/src/pins/pins_AZSMZ_MINI.h +++ b/Marlin/src/pins/pins_AZSMZ_MINI.h @@ -86,7 +86,7 @@ #define FAN1_PIN P0_26 #define LCD_SDSS P0_16 // LCD SD chip select -#define ONBOARD_SD_CS P0_06 // On board SD chip select +#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card #if ENABLED(AZSMZ_12864) #define BEEPER_PIN P1_30 @@ -95,28 +95,24 @@ #define BTN_EN1 P4_28 #define BTN_EN2 P1_27 #define BTN_ENC P3_26 - #if DISABLED(LPC_SD_ONBOARD) - #define LPC_SD_LCD + #ifndef SDCARD_CONNECTION + #define SDCARD_CONNECTION LCD #endif #endif -#if ENABLED(LPC_SD_LCD) +#if SD_CONNECTION_IS(LCD) #define SCK_PIN P0_15 #define MISO_PIN P0_17 #define MOSI_PIN P0_18 #define SS_PIN LCD_SDSS #define SD_DETECT_PIN P3_25 -#elif ENABLED(LPC_SD_ONBOARD) - #if ENABLED(USB_SD_ONBOARD) - // When sharing the SD card with a PC we want the menu options to - // mount/unmount the card and refresh it. So we disable card detect. - #define SHARED_SD_CARD - #undef SD_DETECT_PIN - #endif +#elif SD_CONNECTION_IS(ONBOARD) #define SCK_PIN P0_07 #define MISO_PIN P0_08 #define MOSI_PIN P0_09 - #define SS_PIN ONBOARD_SD_CS + #define SS_PIN ONBOARD_SD_CS_PIN +#elif SD_CONNECTION_IS(CUSTOM_CABLE) + #error "No custom SD drive cable defined for this board." #endif // diff --git a/Marlin/src/pins/pins_AZTEEG_X5_MINI.h b/Marlin/src/pins/pins_AZTEEG_X5_MINI.h index 0f3e454371..8fed8279de 100644 --- a/Marlin/src/pins/pins_AZTEEG_X5_MINI.h +++ b/Marlin/src/pins/pins_AZTEEG_X5_MINI.h @@ -189,30 +189,23 @@ // // SD Support // -#if !ANY(LPC_SD_LCD, LPC_SD_ONBOARD, LPC_SD_CUSTOM_CABLE) - #define LPC_SD_ONBOARD +#ifndef SDCARD_CONNECTION + #define SDCARD_CONNECTION ONBOARD #endif -#if ENABLED(LPC_SD_LCD) - - #define SCK_PIN P0_15 - #define MISO_PIN P0_17 - #define MOSI_PIN P0_18 - #define SS_PIN P1_23 // Chip select for SD card used by Marlin - #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card - -#elif ENABLED(LPC_SD_ONBOARD) - - #if ENABLED(USB_SD_ONBOARD) - // When sharing the SD card with a PC we want the menu options to - // mount/unmount the card and refresh it. So we disable card detect. - #define SHARED_SD_CARD - #undef SD_DETECT_PIN // there is also no detect pin for the onboard card - #endif - #define SCK_PIN P0_07 - #define MISO_PIN P0_08 - #define MOSI_PIN P0_09 - #define SS_PIN P0_06 // Chip select for SD card used by Marlin - #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card +#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card +#if SD_CONNECTION_IS(LCD) + #define SCK_PIN P0_15 + #define MISO_PIN P0_17 + #define MOSI_PIN P0_18 + #define SS_PIN P1_23 +#elif SD_CONNECTION_IS(ONBOARD) + #undef SD_DETECT_PIN + #define SCK_PIN P0_07 + #define MISO_PIN P0_08 + #define MOSI_PIN P0_09 + #define SS_PIN ONBOARD_SD_CS_PIN +#elif SD_CONNECTION_IS(CUSTOM_CABLE) + #error "No custom SD drive cable defined for this board." #endif diff --git a/Marlin/src/pins/pins_BIGTREE_SKR_V1.3.h b/Marlin/src/pins/pins_BIGTREE_SKR_V1.3.h index 7509eddbba..751a7d1cac 100644 --- a/Marlin/src/pins/pins_BIGTREE_SKR_V1.3.h +++ b/Marlin/src/pins/pins_BIGTREE_SKR_V1.3.h @@ -255,42 +255,32 @@ // SD Support // -#if !ANY(LPC_SD_LCD, LPC_SD_ONBOARD, LPC_SD_CUSTOM_CABLE) - #undef USB_SD_DISABLED - #define USB_SD_ONBOARD - #define LPC_SD_LCD +#ifndef SDCARD_CONNECTION + #define SDCARD_CONNECTION LCD #endif -#if ENABLED(LPC_SD_LCD) +#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card +#if SD_CONNECTION_IS(LCD) #define SCK_PIN P0_15 #define MISO_PIN P0_17 #define MOSI_PIN P0_18 - #define SS_PIN P0_16 // Chip select for SD card used by Marlin - #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card - -#elif ENABLED(LPC_SD_ONBOARD) - - #if ENABLED(USB_SD_ONBOARD) - // When sharing the SD card with a PC we want the menu options to - // mount/unmount the card and refresh it. So we disable card detect. - #define SHARED_SD_CARD - #undef SD_DETECT_PIN - //#define SD_DETECT_PIN P0_27 // (57) open-drain - #endif - + #define SS_PIN P0_16 +#elif SD_CONNECTION_IS(ONBOARD) + #undef SD_DETECT_PIN + #define SD_DETECT_PIN P0_27 #define SCK_PIN P0_07 #define MISO_PIN P0_08 #define MOSI_PIN P0_09 - #define SS_PIN P0_06 // Chip select for SD card used by Marlin - #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card - + #define SS_PIN ONBOARD_SD_CS_PIN +#elif SD_CONNECTION_IS(CUSTOM_CABLE) + #error "No custom SD drive cable defined for this board." #endif - /** - * Special pins - * P1_30 (37) (NOT 5V tolerant) - * P1_31 (49) (NOT 5V tolerant) - * P0_27 (57) (Open collector) - * P0_28 (58) (Open collector) - */ +/** + * Special pins + * P1_30 (37) (NOT 5V tolerant) + * P1_31 (49) (NOT 5V tolerant) + * P0_27 (57) (Open collector) + * P0_28 (58) (Open collector) + */ diff --git a/Marlin/src/pins/pins_BIQU_SKR_V1.1.h b/Marlin/src/pins/pins_BIQU_SKR_V1.1.h index 17af3c4d04..de32e11efb 100644 --- a/Marlin/src/pins/pins_BIQU_SKR_V1.1.h +++ b/Marlin/src/pins/pins_BIQU_SKR_V1.1.h @@ -118,39 +118,30 @@ // MKS_MINI_12864 strongly prefers the SD card on the display and // requires jumpers on the SKR V1.1 board as documented here: // https://www.facebook.com/groups/505736576548648/permalink/630639874058317/ -#if !ANY(LPC_SD_LCD, LPC_SD_ONBOARD, LPC_SD_CUSTOM_CABLE) +#ifndef SDCARD_CONNECTION #if ENABLED(MKS_MINI_12864) - #define LPC_SD_LCD - #undef USB_SD_DISABLED - #define USB_SD_ONBOARD + #define SDCARD_CONNECTION LCD #else - #define USB_SD_ONBOARD - #define LPC_SD_ONBOARD + #define SDCARD_CONNECTION ONBOARD #endif #endif -#if ENABLED(LPC_SD_LCD) +#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card +#if SD_CONNECTION_IS(LCD) #define SCK_PIN P0_15 #define MISO_PIN P0_17 #define MOSI_PIN P0_18 - #define SS_PIN P1_23 // Chip select for SD card used by Marlin - #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card - -#elif ENABLED(LPC_SD_ONBOARD) - - #if ENABLED(USB_SD_ONBOARD) - // When sharing the SD card with a PC we want the menu options to - // mount/unmount the card and refresh it. So we disable card detect. - #define SHARED_SD_CARD - #undef SD_DETECT_PIN // there is also no detect pin for the onboard card - #endif + #define SS_PIN P1_23 +#elif SD_CONNECTION_IS(ONBOARD) + #undef SD_DETECT_PIN + #define SD_DETECT_PIN P0_27 #define SCK_PIN P0_07 #define MISO_PIN P0_08 #define MOSI_PIN P0_09 - #define SS_PIN P0_06 // Chip select for SD card used by Marlin - #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card - + #define SS_PIN ONBOARD_SD_CS_PIN +#elif SD_CONNECTION_IS(CUSTOM_CABLE) + #error "No custom SD drive cable defined for this board." #endif // Trinamic driver support @@ -232,11 +223,11 @@ // EXAMPLES // Example 1: No LCD attached or a TFT style display using the AUX header RX/TX pins. - // LPC_SD_LCD must not be enabled. Nothing should be connected to EXP1/EXP2. + // SDCARD_CONNECTION must not be 'LCD'. Nothing should be connected to EXP1/EXP2. //#define SKR_USE_LCD_PINS_FOR_CS #if ENABLED(SKR_USE_LCD_PINS_FOR_CS) - #if ENABLED(LPC_SD_LCD) - #error "LPC_SD_LCD must not be enabled with SKR_USE_LCD_PINS_FOR_CS." + #if SD_CONNECTION_IS(LCD) + #error "SDCARD_CONNECTION must not be 'LCD' with SKR_USE_LCD_PINS_FOR_CS." #endif #define X_CS_PIN P1_23 #define Y_CS_PIN P3_26 @@ -247,11 +238,11 @@ // Example 2: A REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER // The SD card reader attached to the LCD (if present) can't be used because - // the pins will be in use. So LPC_SD_LCD must not be defined. + // the pins will be in use. So SDCARD_CONNECTION must not be 'LCD'. //#define SKR_USE_LCD_SD_CARD_PINS_FOR_CS #if ENABLED(SKR_USE_LCD_SD_CARD_PINS_FOR_CS) - #if ENABLED(LPC_SD_LCD) - #error "LPC_SD_LCD must not be enabled with SKR_USE_LCD_SD_CARD_PINS_FOR_CS." + #if SD_CONNECTION_IS(LCD) + #error "SDCARD_CONNECTION must not be 'LCD' with SKR_USE_LCD_SD_CARD_PINS_FOR_CS." #endif #define X_CS_PIN P0_02 #define Y_CS_PIN P0_03 diff --git a/Marlin/src/pins/pins_COHESION3D_REMIX.h b/Marlin/src/pins/pins_COHESION3D_REMIX.h index 29979792ef..942495c957 100644 --- a/Marlin/src/pins/pins_COHESION3D_REMIX.h +++ b/Marlin/src/pins/pins_COHESION3D_REMIX.h @@ -213,35 +213,25 @@ // // SD Support // -#if NONE(LPC_SD_LCD, LPC_SD_ONBOARD, LPC_SD_CUSTOM_CABLE) - #undef USB_SD_DISABLED - #define USB_SD_ONBOARD - #define LPC_SD_ONBOARD +#ifndef SDCARD_CONNECTION + #define SDCARD_CONNECTION ONBOARD #endif -#if ENABLED(LPC_SD_LCD) +#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card +#if SD_CONNECTION_IS(LCD) #define SCK_PIN P0_07 // (52) system defined J3-9 & AUX-3 #define MISO_PIN P0_08 // (50) system defined J3-10 & AUX-3 #define MOSI_PIN P0_09 // (51) system defined J3-10 & AUX-3 #define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin - #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card - -#elif ENABLED(LPC_SD_ONBOARD) - - #if ENABLED(USB_SD_ONBOARD) - // When sharing the SD card with a PC the LCD menu options are - // needed to mount/unmount and refresh SD. So disable SD detect. - #define SHARED_SD_CARD - #undef SD_DETECT_PIN // No SD detect pin for the onboard card - #endif - +#elif SD_CONNECTION_IS(ONBOARD) + #undef SD_DETECT_PIN #define SCK_PIN P0_07 #define MISO_PIN P0_08 #define MOSI_PIN P0_09 - #define SS_PIN P0_06 // Chip select for SD card used by Marlin - #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card - + #define SS_PIN ONBOARD_SD_CS_PIN +#elif SD_CONNECTION_IS(CUSTOM_CABLE) + #error "No custom SD drive cable defined for this board." #endif // diff --git a/Marlin/src/pins/pins_MKS_SBASE.h b/Marlin/src/pins/pins_MKS_SBASE.h index f9fb944982..95347a05de 100644 --- a/Marlin/src/pins/pins_MKS_SBASE.h +++ b/Marlin/src/pins/pins_MKS_SBASE.h @@ -158,13 +158,13 @@ #define ENET_TXD0 P1_00 // J12-11 #define ENET_TXD1 P1_01 // J12-12 -#if !ANY(LPC_SD_LCD, LPC_SD_ONBOARD, LPC_SD_CUSTOM_CABLE) - #undef USB_SD_DISABLED - #define USB_SD_ONBOARD - #define LPC_SD_ONBOARD +#ifndef SDARD_CONNECTION + #define SDCARD_CONNECTION ONBOARD #endif -#if ENABLED(LPC_SD_CUSTOM_CABLE) +#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card + +#if SD_CONNECTION_IS(CUSTOM_CABLE) /** * A custom cable is needed. See the README file in the @@ -182,37 +182,23 @@ #define SCK_PIN P1_22 // J8-2 (moved from EXP2 P0.7) #define MISO_PIN P1_23 // J8-3 (moved from EXP2 P0.8) #define MOSI_PIN P2_12 // J8-4 (moved from EXP2 P0.9) - #define SS_PIN P0_28 // Chip select for SD card used by Marlin - #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card + #define SS_PIN P0_28 #define LPC_SOFTWARE_SPI // With a custom cable we need software SPI because the // selected pins are not on a hardware SPI controller -#elif ENABLED(LPC_SD_LCD) - +#elif SD_CONNECTION_IS(LCD) // use standard cable and header, SPI and SD detect sre shared with on-board SD card // hardware SPI is used for both SD cards. The detect pin is shred between the // LCD and onboard SD readers so we disable it. #define SCK_PIN P0_07 #define MISO_PIN P0_08 #define MOSI_PIN P0_09 - #define SS_PIN P0_28 // Chip select for SD card used by Marlin - #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card - -#elif ENABLED(LPC_SD_ONBOARD) - - // The external SD card is not used. Hardware SPI is used to access the card. - #if ENABLED(USB_SD_ONBOARD) - // When sharing the SD card with a PC we want the menu options to - // mount/unmount the card and refresh it. So we disable card detect. - #define SHARED_SD_CARD - #else - #define SD_DETECT_PIN P0_27 - #endif + #define SS_PIN P0_28 +#elif SD_CONNECTION_IS(ONBOARD) + #define SD_DETECT_PIN P0_27 #define SCK_PIN P0_07 #define MISO_PIN P0_08 #define MOSI_PIN P0_09 - #define SS_PIN P0_06 // Chip select for SD card used by Marlin - #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card - + #define SS_PIN ONBOARD_SD_CS_PIN #endif /** diff --git a/Marlin/src/pins/pins_RAMPS_RE_ARM.h b/Marlin/src/pins/pins_RAMPS_RE_ARM.h index 74296512eb..5de4f42db2 100644 --- a/Marlin/src/pins/pins_RAMPS_RE_ARM.h +++ b/Marlin/src/pins/pins_RAMPS_RE_ARM.h @@ -413,35 +413,25 @@ // // SD Support // -#if !ANY(LPC_SD_LCD, LPC_SD_ONBOARD, LPC_SD_CUSTOM_CABLE) - #undef USB_SD_DISABLED - #define USB_SD_ONBOARD - #define LPC_SD_ONBOARD +#ifndef SDCARD_CONNECTION + #define SDCARD_CONNECTION ONBOARD #endif -#if ENABLED(LPC_SD_LCD) +#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card +#if SD_CONNECTION_IS(LCD) #define SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3 #define MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3 #define MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3 #define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin - #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card - -#elif ENABLED(LPC_SD_ONBOARD) - - #if ENABLED(USB_SD_ONBOARD) - // When sharing the SD card with a PC we want the menu options to - // mount/unmount the card and refresh it. So we disable card detect. - #define SHARED_SD_CARD - #undef SD_DETECT_PIN // there is also no detect pin for the onboard card - #endif - +#elif SD_CONNECTION_IS(ONBOARD) + #undef SD_DETECT_PIN #define SCK_PIN P0_07 #define MISO_PIN P0_08 #define MOSI_PIN P0_09 - #define SS_PIN P0_06 // Chip select for SD card used by Marlin - #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card - + #define SS_PIN ONBOARD_SD_CS_PIN +#elif SD_CONNECTION_IS(CUSTOM_CABLE) + #error "No custom SD drive cable defined for this board." #endif /** diff --git a/config/default/Configuration_adv.h b/config/default/Configuration_adv.h index f1892f3c50..c2822c362c 100644 --- a/config/default/Configuration_adv.h +++ b/config/default/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/3DFabXYZ/Migbot/Configuration_adv.h b/config/examples/3DFabXYZ/Migbot/Configuration_adv.h index 72380b32d5..f7160cf9f2 100644 --- a/config/examples/3DFabXYZ/Migbot/Configuration_adv.h +++ b/config/examples/3DFabXYZ/Migbot/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/AlephObjects/TAZ4/Configuration_adv.h b/config/examples/AlephObjects/TAZ4/Configuration_adv.h index bc565dc31e..ac13c0219b 100644 --- a/config/examples/AlephObjects/TAZ4/Configuration_adv.h +++ b/config/examples/AlephObjects/TAZ4/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/AliExpress/UM2pExt/Configuration_adv.h b/config/examples/AliExpress/UM2pExt/Configuration_adv.h index 2a46411281..0929ccc12f 100644 --- a/config/examples/AliExpress/UM2pExt/Configuration_adv.h +++ b/config/examples/AliExpress/UM2pExt/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Anet/A2/Configuration_adv.h b/config/examples/Anet/A2/Configuration_adv.h index 155e41dd48..684b68f24b 100644 --- a/config/examples/Anet/A2/Configuration_adv.h +++ b/config/examples/Anet/A2/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Anet/A2plus/Configuration_adv.h b/config/examples/Anet/A2plus/Configuration_adv.h index 155e41dd48..684b68f24b 100644 --- a/config/examples/Anet/A2plus/Configuration_adv.h +++ b/config/examples/Anet/A2plus/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Anet/A6/Configuration_adv.h b/config/examples/Anet/A6/Configuration_adv.h index 8c0bf1636c..b4fe3ceb85 100644 --- a/config/examples/Anet/A6/Configuration_adv.h +++ b/config/examples/Anet/A6/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Anet/A8/Configuration_adv.h b/config/examples/Anet/A8/Configuration_adv.h index fe44b80f5f..fc80e6e057 100644 --- a/config/examples/Anet/A8/Configuration_adv.h +++ b/config/examples/Anet/A8/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Anet/A8plus/Configuration_adv.h b/config/examples/Anet/A8plus/Configuration_adv.h index 19f66cbd0f..0fd674104b 100644 --- a/config/examples/Anet/A8plus/Configuration_adv.h +++ b/config/examples/Anet/A8plus/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Anet/E16/Configuration_adv.h b/config/examples/Anet/E16/Configuration_adv.h index 6ec457121f..e942937aa9 100644 --- a/config/examples/Anet/E16/Configuration_adv.h +++ b/config/examples/Anet/E16/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/AnyCubic/i3/Configuration_adv.h b/config/examples/AnyCubic/i3/Configuration_adv.h index 281a9d7088..a9b9791774 100644 --- a/config/examples/AnyCubic/i3/Configuration_adv.h +++ b/config/examples/AnyCubic/i3/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/ArmEd/Configuration_adv.h b/config/examples/ArmEd/Configuration_adv.h index dbc66acf16..54e749af5e 100644 --- a/config/examples/ArmEd/Configuration_adv.h +++ b/config/examples/ArmEd/Configuration_adv.h @@ -1038,19 +1038,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h b/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h index b703f23148..fd7b86887c 100644 --- a/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h +++ b/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/BIBO/TouchX/default/Configuration_adv.h b/config/examples/BIBO/TouchX/default/Configuration_adv.h index 4ab80f8b96..d05c689783 100644 --- a/config/examples/BIBO/TouchX/default/Configuration_adv.h +++ b/config/examples/BIBO/TouchX/default/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/BQ/Hephestos/Configuration_adv.h b/config/examples/BQ/Hephestos/Configuration_adv.h index cafccf1a0c..83d009cff7 100644 --- a/config/examples/BQ/Hephestos/Configuration_adv.h +++ b/config/examples/BQ/Hephestos/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/BQ/Hephestos_2/Configuration_adv.h b/config/examples/BQ/Hephestos_2/Configuration_adv.h index 4d0710667a..64a52ea5e2 100644 --- a/config/examples/BQ/Hephestos_2/Configuration_adv.h +++ b/config/examples/BQ/Hephestos_2/Configuration_adv.h @@ -1042,19 +1042,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/BQ/WITBOX/Configuration_adv.h b/config/examples/BQ/WITBOX/Configuration_adv.h index cafccf1a0c..83d009cff7 100644 --- a/config/examples/BQ/WITBOX/Configuration_adv.h +++ b/config/examples/BQ/WITBOX/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Cartesio/Configuration_adv.h b/config/examples/Cartesio/Configuration_adv.h index 34b246e170..65679006f3 100644 --- a/config/examples/Cartesio/Configuration_adv.h +++ b/config/examples/Cartesio/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Creality/CR-10/Configuration_adv.h b/config/examples/Creality/CR-10/Configuration_adv.h index dbaa0b6c3d..c7c6a2182d 100644 --- a/config/examples/Creality/CR-10/Configuration_adv.h +++ b/config/examples/Creality/CR-10/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Creality/CR-10S/Configuration_adv.h b/config/examples/Creality/CR-10S/Configuration_adv.h index c0f7f8c36d..f33a9a6a44 100644 --- a/config/examples/Creality/CR-10S/Configuration_adv.h +++ b/config/examples/Creality/CR-10S/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Creality/CR-10_5S/Configuration_adv.h b/config/examples/Creality/CR-10_5S/Configuration_adv.h index 30731a844a..3251a34609 100644 --- a/config/examples/Creality/CR-10_5S/Configuration_adv.h +++ b/config/examples/Creality/CR-10_5S/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Creality/CR-10mini/Configuration_adv.h b/config/examples/Creality/CR-10mini/Configuration_adv.h index c8a3772e9f..8cf2183e9c 100644 --- a/config/examples/Creality/CR-10mini/Configuration_adv.h +++ b/config/examples/Creality/CR-10mini/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Creality/CR-8/Configuration_adv.h b/config/examples/Creality/CR-8/Configuration_adv.h index 6647872b28..c48a86e460 100644 --- a/config/examples/Creality/CR-8/Configuration_adv.h +++ b/config/examples/Creality/CR-8/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Creality/Ender-2/Configuration_adv.h b/config/examples/Creality/Ender-2/Configuration_adv.h index 40d2e65b81..efcce34f80 100644 --- a/config/examples/Creality/Ender-2/Configuration_adv.h +++ b/config/examples/Creality/Ender-2/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Creality/Ender-3/Configuration_adv.h b/config/examples/Creality/Ender-3/Configuration_adv.h index 342c500a6b..e31c93a300 100644 --- a/config/examples/Creality/Ender-3/Configuration_adv.h +++ b/config/examples/Creality/Ender-3/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Creality/Ender-4/Configuration_adv.h b/config/examples/Creality/Ender-4/Configuration_adv.h index ed6cb1515e..c2f441b051 100644 --- a/config/examples/Creality/Ender-4/Configuration_adv.h +++ b/config/examples/Creality/Ender-4/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Dagoma/Disco Ultimate/Configuration_adv.h b/config/examples/Dagoma/Disco Ultimate/Configuration_adv.h index 7bf9798be0..74b664ac4d 100644 --- a/config/examples/Dagoma/Disco Ultimate/Configuration_adv.h +++ b/config/examples/Dagoma/Disco Ultimate/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/EVNOVO (Artillery)/Sidewinder X1/Configuration_adv.h b/config/examples/EVNOVO (Artillery)/Sidewinder X1/Configuration_adv.h index 8fde577ec1..85eb03fc85 100755 --- a/config/examples/EVNOVO (Artillery)/Sidewinder X1/Configuration_adv.h +++ b/config/examples/EVNOVO (Artillery)/Sidewinder X1/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Einstart-S/Configuration_adv.h b/config/examples/Einstart-S/Configuration_adv.h index 2670e9736b..fe93898804 100644 --- a/config/examples/Einstart-S/Configuration_adv.h +++ b/config/examples/Einstart-S/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Felix/Configuration_adv.h b/config/examples/Felix/Configuration_adv.h index 344b059218..1c38715252 100644 --- a/config/examples/Felix/Configuration_adv.h +++ b/config/examples/Felix/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/FlashForge/CreatorPro/Configuration_adv.h b/config/examples/FlashForge/CreatorPro/Configuration_adv.h index adf61951b2..3a578cb176 100644 --- a/config/examples/FlashForge/CreatorPro/Configuration_adv.h +++ b/config/examples/FlashForge/CreatorPro/Configuration_adv.h @@ -1033,19 +1033,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/FolgerTech/i3-2020/Configuration_adv.h b/config/examples/FolgerTech/i3-2020/Configuration_adv.h index 01ac0bf3bf..a8ee6c67ed 100644 --- a/config/examples/FolgerTech/i3-2020/Configuration_adv.h +++ b/config/examples/FolgerTech/i3-2020/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Formbot/Raptor/Configuration_adv.h b/config/examples/Formbot/Raptor/Configuration_adv.h index 99db3b2db5..32f1df5f10 100644 --- a/config/examples/Formbot/Raptor/Configuration_adv.h +++ b/config/examples/Formbot/Raptor/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Formbot/T_Rex_2+/Configuration_adv.h b/config/examples/Formbot/T_Rex_2+/Configuration_adv.h index a9d025df7a..a8d6fbb407 100644 --- a/config/examples/Formbot/T_Rex_2+/Configuration_adv.h +++ b/config/examples/Formbot/T_Rex_2+/Configuration_adv.h @@ -1038,19 +1038,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Formbot/T_Rex_3/Configuration_adv.h b/config/examples/Formbot/T_Rex_3/Configuration_adv.h index 93a103bed1..7a16b66ec7 100644 --- a/config/examples/Formbot/T_Rex_3/Configuration_adv.h +++ b/config/examples/Formbot/T_Rex_3/Configuration_adv.h @@ -1038,19 +1038,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Fysetc/AIO_II/Configuration_adv.h b/config/examples/Fysetc/AIO_II/Configuration_adv.h index 7103fdc04e..9f3defe54c 100644 --- a/config/examples/Fysetc/AIO_II/Configuration_adv.h +++ b/config/examples/Fysetc/AIO_II/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Fysetc/CHEETAH/Configuration_adv.h b/config/examples/Fysetc/CHEETAH/Configuration_adv.h index 6210a14277..a187c47082 100644 --- a/config/examples/Fysetc/CHEETAH/Configuration_adv.h +++ b/config/examples/Fysetc/CHEETAH/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Fysetc/F6_13/Configuration_adv.h b/config/examples/Fysetc/F6_13/Configuration_adv.h index eb18c9cd8c..5571e15032 100644 --- a/config/examples/Fysetc/F6_13/Configuration_adv.h +++ b/config/examples/Fysetc/F6_13/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Geeetech/A10/Configuration_adv.h b/config/examples/Geeetech/A10/Configuration_adv.h index 0ccb43ca2b..c95a9dee66 100644 --- a/config/examples/Geeetech/A10/Configuration_adv.h +++ b/config/examples/Geeetech/A10/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Geeetech/A10M/Configuration_adv.h b/config/examples/Geeetech/A10M/Configuration_adv.h index 78f1411c56..3dbfaaf82a 100644 --- a/config/examples/Geeetech/A10M/Configuration_adv.h +++ b/config/examples/Geeetech/A10M/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Geeetech/A20M/Configuration_adv.h b/config/examples/Geeetech/A20M/Configuration_adv.h index 1bb275a2f2..6852646e48 100644 --- a/config/examples/Geeetech/A20M/Configuration_adv.h +++ b/config/examples/Geeetech/A20M/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Geeetech/MeCreator2/Configuration_adv.h b/config/examples/Geeetech/MeCreator2/Configuration_adv.h index 57a8897e9d..c870589b12 100644 --- a/config/examples/Geeetech/MeCreator2/Configuration_adv.h +++ b/config/examples/Geeetech/MeCreator2/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h b/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h index 0ccb43ca2b..c95a9dee66 100644 --- a/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h +++ b/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h b/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h index 0ccb43ca2b..c95a9dee66 100644 --- a/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h +++ b/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Infitary/i3-M508/Configuration_adv.h b/config/examples/Infitary/i3-M508/Configuration_adv.h index 18ab138d92..268b48baf7 100644 --- a/config/examples/Infitary/i3-M508/Configuration_adv.h +++ b/config/examples/Infitary/i3-M508/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/JGAurora/A1/Configuration_adv.h b/config/examples/JGAurora/A1/Configuration_adv.h index c113548d4b..4acf12cecb 100644 --- a/config/examples/JGAurora/A1/Configuration_adv.h +++ b/config/examples/JGAurora/A1/Configuration_adv.h @@ -1039,19 +1039,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/JGAurora/A5/Configuration_adv.h b/config/examples/JGAurora/A5/Configuration_adv.h index f6c697d6fe..d84722e23a 100644 --- a/config/examples/JGAurora/A5/Configuration_adv.h +++ b/config/examples/JGAurora/A5/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/JGAurora/A5S/Configuration_adv.h b/config/examples/JGAurora/A5S/Configuration_adv.h index c113548d4b..4acf12cecb 100644 --- a/config/examples/JGAurora/A5S/Configuration_adv.h +++ b/config/examples/JGAurora/A5S/Configuration_adv.h @@ -1039,19 +1039,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/MakerParts/Configuration_adv.h b/config/examples/MakerParts/Configuration_adv.h index e7bfc3c164..f97cee78e8 100644 --- a/config/examples/MakerParts/Configuration_adv.h +++ b/config/examples/MakerParts/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Malyan/M150/Configuration_adv.h b/config/examples/Malyan/M150/Configuration_adv.h index dbe88b94e4..c647cd85e1 100644 --- a/config/examples/Malyan/M150/Configuration_adv.h +++ b/config/examples/Malyan/M150/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Malyan/M200/Configuration_adv.h b/config/examples/Malyan/M200/Configuration_adv.h index 7692827c70..18c50765a6 100644 --- a/config/examples/Malyan/M200/Configuration_adv.h +++ b/config/examples/Malyan/M200/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Micromake/C1/enhanced/Configuration_adv.h b/config/examples/Micromake/C1/enhanced/Configuration_adv.h index bea5b7798c..bc6e4e9a49 100644 --- a/config/examples/Micromake/C1/enhanced/Configuration_adv.h +++ b/config/examples/Micromake/C1/enhanced/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Mks/Robin/Configuration_adv.h b/config/examples/Mks/Robin/Configuration_adv.h index a5b5a87712..cb1defe2f0 100644 --- a/config/examples/Mks/Robin/Configuration_adv.h +++ b/config/examples/Mks/Robin/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Mks/Sbase/Configuration_adv.h b/config/examples/Mks/Sbase/Configuration_adv.h index 09c7e6625c..f61f1bb3a3 100644 --- a/config/examples/Mks/Sbase/Configuration_adv.h +++ b/config/examples/Mks/Sbase/Configuration_adv.h @@ -1035,19 +1035,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/RapideLite/RL200/Configuration_adv.h b/config/examples/RapideLite/RL200/Configuration_adv.h index f412615be2..99ed1a3ca1 100644 --- a/config/examples/RapideLite/RL200/Configuration_adv.h +++ b/config/examples/RapideLite/RL200/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/RigidBot/Configuration_adv.h b/config/examples/RigidBot/Configuration_adv.h index 401a7f1aaa..25e7330f0e 100644 --- a/config/examples/RigidBot/Configuration_adv.h +++ b/config/examples/RigidBot/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/SCARA/Configuration_adv.h b/config/examples/SCARA/Configuration_adv.h index 50b26ed515..2a702f72e3 100644 --- a/config/examples/SCARA/Configuration_adv.h +++ b/config/examples/SCARA/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/STM32/Black_STM32F407VET6/Configuration_adv.h b/config/examples/STM32/Black_STM32F407VET6/Configuration_adv.h index 7fadd1cff0..dbb94b1b08 100644 --- a/config/examples/STM32/Black_STM32F407VET6/Configuration_adv.h +++ b/config/examples/STM32/Black_STM32F407VET6/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Sanguinololu/Configuration_adv.h b/config/examples/Sanguinololu/Configuration_adv.h index 04351fdaa2..50362bf90e 100644 --- a/config/examples/Sanguinololu/Configuration_adv.h +++ b/config/examples/Sanguinololu/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Tevo/Tarantula Pro/Configuration_adv.h b/config/examples/Tevo/Tarantula Pro/Configuration_adv.h index d78f7453dd..3eeab3cf75 100755 --- a/config/examples/Tevo/Tarantula Pro/Configuration_adv.h +++ b/config/examples/Tevo/Tarantula Pro/Configuration_adv.h @@ -1030,19 +1030,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader may be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/TheBorg/Configuration_adv.h b/config/examples/TheBorg/Configuration_adv.h index b2d6c9347d..ca808df6fc 100644 --- a/config/examples/TheBorg/Configuration_adv.h +++ b/config/examples/TheBorg/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/TinyBoy2/Configuration_adv.h b/config/examples/TinyBoy2/Configuration_adv.h index 18280332ae..7cf8279b3a 100644 --- a/config/examples/TinyBoy2/Configuration_adv.h +++ b/config/examples/TinyBoy2/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Tronxy/X3A/Configuration_adv.h b/config/examples/Tronxy/X3A/Configuration_adv.h index 827c92a2ee..13c460d390 100644 --- a/config/examples/Tronxy/X3A/Configuration_adv.h +++ b/config/examples/Tronxy/X3A/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Tronxy/X5S-2E/Configuration_adv.h b/config/examples/Tronxy/X5S-2E/Configuration_adv.h index ab8be01ce7..3718653047 100644 --- a/config/examples/Tronxy/X5S-2E/Configuration_adv.h +++ b/config/examples/Tronxy/X5S-2E/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/UltiMachine/Archim1/Configuration_adv.h b/config/examples/UltiMachine/Archim1/Configuration_adv.h index 9b99def3af..c546ace683 100644 --- a/config/examples/UltiMachine/Archim1/Configuration_adv.h +++ b/config/examples/UltiMachine/Archim1/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/UltiMachine/Archim2/Configuration_adv.h b/config/examples/UltiMachine/Archim2/Configuration_adv.h index a252e88b85..b84f5a683e 100644 --- a/config/examples/UltiMachine/Archim2/Configuration_adv.h +++ b/config/examples/UltiMachine/Archim2/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/VORONDesign/Configuration_adv.h b/config/examples/VORONDesign/Configuration_adv.h index 09243e60f0..c0f176b715 100644 --- a/config/examples/VORONDesign/Configuration_adv.h +++ b/config/examples/VORONDesign/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Velleman/K8200/Configuration_adv.h b/config/examples/Velleman/K8200/Configuration_adv.h index b68982f7c8..6fc5ddb05c 100644 --- a/config/examples/Velleman/K8200/Configuration_adv.h +++ b/config/examples/Velleman/K8200/Configuration_adv.h @@ -1047,19 +1047,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Velleman/K8400/Configuration_adv.h b/config/examples/Velleman/K8400/Configuration_adv.h index 526cd3f410..0dd15eba5b 100644 --- a/config/examples/Velleman/K8400/Configuration_adv.h +++ b/config/examples/Velleman/K8400/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/WASP/PowerWASP/Configuration_adv.h b/config/examples/WASP/PowerWASP/Configuration_adv.h index 3a4f9799b4..076d414b0f 100644 --- a/config/examples/WASP/PowerWASP/Configuration_adv.h +++ b/config/examples/WASP/PowerWASP/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/Wanhao/Duplicator 6/Configuration_adv.h b/config/examples/Wanhao/Duplicator 6/Configuration_adv.h index aa8d7f6d16..7cf325e7a1 100644 --- a/config/examples/Wanhao/Duplicator 6/Configuration_adv.h +++ b/config/examples/Wanhao/Duplicator 6/Configuration_adv.h @@ -1036,19 +1036,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/delta/Anycubic/Kossel/Configuration_adv.h b/config/examples/delta/Anycubic/Kossel/Configuration_adv.h index 94d2d546d1..eb642a461d 100644 --- a/config/examples/delta/Anycubic/Kossel/Configuration_adv.h +++ b/config/examples/delta/Anycubic/Kossel/Configuration_adv.h @@ -1036,19 +1036,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h b/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h index e7380c74de..39d058b42a 100644 --- a/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h +++ b/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h @@ -1036,19 +1036,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/delta/FLSUN/kossel/Configuration_adv.h b/config/examples/delta/FLSUN/kossel/Configuration_adv.h index e7380c74de..39d058b42a 100644 --- a/config/examples/delta/FLSUN/kossel/Configuration_adv.h +++ b/config/examples/delta/FLSUN/kossel/Configuration_adv.h @@ -1036,19 +1036,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h b/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h index 8ac8314853..ac973331a7 100644 --- a/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h +++ b/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h @@ -1036,19 +1036,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h b/config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h index 8ac8314853..ac973331a7 100644 --- a/config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h +++ b/config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h @@ -1036,19 +1036,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/delta/MKS/SBASE/Configuration_adv.h b/config/examples/delta/MKS/SBASE/Configuration_adv.h index 7281e9dc4e..23920189c5 100644 --- a/config/examples/delta/MKS/SBASE/Configuration_adv.h +++ b/config/examples/delta/MKS/SBASE/Configuration_adv.h @@ -1036,19 +1036,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/delta/Tevo Little Monster/Configuration_adv.h b/config/examples/delta/Tevo Little Monster/Configuration_adv.h index 3360001e5f..b82e030c92 100644 --- a/config/examples/delta/Tevo Little Monster/Configuration_adv.h +++ b/config/examples/delta/Tevo Little Monster/Configuration_adv.h @@ -1036,19 +1036,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/delta/generic/Configuration_adv.h b/config/examples/delta/generic/Configuration_adv.h index 8ac8314853..ac973331a7 100644 --- a/config/examples/delta/generic/Configuration_adv.h +++ b/config/examples/delta/generic/Configuration_adv.h @@ -1036,19 +1036,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/delta/kossel_mini/Configuration_adv.h b/config/examples/delta/kossel_mini/Configuration_adv.h index 8ac8314853..ac973331a7 100644 --- a/config/examples/delta/kossel_mini/Configuration_adv.h +++ b/config/examples/delta/kossel_mini/Configuration_adv.h @@ -1036,19 +1036,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/delta/kossel_xl/Configuration_adv.h b/config/examples/delta/kossel_xl/Configuration_adv.h index 0a33b9b7b7..0fed27ebbe 100644 --- a/config/examples/delta/kossel_xl/Configuration_adv.h +++ b/config/examples/delta/kossel_xl/Configuration_adv.h @@ -1036,19 +1036,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/gCreate/gMax1.5+/Configuration_adv.h b/config/examples/gCreate/gMax1.5+/Configuration_adv.h index 8a50fabd21..dcc5db36e0 100644 --- a/config/examples/gCreate/gMax1.5+/Configuration_adv.h +++ b/config/examples/gCreate/gMax1.5+/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/makibox/Configuration_adv.h b/config/examples/makibox/Configuration_adv.h index 80f9796667..80736e4f43 100644 --- a/config/examples/makibox/Configuration_adv.h +++ b/config/examples/makibox/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/tvrrug/Round2/Configuration_adv.h b/config/examples/tvrrug/Round2/Configuration_adv.h index c9eacd15fd..2d28dba030 100644 --- a/config/examples/tvrrug/Round2/Configuration_adv.h +++ b/config/examples/tvrrug/Round2/Configuration_adv.h @@ -1034,19 +1034,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays * diff --git a/config/examples/wt150/Configuration_adv.h b/config/examples/wt150/Configuration_adv.h index 94226c2c95..c31dc58b54 100644 --- a/config/examples/wt150/Configuration_adv.h +++ b/config/examples/wt150/Configuration_adv.h @@ -1035,19 +1035,27 @@ // Add an optimized binary file transfer mode, initiated with 'M28 B1' //#define BINARY_FILE_TRANSFER - // LPC-based boards have on-board SD Card options. Override here or defaults apply. #ifdef TARGET_LPC1768 - //#define LPC_SD_LCD // Use the SD drive in the external LCD controller. - //#define LPC_SD_ONBOARD // Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) - //#define LPC_SD_CUSTOM_CABLE // Use a custom cable to access the SD (as defined in a pins file). - //#define USB_SD_DISABLED // Disable SD Card access over USB (for security). - #if ENABLED(LPC_SD_ONBOARD) - //#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device. - #endif + /** + * Set this option to one of the following (or the board's defaults apply): + * + * LCD - Use the SD drive in the external LCD controller. + * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.) + * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file). + * + * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] + */ + //#define SDCARD_CONNECTION LCD #endif #endif // SDSUPPORT +/** + * By default an onboard SD card reader will be shared as a USB mass- + * storage device. This option hides the SD card from the host PC. + */ +//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security). + /** * Additional options for Graphical Displays *