Cleanup MKS-SBASE compile warnings

This commit is contained in:
Thomas Moore 2018-01-19 15:46:34 -06:00
parent 7c469c0712
commit 63fd23ab1c
2 changed files with 33 additions and 43 deletions

View File

@ -23,24 +23,6 @@
#ifndef SPI_PINS_LPC1768_H #ifndef SPI_PINS_LPC1768_H
#define SPI_PINS_LPC1768_H #define SPI_PINS_LPC1768_H
#include "../../inc/MarlinConfig.h"
#if MB(MKS_SBASE)
#define LPC_SOFTWARE_SPI // MKS_SBASE needs a software SPI because the
// selected pins are not on a hardware SPI controller
// A custom cable is needed. See the README file in the
// Marlin\src\config\examples\Mks\Sbase directory
#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.5)
#define SS_PIN P0_28
#define SD_DETECT_PIN P0_27
#else
#define LPC_SOFTWARE_SPI // Re-ARM board needs a software SPI because using the #define LPC_SOFTWARE_SPI // Re-ARM board needs a software SPI because using the
// standard LCD adapter results in the LCD and the // standard LCD adapter results in the LCD and the
// SD card sharing a single SPI when the RepRap Full // SD card sharing a single SPI when the RepRap Full
@ -64,9 +46,6 @@
#ifndef SS_PIN #ifndef SS_PIN
#define SS_PIN P1_23 #define SS_PIN P1_23
#endif #endif
#endif // MKS_SBASE
#ifndef SDSS #ifndef SDSS
#define SDSS SS_PIN #define SDSS SS_PIN
#endif #endif

View File

@ -184,6 +184,17 @@
// //
// Misc. Functions // Misc. Functions
// //
#define LPC_SOFTWARE_SPI // MKS_SBASE needs a software SPI because the
// selected pins are not on a hardware SPI controller
// A custom cable is needed. See the README file in the
// Marlin\src\config\examples\Mks\Sbase directory
#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.5)
#define SS_PIN P0_28
#define SD_DETECT_PIN P0_27
#define SDSS P0_06 #define SDSS P0_06
/** /**