fix task def with cmsis rtx

This commit is contained in:
hathach
2013-09-13 23:01:43 +07:00
parent ad0ef2e266
commit 67453b89f0
3 changed files with 13 additions and 12 deletions

View File

@@ -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)