Shared SPI sanity check (#16581)
This commit is contained in:
parent
6d1f6a9516
commit
e94f782f51
@ -2513,3 +2513,11 @@ static_assert( _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
|
|||||||
#if HAS_ADC_BUTTONS && defined(ADC_BUTTON_DEBOUNCE_DELAY) && !WITHIN(ADC_BUTTON_DEBOUNCE_DELAY, 16, 255)
|
#if HAS_ADC_BUTTONS && defined(ADC_BUTTON_DEBOUNCE_DELAY) && !WITHIN(ADC_BUTTON_DEBOUNCE_DELAY, 16, 255)
|
||||||
#error "ADC_BUTTON_DEBOUNCE_DELAY must be an integer from 16 to 255."
|
#error "ADC_BUTTON_DEBOUNCE_DELAY must be an integer from 16 to 255."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check to make sure MONITOR_DRIVER_STATUS isn't enabled
|
||||||
|
* on boards where TMC drivers share the SPI bus with SD.
|
||||||
|
*/
|
||||||
|
#if TMC_HAS_SPI && ALL(MONITOR_DRIVER_STATUS, SDSUPPORT, USES_SHARED_SPI)
|
||||||
|
#error "MONITOR_DRIVER_STATUS and SDSUPPORT cannot be used together on boards with shared SPI."
|
||||||
|
#endif
|
||||||
|
@ -99,3 +99,5 @@
|
|||||||
#define MISO_PIN 19
|
#define MISO_PIN 19
|
||||||
#define SCK_PIN 18
|
#define SCK_PIN 18
|
||||||
#define SDSS 5
|
#define SDSS 5
|
||||||
|
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
||||||
|
|
||||||
|
@ -118,6 +118,7 @@
|
|||||||
#define MISO_PIN 19
|
#define MISO_PIN 19
|
||||||
#define SCK_PIN 18
|
#define SCK_PIN 18
|
||||||
#define SDSS 5
|
#define SDSS 5
|
||||||
|
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
// LCDs and Controllers //
|
// LCDs and Controllers //
|
||||||
|
Loading…
Reference in New Issue
Block a user