summaryrefslogtreecommitdiff
path: root/tinyusb/osal/osal.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-09-13 22:30:11 +0700
committerhathach <[email protected]>2013-09-13 22:30:11 +0700
commitad0ef2e266475c643b36cb34d3ab1b8876bb6ec2 (patch)
treecfdd80fe2332b30c7c1f95b925e1c2decf7690ed /tinyusb/osal/osal.h
parentc71f5c6f1ba46a23847a2eea83176e15058f21e6 (diff)
all project can run ok
Diffstat (limited to 'tinyusb/osal/osal.h')
-rw-r--r--tinyusb/osal/osal.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h
index cc6b7f700..d2287b3a5 100644
--- a/tinyusb/osal/osal.h
+++ b/tinyusb/osal/osal.h
@@ -89,9 +89,11 @@ uint32_t osal_tick_get(void);
typedef uint32_t osal_task_t;
tusb_error_t osal_task_create(osal_task_t *task);
-#define OSAL_TASK_DEF(variable, name, code, stack_depth, prio) \
+#define OSAL_TASK_DEF(code, stack_depth, prio) \
osal_task_t variable
+#define OSAL_TASK_REF(name) (&name)
+
#define OSAL_TASK_FUNCTION(task_name) \
void task_name
@@ -176,6 +178,8 @@ typedef osal_queue_t * osal_queue_handle_t;
#define OSAL_QUEUE_DEF(name, queue_depth, type) \
osal_queue_t name
+#define OSAL_QUEUE_REF(name) (&name)
+
osal_queue_handle_t osal_queue_create (osal_queue_t *p_queue);
void osal_queue_receive (osal_queue_handle_t const queue_hdl, void *p_data, uint32_t msec, tusb_error_t *p_error);
tusb_error_t osal_queue_send (osal_queue_handle_t const queue_hdl, const void * data);