summaryrefslogtreecommitdiff
path: root/tinyusb
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-09-13 23:01:43 +0700
committerhathach <[email protected]>2013-09-13 23:01:43 +0700
commit67453b89f03e43408bf165f610aa62a63c000f1c (patch)
treed16a9b8ea03d4f26ac9873b0f9d783a5bcdaa819 /tinyusb
parentad0ef2e266475c643b36cb34d3ab1b8876bb6ec2 (diff)
fix task def with cmsis rtx
Diffstat (limited to 'tinyusb')
-rw-r--r--tinyusb/osal/osal_cmsis_rtx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/osal/osal_cmsis_rtx.h b/tinyusb/osal/osal_cmsis_rtx.h
index 4381b1eb1..b2b2258f2 100644
--- a/tinyusb/osal/osal_cmsis_rtx.h
+++ b/tinyusb/osal/osal_cmsis_rtx.h
@@ -66,7 +66,7 @@
typedef osThreadDef_t osal_task_t;
-#define OSAL_TASK_DEF(task_name, task_code, task_stack_depth, task_prio) \
+#define OSAL_TASK_DEF(task_code, task_stack_depth, task_prio) \
osThreadDef(task_code, task_prio, 1, task_stack_depth*4) // stack depth is in bytes
#define OSAL_TASK_REF(task_name) osThread(task_name)