|
@ -31,7 +31,7 @@ |
|
|
#define BOARD_INFO_NAME "MKS Robin PRO V2" |
|
|
#define BOARD_INFO_NAME "MKS Robin PRO V2" |
|
|
|
|
|
|
|
|
// Avoid conflict with TIMER_TONE
|
|
|
// Avoid conflict with TIMER_TONE
|
|
|
#define STEP_TIMER 10 |
|
|
#define STEP_TIMER 10 |
|
|
|
|
|
|
|
|
// Use one of these or SDCard-based Emulation will be used
|
|
|
// Use one of these or SDCard-based Emulation will be used
|
|
|
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
|
|
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
|
@ -50,7 +50,7 @@ |
|
|
//
|
|
|
//
|
|
|
// Note: MKS Robin board is using SPI2 interface.
|
|
|
// Note: MKS Robin board is using SPI2 interface.
|
|
|
//
|
|
|
//
|
|
|
//#define SPI_MODULE 2
|
|
|
//#define SPI_MODULE 2
|
|
|
|
|
|
|
|
|
//
|
|
|
//
|
|
|
// Servos
|
|
|
// Servos
|
|
@ -203,7 +203,7 @@ |
|
|
//#define LED_PIN PB2
|
|
|
//#define LED_PIN PB2
|
|
|
|
|
|
|
|
|
#ifndef SDCARD_CONNECTION |
|
|
#ifndef SDCARD_CONNECTION |
|
|
#define SDCARD_CONNECTION ONBOARD |
|
|
#define SDCARD_CONNECTION ONBOARD |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
//#define USE_NEW_SPI_API 1
|
|
|
//#define USE_NEW_SPI_API 1
|
|
@ -214,21 +214,17 @@ |
|
|
//
|
|
|
//
|
|
|
// detect pin dont work when ONBOARD and NO_SD_HOST_DRIVE disabled
|
|
|
// detect pin dont work when ONBOARD and NO_SD_HOST_DRIVE disabled
|
|
|
#if !defined(SDCARD_CONNECTION) || SDCARD_CONNECTION == ONBOARD |
|
|
#if !defined(SDCARD_CONNECTION) || SDCARD_CONNECTION == ONBOARD |
|
|
#define CUSTOM_SPI_PINS |
|
|
#if USE_NEW_SPI_API |
|
|
#if ENABLED(CUSTOM_SPI_PINS) |
|
|
#define SD_SPI MARLIN_SPI(HardwareSPI3, PC9) |
|
|
|
|
|
#else |
|
|
#if USE_NEW_SPI_API |
|
|
#define ENABLE_SPI3 |
|
|
#define SD_SPI MARLIN_SPI(HardwareSPI3, PC9) |
|
|
#define SD_SS_PIN -1 |
|
|
#else |
|
|
#define SDSS PC9 |
|
|
#define ENABLE_SPI3 |
|
|
#define SD_SCK_PIN PC10 |
|
|
#define SD_SS_PIN -1 |
|
|
#define SD_MISO_PIN PC11 |
|
|
#define SDSS PC9 |
|
|
#define SD_MOSI_PIN PC12 |
|
|
#define SD_SCK_PIN PC10 |
|
|
|
|
|
#define SD_MISO_PIN PC11 |
|
|
|
|
|
#define SD_MOSI_PIN PC12 |
|
|
|
|
|
#endif |
|
|
|
|
|
#define SD_DETECT_PIN PD12 |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#define SD_DETECT_PIN PD12 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
/*
|
|
|
/*
|
|
@ -236,22 +232,19 @@ |
|
|
// LCD SD
|
|
|
// LCD SD
|
|
|
//
|
|
|
//
|
|
|
#if SDCARD_CONNECTION == LCD |
|
|
#if SDCARD_CONNECTION == LCD |
|
|
#define CUSTOM_SPI_PINS |
|
|
#define ENABLE_SPI1 |
|
|
#if ENABLED(CUSTOM_SPI_PINS) |
|
|
#define SDSS PE10 |
|
|
#define ENABLE_SPI1 |
|
|
#define SD_SCK_PIN PA5 |
|
|
#define SDSS PE10 |
|
|
#define SD_MISO_PIN PA6 |
|
|
#define SD_SCK_PIN PA5 |
|
|
#define SD_MOSI_PIN PA7 |
|
|
#define SD_MISO_PIN PA6 |
|
|
#define SD_DETECT_PIN PE12 |
|
|
#define SD_MOSI_PIN PA7 |
|
|
|
|
|
#define SD_DETECT_PIN PE12 |
|
|
|
|
|
#endif |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
//
|
|
|
//
|
|
|
// LCD / Controller
|
|
|
// LCD / Controller
|
|
|
#define SPI_FLASH |
|
|
#define SPI_FLASH |
|
|
#define HAS_SPI_FLASH 1 |
|
|
#define HAS_SPI_FLASH 1 |
|
|
#define SPI_DEVICE 2 |
|
|
#define SPI_DEVICE 2 |
|
|
#define SPI_FLASH_SIZE 0x1000000 |
|
|
#define SPI_FLASH_SIZE 0x1000000 |
|
|
#if ENABLED(SPI_FLASH) |
|
|
#if ENABLED(SPI_FLASH) |
|
|