diff options
| author | hathach <[email protected]> | 2018-11-13 15:34:50 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-11-13 15:45:22 +0700 |
| commit | 3fe7cd165902948240ecc40468b3610686f579c3 (patch) | |
| tree | 9ea447ee168f57de15123049b375340971425d64 /src/common/tusb_fifo.h | |
| parent | 5a046799f6d22af0b849e4312ceed14f2250a85e (diff) | |
added tud_cdc_write_str, tu_fifo only use mutex for RTOS config
Diffstat (limited to 'src/common/tusb_fifo.h')
| -rw-r--r-- | src/common/tusb_fifo.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/tusb_fifo.h b/src/common/tusb_fifo.h index 70dc087c2..61d92b602 100644 --- a/src/common/tusb_fifo.h +++ b/src/common/tusb_fifo.h @@ -43,7 +43,9 @@ #ifndef _TUSB_FIFO_H_
#define _TUSB_FIFO_H_
-#define CFG_FIFO_MUTEX 1
+// mutex is only needed for RTOS
+// for OS None, we don't get preempted
+#define CFG_FIFO_MUTEX (CFG_TUSB_OS != OPT_OS_NONE)
#include <stdint.h>
#include <stdbool.h>
|
