Skip to content

Commit d95bee6

Browse files
committed
Allow other lock implementations.
1 parent 11a93eb commit d95bee6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

settings.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,18 @@
103103
#define WIICAMERA
104104
#endif
105105

106+
// To use some other locking (e.g. freertos),
107+
// define XMEM_ACQUIRE_SPI and XMEM_RELEASE_SPI to point to your lock and unlock.
108+
// NOTE: NO argument is passed. You have to do this within your routine for
109+
// whatever you are using to lock and unlock.
110+
#if !defined(XMEM_ACQUIRE_SPI)
106111
#if USE_XMEM_SPI_LOCK || defined(USE_MULTIPLE_APP_API)
107112
#include <xmem.h>
108113
#else
109114
#define XMEM_ACQUIRE_SPI() (void(0))
110115
#define XMEM_RELEASE_SPI() (void(0))
111116
#endif
117+
#endif
112118

113119
#if !defined(EXT_RAM) && defined(EXT_RAM_STACK) || defined(EXT_RAM_HEAP)
114120
#include <xmem.h>

0 commit comments

Comments
 (0)