From 02b685e329839ddc1b0ba9805d9a320e02e76c87 Mon Sep 17 00:00:00 2001 From: "Andrew J. Kroll" Date: Tue, 8 Oct 2013 11:36:15 -0400 Subject: [PATCH] lock settings for spi (unused at this time) --- settings.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/settings.h b/settings.h index ba5da5c5..0d780e18 100644 --- a/settings.h +++ b/settings.h @@ -40,6 +40,9 @@ /* Set this to 1 if you are using a Black Widdow */ #define USE_UHS_BLACK_WIDDOW 0 +/* Set this to 1 if you are using xmem2 and expanded memory and multitasking */ +#define USE_XMEM_SPI_LOCK 0 + //////////////////////////////////////////////////////////////////////////////// // MASS STORAGE //////////////////////////////////////////////////////////////////////////////// @@ -75,4 +78,11 @@ #include #endif +#if USE_XMEM_SPI_LOCK +#include +#else +#define XMEM_ACQUIRE_SPI() (void(0)) +#define XMEM_RELEASE_SPI() (void(0)) +#endif + #endif /* SETTINGS_H */