summaryrefslogtreecommitdiff
path: root/tinyusb/osal/osal.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-02-28 14:21:31 +0700
committerhathach <[email protected]>2018-02-28 14:21:43 +0700
commit9b7cd608aa4addf40cbe2135b38a78378e6f428f (patch)
tree5233a0c8244bd1d477471ccd8cb69528c8b40660 /tinyusb/osal/osal.h
parent5efad7412ffef0bb7eb08beea29b3b06b04cfb6e (diff)
osal clean up
- task create, task def macros
Diffstat (limited to 'tinyusb/osal/osal.h')
-rw-r--r--tinyusb/osal/osal.h6
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"