diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index 716ba4f65088c6f1cecd410561a6462f3f7852d1..aa56f17b7b3180283e868c624a3404d21980ac6e 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 2338b34ee3503eb4f3f2942f09498b46d470f184..c0ba833f25f197bfa14b016f20abc710eb0ade8f 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 258e150e29554150787f68a35e30434181016799..86e7b5f99680ff6fa4ed76ba2d24183b9db0e668 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 d94f0d183e7baa31d722aff389cd2587d589995a..cc4ee1b70581df197645f18e0b1e44e572a7b64c 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 9eca0a7168afa6e7a56b9daa2a7d276bb97f9fdd..597d3904e17ec0758b1dd943cc582e796b93e71a 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 d5d0e89994409079c50ca6641c6573d3c6d6a98c..83d081d932267041bf98c87e24f52a5d47d454d4 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 9fb98476588e47f1dfaf97fe3b00da275ade6016..a0a416e3e251594475dae647ffd1b5606a688e02 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 998541cc23cba03a8259f12dfbf3260a6e482daf..fd99db7882c48a773b0b8f90af910dda2891e94f 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 c254f2e98497aff000edcade3675002f12754788..adb79e2dd1e25f7dcfc1508916b07e2e16e0059f 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 0f3e454371e916159b6347ba0241e35b98012be5..8fed8279de267418940ced31f17badb38f52a7d8 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 7509eddbba34a929b8c5427d58dd1277918854b2..751a7d1cacc8253cbfd8ddb38ed11da7a49bf912 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 17af3c4d0400d1a7ac6e814a62bd751ae5dacf8a..de32e11efbaa5ba7e1cbb8ac9676b262a0f915ca 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 29979792efc33f37c7683b4f6093c2c227566213..942495c957e85af8f815c81a83f9305eb5c0be06 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 f9fb94498281fffe305750ed13f37c4a762fe4df..95347a05de7bd7e679155a2cc7c0ef621a28e79b 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 74296512eb772df8c4cd4b6e1492f6107f0b38c1..5de4f42db2a3f75c5eec617a1f2f022da0e40594 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 f1892f3c507c8b9ce7984acdb080c58afd48e1b1..c2822c362cc2f4a05b5b98de9f6de20585b5ecec 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 72380b32d5eada01cb48951900cd16c30e833a85..f7160cf9f26587f65ac639544cd434e1cd1cea2f 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 bc565dc31ec6dc4497ac8497ba9e3aa8779822c3..ac13c0219bafc757a0422dfacca9bf955c0073eb 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 2a46411281b0ca2ad4302451f0ddb3d904214ca5..0929ccc12fc7fbb083df2e53b5803b93302e053b 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 155e41dd480bd52471149695bf638707dbc00b99..684b68f24b490c3d6e8f5966a6966472f9a31dd3 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 155e41dd480bd52471149695bf638707dbc00b99..684b68f24b490c3d6e8f5966a6966472f9a31dd3 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 8c0bf1636cee495cf32ddec41e748aba6b216078..b4fe3ceb858e42ed0af4ed2b7a0f8324462100a4 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 fe44b80f5fc65b1022a15ed1889e1b5300ecb07c..fc80e6e0579a3247b2e50ba97baf02e3f66c68fd 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 19f66cbd0f30b07b00b629edf7936d9229e336c6..0fd674104b5ff1bf04fffb17499bbfd5af7be4bb 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 6ec457121f3b3b551be1441a7735722361bba45f..e942937aa9e35f876110861c6e81a3b25cbd42cb 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 281a9d7088e6b79188faee78a34e8dd9f1b6e548..a9b97917747014ee1e7ff164faadae04419d11a9 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 dbc66acf1696b1c702f8453170ebae793d64d116..54e749af5e8ea382003d347790e0062f0863c45b 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 b703f23148f1a37be5a29cdb80b4fbd75ab52781..fd7b86887c4f21b50d850742c62ceb89bba4c67a 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 4ab80f8b966979bd7bec7231bcaf7c069cd1eaa4..d05c689783d67c737c1eed4f5db1435906ecc128 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 cafccf1a0cdbcae5fd0a36e4e4c2b44483268853..83d009cff7307b13c8d9a7ba2dff81ca63ad5639 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 4d0710667a3d92ed2abcddb4beb8386d9face20f..64a52ea5e2728258367c506d749f972e92377c91 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 cafccf1a0cdbcae5fd0a36e4e4c2b44483268853..83d009cff7307b13c8d9a7ba2dff81ca63ad5639 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 34b246e170a15d3482ca82c1d9a9ba6a87dad6ba..65679006f3927d3f6a751092409b504c7a269493 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 dbaa0b6c3d58f28416f41d2c8a74e7289458f973..c7c6a2182d09c9f9d6d53d8f236a690501d13709 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 c0f7f8c36dd7b29398034089116de9f86e86f282..f33a9a6a44fd0c823c73de08500b4cd938cdb909 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 30731a844a4325ce1c7f2789d1b2531d3bfc76fa..3251a346092cc11ea172ed4cb7b2edb6aae9f385 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 c8a3772e9ff517638276da93cc787736659c2c35..8cf2183e9c502e3e75e4e55a010bb830b9023f73 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 6647872b287444458d72f4aca9632e115229cf67..c48a86e460fd6c5a8da81fcd7ecbeb9877d15162 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 40d2e65b81e49b701036b35507b2ef44703f4df8..efcce34f80cb7b56c2f093d565694d395f08adf6 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 342c500a6b43bb851997a8ac7c5644aa7612c5a1..e31c93a3001df22ccf85aec072ddc7ce7584875b 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 ed6cb1515eee607aae689bd51565717edc7e6200..c2f441b0515e294855b16143b4834092c89805e7 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 7bf9798be06baf4b54904dc33a5f2f1093c9776f..74b664ac4d04d658d034d51598967f79fcdf0366 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 8fde577ec1b60a8256a698c6a6f2a41651734c4b..85eb03fc85937fe1100b1f6356ff33c97bdd8756 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 2670e9736bf985875fff943092b258babcdb9028..fe938988049972dc9e30407c1d5647a19a8b295a 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 344b05921851a65d4b6f2b90cc0e3f23ce2adbc0..1c38715252af9804b6f1ae92ad0ab59b25501f1d 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 adf61951b28114ff49e7b0ee61db6bb12be4ef4e..3a578cb176a0079608cb8cc2a6b3c2f3aefc2881 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 01ac0bf3bf863b549300cdc734735c7e1c1f066c..a8ee6c67ed64025b71865ee958011257a7e1621a 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 99db3b2db59f28f08f026ef51dbceda0b2d7e8a8..32f1df5f1075a9b0a723c9a43a6f1e5cc6b699a0 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 a9d025df7a1cf2be3c954ccf0579daf36a998580..a8d6fbb4078c9b2f7df9ebf1a82ca0f1dd915748 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 93a103bed1dabe58f4fd020c27f6e4dab477be53..7a16b66ec7c4039559bbf8136fe981f3a6efa8f0 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 7103fdc04ecb3c1e85a113545a4943d758ae46ce..9f3defe54ccdd93e0d1b7b0fb3fc5c58dca1c708 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 6210a1427765c2a3066ecbfc175a37196f1f4117..a187c4708267c2c2f4ed57e890e36bf4dbeed138 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 eb18c9cd8cef92f99b726e1c8b3f5439fc847a8e..5571e150320f1c20fb069f47be7c71587bb1f7fd 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 0ccb43ca2be983c761f41693ed94270a8bc46cbb..c95a9dee668df4baa55264d99edc2a9d650b2bbe 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 78f1411c563f2a3c7adf8229be8adb76661e220b..3dbfaaf82a25e63603ca02596f81e9ad1b62d6c4 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 1bb275a2f26d9dffabc67ca10a10f80c172cd7ea..6852646e4830779c5c99173083f8781b13d64368 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 57a8897e9db01adc0793e7a219f1610faa36e56d..c870589b122a3ccebedd0247631567acd2efe89a 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 0ccb43ca2be983c761f41693ed94270a8bc46cbb..c95a9dee668df4baa55264d99edc2a9d650b2bbe 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 0ccb43ca2be983c761f41693ed94270a8bc46cbb..c95a9dee668df4baa55264d99edc2a9d650b2bbe 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 18ab138d92aa63df3ddf4f8e2a333fcd80981c2e..268b48baf770c52307a1955b15fe00b5db925798 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 c113548d4b3bc82668e930f5982776e64674ce9d..4acf12cecbac8323babc1b9db3cb34ed9af5243f 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 f6c697d6fe6355e44883131813680fd6ec587e6c..d84722e23a4efc6be11c6d3cdec15cc2aa3f4099 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 c113548d4b3bc82668e930f5982776e64674ce9d..4acf12cecbac8323babc1b9db3cb34ed9af5243f 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 e7bfc3c1644b7b0b9de85f7a2ae5ba44d0610373..f97cee78e84d55e7e75810abd609364a7d968ee2 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 dbe88b94e401851e9dd077d0e0b5dafdb030e20e..c647cd85e12c92a1cc9c326d1f426f3edb7e5519 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 7692827c704ae7210d842c1a12b5fd45b4236bb5..18c50765a649bbc3251a4dfbdc97e83eea7be075 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 bea5b7798c199f0d9d4f70b778d595a416b9c11f..bc6e4e9a4978c55bc21b589ba319995e4fd59ee4 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 a5b5a8771290bb5e5cef71d42b0d24a92caee491..cb1defe2f03f68bff95c43ada3dbb23b87f8fa9a 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 09c7e6625c3eb20f19cd36227bb54d2d19e222ee..f61f1bb3a3257f979f3cbacee0e58e0fffb1bde1 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 f412615be2aeead8956aeee9d9dde80e624aca67..99ed1a3ca1f3b01962d683bdf57f78c8a1fd9f3c 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 401a7f1aaa8dd9b19459a4fb95c9acd1aa6fa0cb..25e7330f0e1b8927d84c8b8d6405f49aba556fbf 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 50b26ed515f08a32c87c9d91321580310438302e..2a702f72e3772c5c299c9d5d925716602c0182ce 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 7fadd1cff0fe4d4a935a258d5c2dac7c4c4ff49a..dbb94b1b08a453012e2de6be406f5e9c0d9cf1c5 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 04351fdaa2aa1a89006c7e3c42a8c3cf9ef1f363..50362bf90e31a456d01ce828b478a80eb50b7eff 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 d78f7453ddb836af0ff67c486dbbe4d9f9bcc08a..3eeab3cf7560a9b04feb51a8e531de3187e7426f 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 b2d6c9347dbb9df77a6d3ab4ecb4e2b30d8ee977..ca808df6fc0c177e4f2920e5820849ac327f769b 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 18280332ae1335fe7107e7b465a807e0a7d2c6e1..7cf8279b3a12008ab8147f06dc1700e4b06b6fb2 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 827c92a2ee96bef43e9cec69f41adb956dc4bad6..13c460d390af386444a8f1cd79daab119f569b29 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 ab8be01ce7f14d9fa4b5001c2300338526f882d0..37186530472e5f4a1decef31c5344fee37859bee 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 9b99def3af3fa77639d7386acd3037207b6cc6c1..c546ace6834a97ff3c046c2d61ca40652effe953 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 a252e88b85cd302a54bbd5fabeb68e6af9d479f1..b84f5a683ec6845754e9c171acccf7690b14c76a 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 09243e60f026eb1cb0637a9b8ea0eaf22a1c7572..c0f176b715a5f4675232b3f4824a16b6bb038b2a 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 b68982f7c86d16c089bf2fca7bca49ffb01493b7..6fc5ddb05c5de145ce4ed648f91b534b517555aa 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 526cd3f410012f16e54466f16132d04f5db72e46..0dd15eba5b4404553fee9a4d7d21cbe205b5c7af 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 3a4f9799b410d4c3905668d578b6b6afdab6dc2d..076d414b0fe89197c3ec79b92e2ea127265cac06 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 aa8d7f6d16b45248a7546552178277e8d06f0bcd..7cf325e7a101034ebc5546c0671eeae1133b16d0 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 94d2d546d12dc893880448a594fa387e29c2328a..eb642a461d7f12e39f8e47e34d82a0171735cf14 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 e7380c74de41b102f563b1c2a79551234f511f57..39d058b42a9208a2c3c335adfdb195736d26bb62 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 e7380c74de41b102f563b1c2a79551234f511f57..39d058b42a9208a2c3c335adfdb195736d26bb62 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 8ac83148533a779fdce53adc923f62a4a9102ec7..ac973331a77c72adb43a08a2c9ac81c5ae51a237 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 8ac83148533a779fdce53adc923f62a4a9102ec7..ac973331a77c72adb43a08a2c9ac81c5ae51a237 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 7281e9dc4e64867572b06be10950912fcecd0c9f..23920189c533b7f05c823555e076786b39e6e8b0 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 3360001e5fc0368e54b04c9c97c35bf276a6f5ba..b82e030c926bd75b19bff516c4eb10144423997f 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 8ac83148533a779fdce53adc923f62a4a9102ec7..ac973331a77c72adb43a08a2c9ac81c5ae51a237 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 8ac83148533a779fdce53adc923f62a4a9102ec7..ac973331a77c72adb43a08a2c9ac81c5ae51a237 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 0a33b9b7b7d0f272de89201e1af8345fb95e7934..0fed27ebbea654bd7d788e19e1200132503fa64e 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 8a50fabd21fb3ae80d2e86aa2d998db63da55a8c..dcc5db36e0e99bc9f8b7e0ecb6b9e9be27af5ed2 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 80f9796667a7651779be6eeb7a42286591fe3b77..80736e4f435d924cc871c4c0a07061793fe8b0e2 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 c9eacd15fdc4b2c51542323d4fc54f0557f0d26e..2d28dba0301d309f951c0ad6167af06a9838be19 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 94226c2c95c12e0b8e4916b4f34aab9b7e647e9b..c31dc58b5470153d860f7cbeeeb1ad1ebe2ba619 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 *