From d95bee640e3af3b99a36306c4616fe25d4bf848a Mon Sep 17 00:00:00 2001 From: "Andrew J. Kroll" Date: Thu, 27 Feb 2014 03:10:46 -0500 Subject: [PATCH] Allow other lock implementations. --- settings.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/settings.h b/settings.h index c6348aa8..238ae905 100644 --- a/settings.h +++ b/settings.h @@ -103,12 +103,18 @@ #define WIICAMERA #endif +// To use some other locking (e.g. freertos), +// define XMEM_ACQUIRE_SPI and XMEM_RELEASE_SPI to point to your lock and unlock. +// NOTE: NO argument is passed. You have to do this within your routine for +// whatever you are using to lock and unlock. +#if !defined(XMEM_ACQUIRE_SPI) #if USE_XMEM_SPI_LOCK || defined(USE_MULTIPLE_APP_API) #include #else #define XMEM_ACQUIRE_SPI() (void(0)) #define XMEM_RELEASE_SPI() (void(0)) #endif +#endif #if !defined(EXT_RAM) && defined(EXT_RAM_STACK) || defined(EXT_RAM_HEAP) #include