diff options
| author | hathach <[email protected]> | 2013-09-13 22:30:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-09-13 22:30:11 +0700 |
| commit | ad0ef2e266475c643b36cb34d3ab1b8876bb6ec2 (patch) | |
| tree | cfdd80fe2332b30c7c1f95b925e1c2decf7690ed /tinyusb/osal/osal_none.h | |
| parent | c71f5c6f1ba46a23847a2eea83176e15058f21e6 (diff) | |
all project can run ok
Diffstat (limited to 'tinyusb/osal/osal_none.h')
| -rw-r--r-- | tinyusb/osal/osal_none.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tinyusb/osal/osal_none.h b/tinyusb/osal/osal_none.h index acc5bdb07..7a5b2ff78 100644 --- a/tinyusb/osal/osal_none.h +++ b/tinyusb/osal/osal_none.h @@ -88,7 +88,7 @@ static inline uint32_t osal_tick_get(void) // OSAL_TASK_LOOP_ENG // } //--------------------------------------------------------------------+ -#define OSAL_TASK_DEF(variable, name, code, stack_depth, prio) +#define OSAL_TASK_DEF(code, stack_depth, prio) #define osal_task_create(x) TUSB_ERROR_NONE #define OSAL_TASK_FUNCTION(task_func) \ @@ -267,6 +267,8 @@ typedef osal_queue_t * osal_queue_handle_t; .item_size = sizeof(type)\ } +#define OSAL_QUEUE_REF(name) (&name) + static inline osal_queue_handle_t osal_queue_create(osal_queue_t * const p_queue) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE; static inline osal_queue_handle_t osal_queue_create(osal_queue_t * const p_queue) { |
