|
@@ -157,8 +157,10 @@ static bool handle_devMsgOut(uint8_t rhport, void *data, size_t len, size_t pack
|
|
|
static uint8_t termChar;
|
|
static uint8_t termChar;
|
|
|
static uint8_t termCharRequested = false;
|
|
static uint8_t termCharRequested = false;
|
|
|
|
|
|
|
|
-OSAL_MUTEX_DEF(usbtmcLockBuffer);
|
|
|
|
|
-static osal_mutex_t usbtmcLock;
|
|
|
|
|
|
|
+#if OSAL_MUTEX_REQUIRED
|
|
|
|
|
+static OSAL_MUTEX_DEF(usbtmcLockBuffer);
|
|
|
|
|
+#endif
|
|
|
|
|
+osal_mutex_t usbtmcLock;
|
|
|
|
|
|
|
|
// Our own private lock, mostly for the state variable.
|
|
// Our own private lock, mostly for the state variable.
|
|
|
#define criticalEnter() do { (void) osal_mutex_lock(usbtmcLock,OSAL_TIMEOUT_WAIT_FOREVER); } while (0)
|
|
#define criticalEnter() do { (void) osal_mutex_lock(usbtmcLock,OSAL_TIMEOUT_WAIT_FOREVER); } while (0)
|