diff options
| author | hathach <[email protected]> | 2013-02-04 00:03:08 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-02-04 00:03:08 +0700 |
| commit | 5f8839fff8ff12bbf172b5fb9a984867a0d1d8da (patch) | |
| tree | 0f983489c408ecea8d79661b40d42498a0e709ed /tinyusb/osal/osal.h | |
| parent | 3ac88f1b4ec4ab83682b5c1b1589970096bbc1c4 (diff) | |
refine ASSERT_DEFINE to allow special error_handler for os task
add device_addr0 for enumeration task
start to add osal port for freeRTOS
Diffstat (limited to 'tinyusb/osal/osal.h')
| -rw-r--r-- | tinyusb/osal/osal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h index 707a74bff..0f632f529 100644 --- a/tinyusb/osal/osal.h +++ b/tinyusb/osal/osal.h @@ -84,10 +84,12 @@ typedef uint32_t osal_task_t; #define OSAL_TASK_LOOP_BEGIN #define OSAL_TASK_LOOP_END + + #define TASK_ASSERT_STATUS(sts) \ ASSERT_DEFINE(tusb_error_t status = (tusb_error_t)(sts),\ TUSB_ERROR_NONE == status, (void) 0, "%s", TUSB_ErrorStr[status]) - +#define TASK_ASSERT(condition) ASSERT(condition, (void) 0) tusb_error_t osal_task_create(osal_task_t *task); |
