diff options
| author | hathach <[email protected]> | 2018-02-28 14:21:31 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-02-28 14:21:43 +0700 |
| commit | 9b7cd608aa4addf40cbe2135b38a78378e6f428f (patch) | |
| tree | 5233a0c8244bd1d477471ccd8cb69528c8b40660 /tinyusb/osal/osal.h | |
| parent | 5efad7412ffef0bb7eb08beea29b3b06b04cfb6e (diff) | |
osal clean up
- task create, task def macros
Diffstat (limited to 'tinyusb/osal/osal.h')
| -rw-r--r-- | tinyusb/osal/osal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h index fbc798213..9c136d4d9 100644 --- a/tinyusb/osal/osal.h +++ b/tinyusb/osal/osal.h @@ -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"
|
