Browse Source

Move some SD comments

Scott Lahteine 5 years ago
parent
commit
ffb418b226
2 changed files with 7 additions and 6 deletions
  1. 2
    1
      Marlin/src/HAL/HAL_SAMD51/HAL.cpp
  2. 5
    5
      Marlin/src/inc/Conditionals_post.h

+ 2
- 1
Marlin/src/HAL/HAL_SAMD51/HAL.cpp View File

373
     dma_init();
373
     dma_init();
374
   #endif
374
   #endif
375
   #if ENABLED(SDSUPPORT)
375
   #if ENABLED(SDSUPPORT)
376
-    #if SD_CONNECTION_IS(ONBOARD) && PIN_EXISTS(SD_DETECT)    // SD_DETECT_PIN may be remove when NO_SD_HOST_DRIVE is not defined in configuration_adv
376
+    // SD_DETECT_PIN may be removed if NO_SD_HOST_DRIVE is not defined in Configuration_adv.h
377
+    #if SD_CONNECTION_IS(ONBOARD) && PIN_EXISTS(SD_DETECT)
377
       SET_INPUT_PULLUP(SD_DETECT_PIN);
378
       SET_INPUT_PULLUP(SD_DETECT_PIN);
378
     #endif
379
     #endif
379
     OUT_WRITE(SDSS, HIGH);  // Try to set SDSS inactive before any other SPI users start up
380
     OUT_WRITE(SDSS, HIGH);  // Try to set SDSS inactive before any other SPI users start up

+ 5
- 5
Marlin/src/inc/Conditionals_post.h View File

1818
   #endif
1818
   #endif
1819
 #endif
1819
 #endif
1820
 
1820
 
1821
-//
1822
-// The external SD card is not used. Hardware SPI is used to access the card.
1823
-// When sharing the SD card with a PC we want the menu options to
1824
-// mount/unmount the card and refresh it. So we disable card detect.
1825
-//
1826
 #if ENABLED(SDSUPPORT)
1821
 #if ENABLED(SDSUPPORT)
1827
   #if SD_CONNECTION_IS(ONBOARD) && DISABLED(NO_SD_HOST_DRIVE)
1822
   #if SD_CONNECTION_IS(ONBOARD) && DISABLED(NO_SD_HOST_DRIVE)
1823
+    //
1824
+    // The external SD card is not used. Hardware SPI is used to access the card.
1825
+    // When sharing the SD card with a PC we want the menu options to
1826
+    // mount/unmount the card and refresh it. So we disable card detect.
1827
+    //
1828
     #undef SD_DETECT_PIN
1828
     #undef SD_DETECT_PIN
1829
     #define SHARED_SD_CARD
1829
     #define SHARED_SD_CARD
1830
   #endif
1830
   #endif

Loading…
Cancel
Save