osal clean up

- task create, task def macros
This commit is contained in:
hathach
2018-02-28 14:21:31 +07:00
parent 5efad7412f
commit 9b7cd608aa
20 changed files with 360 additions and 287 deletions

View File

@@ -56,9 +56,15 @@
/** @} */
#include "tusb_option.h"
#include "common/common.h"
#ifndef _TEST_
typedef void (*osal_func_t)(void *param);
typedef void* osal_task_t;
static inline bool osal_task_create(osal_func_t code, const char* name, uint32_t stack_size, void* param, uint32_t prio, osal_task_t* task_hdl);
#if TUSB_CFG_OS == TUSB_OS_NONE
#include "osal_none.h"