mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Allow other lock implementations.
This commit is contained in:
parent
11a93eb06a
commit
d95bee640e
1 changed files with 6 additions and 0 deletions
|
@ -103,12 +103,18 @@
|
||||||
#define WIICAMERA
|
#define WIICAMERA
|
||||||
#endif
|
#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)
|
#if USE_XMEM_SPI_LOCK || defined(USE_MULTIPLE_APP_API)
|
||||||
#include <xmem.h>
|
#include <xmem.h>
|
||||||
#else
|
#else
|
||||||
#define XMEM_ACQUIRE_SPI() (void(0))
|
#define XMEM_ACQUIRE_SPI() (void(0))
|
||||||
#define XMEM_RELEASE_SPI() (void(0))
|
#define XMEM_RELEASE_SPI() (void(0))
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(EXT_RAM) && defined(EXT_RAM_STACK) || defined(EXT_RAM_HEAP)
|
#if !defined(EXT_RAM) && defined(EXT_RAM_STACK) || defined(EXT_RAM_HEAP)
|
||||||
#include <xmem.h>
|
#include <xmem.h>
|
||||||
|
|
Loading…
Reference in a new issue