This commit is contained in:
hathach
2018-06-22 16:01:55 +07:00
parent e3591ac682
commit d438000b99
5 changed files with 10 additions and 5 deletions

View File

@@ -58,6 +58,7 @@ enum
#define OSAL_TIMEOUT_CONTROL_XFER OSAL_TIMEOUT_WAIT_FOREVER
typedef void (*osal_task_func_t)( void * );
#if CFG_TUSB_OS == OPT_OS_NONE
#include "osal_none.h"

View File

@@ -71,7 +71,7 @@ static inline bool in_isr(void)
typedef struct
{
void (*func)(void *param);
osal_task_func_t func;
uint16_t prio;
uint16_t stack_sz;

View File

@@ -68,7 +68,7 @@
#define OSAL_TASK_DEF(_name, _str, _func, _prio, _stack_sz) osal_task_def_t _name;
typedef uint8_t osal_task_def_t;
typedef void* osal_task_t;
typedef void* osal_task_t;
static inline osal_task_t osal_task_create(osal_task_def_t* taskdef)
{