summaryrefslogtreecommitdiff
path: root/src/osal/osal_mynewt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osal/osal_mynewt.h')
-rw-r--r--src/osal/osal_mynewt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osal/osal_mynewt.h b/src/osal/osal_mynewt.h
index cb09680e0..62b5b45e8 100644
--- a/src/osal/osal_mynewt.h
+++ b/src/osal/osal_mynewt.h
@@ -75,7 +75,9 @@ static inline void osal_task_delay(uint32_t msec)
//--------------------------------------------------------------------+
// QUEUE API
//--------------------------------------------------------------------+
-#define OSAL_QUEUE_DEF(_name, _depth, _type) \
+
+// role device/host is used by OS NONE for mutex (disable usb isr) only
+#define OSAL_QUEUE_DEF(_role, _name, _depth, _type) \
static _type _name##_##buf[_depth];\
static struct os_event* _name##_##evbuf[_depth];\
osal_queue_def_t _name = { .depth = _depth, .item_sz = sizeof(_type), .buf = _name##_##buf, .evbuf = _name##_##evbuf};\