summaryrefslogtreecommitdiff
path: root/src/tusb_option.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-03-09 12:26:56 +0700
committerhathach <[email protected]>2022-03-09 12:26:56 +0700
commit2f593e767c28ac5b789a5def2221620c1a2e58b8 (patch)
tree6b87eaf7759ef3569f9df68de4ebba7460262f72 /src/tusb_option.h
parentf920e1c17102cac04b20ad3908efff24d96d8e7c (diff)
update use of mutex for host
Diffstat (limited to 'src/tusb_option.h')
-rw-r--r--src/tusb_option.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h
index afd69c38b..e5351b1c4 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -285,6 +285,9 @@
#define CFG_TUSB_OS_INC_PATH
#endif
+// mutex is only needed for RTOS
+#define TUSB_OPT_MUTEX (CFG_TUSB_OS != OPT_OS_NONE)
+
//--------------------------------------------------------------------
// DEVICE OPTIONS
//--------------------------------------------------------------------