diff options
| author | hathach <[email protected]> | 2013-01-31 11:05:33 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-31 11:05:33 +0700 |
| commit | eca87e5ee54f688372d2d34ee51dc3f72947d604 (patch) | |
| tree | 4b9575ca8f4e90a6636c15aef6c8fe3918a26f5e /tinyusb/osal | |
| parent | 658b2b970c23c5f88b369869d947e047f96e2f72 (diff) | |
add ASSERT_BIN8 and its test code
add some common api for task in osal.h for mocking
Diffstat (limited to 'tinyusb/osal')
| -rw-r--r-- | tinyusb/osal/osal.h | 8 | ||||
| -rw-r--r-- | tinyusb/osal/osal_common.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h index 5552da4c6..609c660ad 100644 --- a/tinyusb/osal/osal.h +++ b/tinyusb/osal/osal.h @@ -76,6 +76,14 @@ typedef uint32_t osal_timeout_t; +//------------- Task -------------// +#define OSAL_TASK_LOOP +#define OSAL_TASK_LOOP_BEGIN +#define OSAL_TASK_LOOP_END + +typedef uint32_t osal_task_t; +tusb_error_t osal_task_create(osal_task_t *task); + //------------- Semaphore -------------// typedef uint32_t osal_semaphore_t; typedef void* osal_semaphore_handle_t; diff --git a/tinyusb/osal/osal_common.h b/tinyusb/osal/osal_common.h index cb7a775eb..263798b90 100644 --- a/tinyusb/osal/osal_common.h +++ b/tinyusb/osal/osal_common.h @@ -57,6 +57,8 @@ #include "common/common.h" +//typedef void (*pfTask)( void * ); + enum { OSAL_TIMEOUT_NOTIMEOUT = 0, // for use within ISR, return immediately |
