diff --git a/settings.h b/settings.h index 29904b13..40f97979 100644 --- a/settings.h +++ b/settings.h @@ -34,6 +34,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 //////////////////////////////////////////////////////////////////////////////// @@ -66,4 +69,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 */